Azure / azure-dev

A developer CLI that reduces the time it takes for you to get started on Azure. The Azure Developer CLI (azd) provides a set of developer-friendly commands that map to key stages in your workflow - code, build, deploy, monitor, repeat.
https://aka.ms/azd
MIT License
416 stars 205 forks source link

azd does not work with main.parameters.jsonc #1942

Open puicchan opened 1 year ago

puicchan commented 1 year ago

main.parameters.json is required by azd. Landing Zone Accelerator uses main.parameters.jsonc (e.g., https://github.com/puicchan/aca-landing-zone-accelerator/tree/main/scenarios/aca-internal/bicep).

Did an experiment. Using any azd template, I renamed main.parameters.json to main.parameters.jsonc and ran azd provision, I ran into error: ERROR: planning deployment: planning infrastructure provisioning: creating parameters file: reading parameter file template: open D:\codes\devify\csu\app-templates-dotnet-azuresql-appservice\infra\main.parameters.json: The system cannot find the file specified.

puicchan commented 1 year ago

Note that Bicep will have support for .bicepparam from 0.18 onwards. Comments can be included a .bicepparam file. This ask may not be relevant.