Parameters files for bicep deployment #684
Replies: 3 comments 2 replies
|
As you can see on this line Based on the error message, it looks like the parameter file might not be valid (your snippet looks valid). Can you verify that it works to deploy it manually with CLI or PowerShell? |
|
Thank you for the response! I will try to reproduce your issue to understand why it fails then. |
|
Hi @mlunetta, Took a closer look at this and now understand why it fails. Hope this helps. /Johan |

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