I need to set this setting using an ARM template or in Powershell.
Can anyone point me in the right direction?
For Power Shell, you could use New-AzureSqlDatabaseServerFirewallRule
to set this.
New-AzureSqlDatabaseServerFirewallRule -ServerName "lpqd0zbr8y" -AllowAllAzureServices
For template, you could template like below:
{
"type": "Microsoft.Sql/servers/firewallRules",
"kind": "v12.0",
"name": "[concat(parameters('servers_shui_name'), '/', parameters('firewallRules_AllowAllAzureServices_name'))]",
"apiVersion": "2014-04-01-preview",
"location": "South Central US",
"scale": null,
"properties": {
"startIpAddress": "0.0.0.0",
"endIpAddress": "0.0.0.0"
},
"dependsOn": [
"[resourceId('Microsoft.Sql/servers', parameters('servers_shui_name'))]"
]
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With