Bicep template system assigned keyvault secrets ignored for Microsoft.App/jobs #12214
filipreft
started this conversation in
Authoring Help
Replies: 2 comments
-
The system assigned identity isn't created until after the container has been spun up, so could this be a chicken and egg problem just like having to use user assigned identities for the image pull? |
Beta Was this translation helpful? Give feedback.
0 replies
-
@ahelland is right. You might need to redeploy the resource inside a |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Adding key vault secret refs to bicep template for azure container jobs are completely ignored and not added to the resource when using 'System' as identity, (tested with multiple bicep template versions).
If I manually add the system assigned identity to the key vault, as a secret user, after the container job has been created and redeploy, the secret is then registered.
Also tested with user assigned identity and 'key vault secret user' permissions and that works.
Beta Was this translation helpful? Give feedback.
All reactions