CmdID

CmdID / az / az mariadb / az mariadb server / az mariadb server vnet-rule

az mariadb server vnet-rule create

Create a virtual network rule to allows access to a MariaDB server. Azure CLI reference

2 examples Its page in the Azure CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from the Azure CLI, each command read by CmdID

Create a virtual network rule by providing the subnet id.

az mariadb server vnet-rule create -g testgroup -s testsvr -n vnetRuleName --subnet /subscriptions/{SubID}/resourceGroups/{ResourceGroup}/providers/Microsoft.Network/virtualNetworks/vnetName/subnets/subnetNameIdentify
-gName of resource group.

Create a vnet rule by providing the vnet and subnet name. The subnet id is created by taking the resource group name and subscription id of the server.

az mariadb server vnet-rule create -g testgroup -s testsvr -n vnetRuleName --subnet subnetName --vnet-name vnetNameIdentify
-gName of resource group.