Parameters file values not being read during deployment create
See original GitHub issueDescription
When using az group deployment create
with the newest version of the Azure CLI it no longer respects the --parameters @<file>
contents and prompts me to type out each value in the command line.
Tested same template/parameters JSON files on another machine with an older version of Azure CLI without issue.
Environment summary
Install Method: How did you install the CLI? (e.g. pip, interactive script, apt-get, Docker, MSI, nightly)
Answer here: Linux install using curl -L <url> | bash
CLI Version: What version of the CLI and modules are installed? (Use az --version
)
Answer here:
azure-cli (2.0.8)
acr (2.0.6) acs (2.0.8) appservice (0.1.8) batch (3.0.1) billing (0.1.1) cdn (0.0.4) cloud (2.0.4) cognitiveservices (0.1.4) command-modules-nspkg (2.0.0) component (2.0.5) configure (2.0.8) consumption (0.1.1) core (2.0.9) cosmosdb (0.1.8) dla (0.0.8) dls (0.0.8) feedback (2.0.4) find (0.2.4) interactive (0.3.4) iot (0.1.7) keyvault (2.0.6) lab (0.0.6) monitor (0.0.6) network (2.0.8) nspkg (3.0.0) profile (2.0.6) rdbms (0.0.3) redis (0.2.5) resource (2.0.8) role (2.0.6) sf (1.0.3) sql (2.0.5) storage (2.0.8) vm (2.0.8)
Python (Linux) 2.7.5 (default, Feb 10 2017, 17:36:50) [GCC 4.9.2 20141101 (Red Hat 4.9.2-1)]
Python location ‘/home/jayden/lib/azure-cli/bin/python’
OS Version: What OS and version are you using?
Answer here: Modified Fedora 18
Shell Type: What shell are you using? (e.g. bash, cmd.exe, Bash on Windows)
Answer here: bash
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (4 by maintainers)
Top GitHub Comments
Stopped working for me if a parameter had
=
in the string .i.e public key data. Worked previously.read parameter values and store in variable
parameters=$(curl --silent "$parametersUri?$token&$(date +%s)" | jq .parameters )
use variable at deployment time. don’t forget use double quotes (“$parameters”).az group deployment create --name $job --resource-group $resourceGroupName --template-uri $templateUri?$token --parameters "$parameters" --output tsv --rollback-on-error)