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
402 stars 195 forks source link

[pipeline config] make `AZD_INITIAL_ENVIRONMENT_CONFIG` part of default CI/CD sample's pipelines #3104

Open vhvb1989 opened 9 months ago

vhvb1989 commented 9 months ago

as part of https://github.com/Azure/azure-dev/pull/3035, azd now supports setting an initial state for env-config on CI/CD when running azd pipeline config.

This enable scenarios like Aspire and also any sample with non-optional input params.

justinyoo commented 6 months ago

@vhvb1989 How does the value of this AZD_INITIAL_ENVIRONMENT_CONFIG look like? Is it exactly the same copy of the .azure/[env]/.env file?

marcelmedina commented 4 days ago

@vhvb1989 could you please confirm?

vhvb1989 commented 4 days ago

@justinyoo @marcelmedina the value of AZD_INITIAL_ENVIRONMENT_CONFIG is the json content from .azure/[env]/config.json

The only difference is that if the config.json has a reference to a vault to define parameters values, you have to remove it and use the values directly. This step is performed by azd during pipeline config