We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef14801 commit a1fe900Copy full SHA for a1fe900
infra/core/storage/storage-account.bicep
@@ -26,10 +26,10 @@ param sku object = { name: 'Standard_LRS' }
26
@allowed([ 'None', 'AzureServices' ])
27
param bypass string = 'AzureServices'
28
29
-var networkAcls = {
+var networkAcls = (publicNetworkAccess == 'Enabled') ? {
30
bypass: bypass
31
defaultAction: 'Allow'
32
-}
+} : { defaultAction: 'Deny' }
33
34
resource storage 'Microsoft.Storage/storageAccounts@2022-05-01' = {
35
name: name
@@ -67,4 +67,4 @@ resource storage 'Microsoft.Storage/storageAccounts@2022-05-01' = {
67
68
output id string = storage.id
69
output name string = storage.name
70
-output primaryEndpoints object = storage.properties.primaryEndpoints
+output primaryEndpoints object = storage.properties.primaryEndpoints
0 commit comments