[Bug Report]: Use networkAcls with key vault #2159
Labels
bug
Something isn't working
documentation
Improvements or additions to documentation
wait for author
Describe the bug
I am trying to add vnet integration to my Keyvault and all the doc say to do this:-
networkAcls: {
bypass: 'AzureServices'
defaultAction: 'Deny'
ipRules: []
virtualNetworkRules: [
{
id: '/subscriptions/${subscriptionid}/resourceGroups/${resourceGroup}/providers/Microsoft.Network/virtualNetworks/${myVnet}/subnets/${mysubnet}
}
]
But I am getting this error - InvalidTemplate - Deployment template validation failed: 'The template variable 'virtualNetworkRules' is not valid: The language expression property 'subnet' doesn't exist, available properties are 'id'.. Please see https://aka.ms/arm-template-expressions for usage details.'.
If I comment out the id its fine so something related to that isn't right.
They API I am using is from the Keyvault Bicep in this repo so version Microsoft.KeyVault/vaults@2019-09-01
To reproduce
Create a Keyvault and attempt to associate add a reference to an existing vnet with a subnet (this is for API management in the end).
Code snippet
Relevant log output
The text was updated successfully, but these errors were encountered: