Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Commit

Permalink
allowing Azure services to MySQL firewall
Browse files Browse the repository at this point in the history
  • Loading branch information
Physer committed Dec 17, 2024
1 parent 5d3dc61 commit 011a402
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions infrastructure/modules/sql.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,14 @@ resource mySql 'Microsoft.DBforMySQL/flexibleServers@2023-12-30' = {
}
}

resource allowAzureServicesToMySql 'Microsoft.DBforMySQL/flexibleServers/firewallRules@2023-12-30' = {
parent: mySql
name: 'AllowAllAzureServicesAndResourcesWithinAzureIps'
properties: {
endIpAddress: '0.0.0.0'
startIpAddress: '0.0.0.0'
}
}

output databaseName string = mySql.name
output hostName string = mySql.properties.fullyQualifiedDomainName

0 comments on commit 011a402

Please sign in to comment.