Azure Database for MySQLのFirewallルールをAzure CLIから設定する
メモ代わりに。 Azure CLIからAzure Database for MySQLのFirewallルールを設定する方法です。
az mysql server firewall-rule create --resource-group <リソースグループ名> --server <サーバー名> --name AllowAzureIP --start-ip-address <開始IPアドレス> --end-ip-address <終了アドレス>
Azureサービスからのアクセスを許可したい場合はこれ(0.0.0.0)で良いようです。
az mysql server firewall-rule create --resource-group <リソースグループ名> --server <サーバー名> --name AllowAzureIP --start-ip-address 0.0.0.0 --end-ip-address 0.0.0.0