You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the above example the catalogToken parameter is required and does NOT have a default value. If the referenced environment variable GITHUB_TOKEN is not set then this would resolve to an empty string parameter value.
This will satisfy the bicep parameter but is not the intended experience. Instead if the parameter is required AND the parameter does not specify a default value azd should prompt the user for a value.
Repro Steps:
Use a main.parameters.json file that specifies a parameter that references a environment variable.
Ensure this environment variable is NOT set either in your shell or azd
Run azd provision for the project
Expected: azd should prompt the user to specify a value for the parameter
Actual: azd does NOT prompt the user and an empty string is passed along as the parameter value
The text was updated successfully, but these errors were encountered:
… set environment variables (#2896)
Fixes#2895 & #1910
When main.parameters.json references an empty or not set value expression azd will prompt the user for a value unless the parameter also defines a default value.
Consider the following
main.parameters.json
:In the above example the
catalogToken
parameter is required and does NOT have a default value. If the referenced environment variableGITHUB_TOKEN
is not set then this would resolve to an empty string parameter value.This will satisfy the bicep parameter but is not the intended experience. Instead if the parameter is required AND the parameter does not specify a default value
azd
should prompt the user for a value.Repro Steps:
main.parameters.json
file that specifies a parameter that references a environment variable.azd
azd provision
for the projectExpected:
azd
should prompt the user to specify a value for the parameterActual:
azd
does NOT prompt the user and an empty string is passed along as the parameter valueThe text was updated successfully, but these errors were encountered: