You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just tried to deploy an Azure resource (keyvault access policy) using bicep. As a new user of bicep, I used the wrong array-syntax to declare the allowed permissions to the KeyVault in my bicep template.
Instead of specifying the array on multiple lines as stated in the documentation, I used comma's to separate the elements, like this:
permissions:
secrets: ['list', 'get']
Instead of the correct syntax:
permissions:
secrets: [
'list'
'get'
]
My mistake offcourse, but it took me a while before I found the issue, as the error that was given during deployment was this:
Error BCP018: Expected the "}" character at this location.
It would be nice to have a more descriptive error in case somebody declares an array the wrong way in bicep.
The text was updated successfully, but these errors were encountered:
I just tried to deploy an Azure resource (keyvault access policy) using bicep. As a new user of bicep, I used the wrong array-syntax to declare the allowed permissions to the KeyVault in my bicep template.
Instead of specifying the array on multiple lines as stated in the documentation, I used comma's to separate the elements, like this:
Instead of the correct syntax:
My mistake offcourse, but it took me a while before I found the issue, as the error that was given during deployment was this:
It would be nice to have a more descriptive error in case somebody declares an array the wrong way in bicep.
The text was updated successfully, but these errors were encountered: