ここで、idアドレスを指定します。
az mysql server firewall-rule create --name allIPs --server namysql --resource-group myResourceGroup --start-ip-address 0.0.0.0 --end-ip-address 255.255.255.255 { "additionalProperties": {}, "endIpAddress": "255.255.255.255", "id": "/subscriptions/hogehoge/resourceGroups/myResourceGroup/providers/Microsoft.DBforMySQL/servers/namysql/firewallRules/allIPs", "name": "allIPs", "resourceGroup": "myResourceGroup", "startIpAddress": "0.0.0.0", "type": "Microsoft.DBforMySQL/servers/firewallRules" }
vagrantから接続する
[vagrant@localhost ~]$ mysql -u adminuser@namysql -h namysql.database.windows.net -P 3306 -p