Open LianwMS opened 4 weeks ago
The way --no-prompt
works:
--no-prompt : Accepts the default value instead of prompting, or it fails if there is no default.
Indeed, since no default value was provided, the prompt failed.
Without changing the bicep, and solution to run real without manually input?
For configuring CI/CD, if you run azd pipeline config
, the pipeline config
command would prompt the user to provide the value. The value for these parameter are saved via AZD_INITIAL_ENVIRONMENT_CONFIG
, so there isn't a need to set anything past that.
Repo: https://github.com/Azure-Samples/azure-search-openai-demo
Maybe need a good guideline here. The question is for above repo. When I run
azd up --no-prompt
it will fail as:ERROR: initializing provisioning manager: prompting for value: prompting for location: '' is not an allowed choice. allowed choices: 1. (Europe) West Europe (westeurope), 2. (US) East US (eastus), 3. (US) West US 2 (westus2)
Maybe since the parameter does not have default value and need people input during provision. (Not sure the root cause). In bicep https://github.com/Azure-Samples/azure-search-openai-demo/blob/a1fe90090e4e2e60cbd3fd73630f55c55ac2a3b9/infra/main.bicep#L81:
If run![image](https://github.com/Azure/azure-dev/assets/9375712/15ea9150-469a-48c8-babc-eeeb53a967b7)
azd up
locally:Since the we want to run
azd up
in pipeline. So we add--no-prompt
but it seems that not work here.My question: