CmdID / az / az mariadb / az mariadb server / az mariadb server firewall-rule
az mariadb server firewall-rule create
Create a new firewall rule for a server. Azure CLI reference
2 examples Its page in the Azure CLI reference
Examples
Create a firewall rule allowing connections from a specific IP address.
az mariadb server firewall-rule create -g testgroup -s testsvr -n allowip --start-ip-address 107.46.14.221 --end-ip-address 107.46.14.221Identify-gName of resource group.Create a firewall rule allowing connections from an IP address range.
az mariadb server firewall-rule create -g testgroup -s testsvr -n allowiprange --start-ip-address 107.46.14.0 --end-ip-address 107.46.14.221Identify-gName of resource group.