question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Parameters file values not being read during deployment create

See original GitHub issue

Description

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:closed
  • Created 6 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
andrewstevensoncommented, Jun 15, 2017

Stopped working for me if a parameter had = in the string .i.e public key data. Worked previously.

0reactions
sagarkulcommented, Aug 30, 2019

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)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Create Resource Manager parameter file - Azure
Create parameter file for passing in values during deployment of an Azure Resource Manager template.
Read more >
Value from Azure ARM parameter file is not read
I'm using a linked template (to an earlier deployment of an application gateway), and build upon this, adding new resources. This first ...
Read more >
One of the deployment parameters has an empty key.
I cannot handle to use "overrideParameters"; I try with variable groups, local variable, inline definition. None of this work and I always receive...
Read more >
ARM Templates Parameter Files | Pass your ... - YouTube
With JSON-based Parameter Files you can supply environment variables consistently and conviniently to your ARM Templates. In this episode I ...
Read more >
Parameters - AWS Cloud Development Kit (AWS CDK) v2
An ideal AWS CDK-generated AWS CloudFormation template is concrete, with no values remaining to be specified at deployment time. There are, however, use...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found