Skip to content

Parameters files for bicep deployment #684

Answered by daltondhcp
mlunetta asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @mlunetta,

Took a closer look at this and now understand why it fails.
The template main.bicep's targetScope is subscription as you are creating a resource group, but you are submitting it to a resource group folder that doesn't exist yet.
To make it work, you need to add the template/parameter file directly under the subscription folder/scope (lz-prod-001 (8e8af102-d409-4bcc-bdab-c52a33b4aa0b)), as the target scope for the deployment is determined based on the folder structure.

Hope this helps.

/Johan

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@mlunetta
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@mlunetta
Comment options

Answer selected by mlunetta
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants