Replies: 2 comments
-
Hello @Git-Kamil, Yes, it is possible to specify multiple subnets for the storage network ACLs. You can refer to the storage account module readme section networkAcls parameter usage. "networkAcls": {
"value": {
"bypass": "AzureServices",
"defaultAction": "Deny",
"virtualNetworkRules": [
{
"id": "/subscriptions/<<subscriptionId>>/resourceGroups/validation-rg/providers/Microsoft.Network/virtualNetworks/adp-<<namePrefix>>-az-vnet-x-001/subnets/<<namePrefix>>-az-subnet-x-001",
"action": "Allow"
},
{
"id": "/subscriptions/<<subscriptionId>>/resourceGroups/validation-rg/providers/Microsoft.Network/virtualNetworks/adp-<<namePrefix>>-az-vnet-x-001/subnets/<<namePrefix>>-az-subnet-x-002",
"action": "Allow"
}
],
"ipRules": [
{
"action": "Allow",
"value": "1.1.1.1"
}
]
}
} Make sure that both subnets have a service endpoint configured for Microsoft.Storage. Cheers |
Beta Was this translation helpful? Give feedback.
0 replies
-
@Git-Kamil , not that in JSON you need a comma |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I wonder if someone could help me.
I'm using Micorosft.Storage template and I would like to add more than one subnet to virtualNetworkRules. I tired to add them as the below code but it don't work . Is it possible to add more than one subnet in the current template ?
Any help would be much appreciated.
Beta Was this translation helpful? Give feedback.
All reactions