Open
Description
Bicep version
Bicep CLI version 0.8.2 (78a65ae)
Bicep VSCode Extension v0.8.2
Describe the bug
When adding a lock resource in VSCode, the IntelliSense lists api version '2020-05-01' but when you deploy it to Azure you get the following error message:
"The resource type 'locks' could not be found in the namespace 'Microsoft.Authorization' for api version '2020-05-01'. The supported api-versions are '2015-01-01,2015-05-01-preview,2015-06-01,2016-09-01,2017-04-01'"
To Reproduce
1.
resource deleteLock 'Microsoft.Authorization/locks@2020-05-01' = {
name: 'Delete'
properties: {
level: 'CanNotDelete'
}
}
Deploy to Azure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment