CmdID / az / az mariadb / az mariadb server / az mariadb server replica
az mariadb server replica create
Create a read replica for a server. Azure CLI reference
2 examples Its page in the Azure CLI reference
Examples
Create a read replica 'testreplsvr' for 'testsvr'.
az mariadb server replica create -n testreplsvr -g testgroup -s testsvrIdentify-gName of resource group.Create a read replica 'testreplsvr' for 'testsvr2', where 'testreplsvr' is in a different resource group.
az mariadb server replica create -n testreplsvr -g testgroup -s "/subscriptions/${SubID}/resourceGroups/${ResourceGroup}/providers/Microsoft.DBforMariaDB/servers/testsvr2"Identify-gName of resource group.