Description
openedon Jan 6, 2023
Bicep version
0.11.1
Describe the bug
We have written a bicep file for deploying the key vault on our azure subscription and we want to disable "publicNetworkAccess" for our key vault.
So, in our bicep module we have explicitly added the property called "publicNetworkAccess"
properties: {
accessPolicies: []
enabledForDeployment: false
enabledForDiskEncryption: false
enabledForTemplateDeployment: true
enableSoftDelete: true
softDeleteRetentionInDays: 90
enableRbacAuthorization: true
enablePurgeProtection: true
vaultUri: 'XXXXXX'
provisioningState: 'Succeeded'
publicNetworkAccess: 'Disabled'
}
}
But during the bicep deployment we are getting the below warning:
WARNING: D:\XXX_work\8\s\XXX\XXX\vault.bicep(XXX,X) : Warning BCP037: The property "publicNetworkAccess" is not allowed on objects of type "VaultProperties". Permissible properties include "createMode", "networkAcls", "softDeleteRetentionInDays". If this is an inaccuracy in the documentation, please report it to the Bicep Team. [https://aka.ms/bicep-type-issues]
Please suggest some approach so that will not get this warning.