Open jpalvarezl opened 10 months ago
Unfortunately this is a Microsoft.Keyvault RP issue. I can route it to that team, but if you would like to streamline the effort, please open a support ticket with the Keyvault RP team.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @RandalliLama, @schaabs, @jlichwa. Please see https://aka.ms/biceptypesinfo for troubleshooting help.
Bicep version Bicep CLI version 0.24.24 (5646341b0c)
Describe the bug
I am new to bicep templates and I while looking at the documentation I wanted to find the best safe way to store my deployment secrets. In doing so, I found documentation pointing me towards using KeyVault and secrets. I created my keyvault manually (in the portal) paying special attention to assigning roles correctly to both myself and my service principal.
Despite this I was met with a
BadRequest
message for each of the deployment of my secrets.To Reproduce Here is my bicep module to handle secrets:
Then I would use this module like so:
This resulted in the follow error message for the secret deployment
Additional context After too many hours searching, I decided to try adding the secret manually, just to discard that it was an access policy issue. It turns out that the portal provides a very helpful hint for secret names:
I realize that this is a backend issue and not necessarily bicep. I am more than happy to relay this issue to a more appropriate audience if necessary.