-
Notifications
You must be signed in to change notification settings - Fork 270
Closed
Description
Consider the following main.parameters.json :
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"environmentName": {
"value": "${AZURE_ENV_NAME}"
},
"location": {
"value": "${AZURE_LOCATION}"
},
"principalId": {
"value": "${AZURE_PRINCIPAL_ID}"
},
"catalogToken": {
"value": "${GITHUB_TOKEN}"
}
}
}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.jsonfile that specifies a parameter that references a environment variable. - Ensure this environment variable is NOT set either in your shell or
azd - Run
azd provisionfor 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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels