-
Notifications
You must be signed in to change notification settings - Fork 771
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding accessPolicies to existing keyVault results in error validating property "name" #836
Labels
bug
Something isn't working
Comments
thanks for reporting this is a bug we'll need to fix, but in the meantime you can unblock yourself with the
|
Thanks @alex-frankel, your workaround worked like a charm as always! |
@anthony-c-martin - will this be solved by #657? Or is this a KV swagger issue? |
The swagger looks correct - #657 will fix it this. |
Fixed with #657 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Bicep version
Bicep CLI version 0.1.226-alpha (eb3d221)
Describe the bug
Trying to add an accessPolicy to existing keyvault using the name
'${keyVault.name}/add'
This results in following error message when trying to build:
The property name should be KeyVaultName/add, but bicep validates the whole name against the valid names add/remove/replace instead of just the child-part of the name.
To Reproduce
Add an accessPolicy to existing key vault with following bicep code:
Where keyVault is a Key Vault I just created in the same bicep file and functionApp is a nested deployment that deploys a functionApp with a managed identity.
Additional context
Seems like this is related to the discussion about introducing a parent syntax in #657
The text was updated successfully, but these errors were encountered: