Azure SQL Firewall #6321
-
Hello, what is the bicep equivalent for setting the 'Allow Azure services and resources to access this server` option under SQL server firewall ? |
Beta Was this translation helpful? Give feedback.
Answered by
brwilkinson
Mar 28, 2022
Replies: 1 comment 2 replies
-
I believe it should be below: https://github.com/brwilkinson/AzureDeploymentFramework/blob/main/ADF/bicep/AZSQL-SQL.bicep#L51 resource SQLAllowAllWindowsAzureIps 'Microsoft.Sql/servers/firewallRules@2020-11-01-preview' = {
name: 'AllowAllWindowsAzureIps'
parent: SQL
properties: {
startIpAddress: '0.0.0.0'
endIpAddress: '0.0.0.0'
}
}
resource SQLAllConnectionsAllowed 'Microsoft.Sql/servers/firewallRules@2020-11-01-preview' = {
name: 'AllConnectionsAllowed'
parent: SQL
properties: {
startIpAddress: '0.0.0.0'
endIpAddress: '255.255.255.255'
}
} |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
brwilkinson
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://docs.microsoft.com/en-us/azure/templates/microsoft.sql/2021-08-01-preview/servers/firewallrules?tabs=bicep
I believe it should be below:
https://github.com/brwilkinson/AzureDeploymentFramework/blob/main/ADF/bicep/AZSQL-SQL.bicep#L51