Skip to content

Azure SQL Firewall #6321

Answered by brwilkinson
ravz asked this question in Q&A
Mar 28, 2022 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

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

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'
  }
}

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@brwilkinson
Comment options

@robjdav
Comment options

Answer selected by brwilkinson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants