Skip to content

Warning BCP037: The property "publicNetworkAccess" is not allowed on objects of type "VaultProperties".  #9461

Open

Description

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions