Azure-cli: UX for specifying template parameters is very poor.

Created on 2 Jun 2017  路  3Comments  路  Source: Azure/azure-cli

Description

When deploying arm templates with parameters, it's necessary to encode the parameter values as JSON documents, which is very cumbersome to do on the command-line, particularly if the parameter values must be retrieved dynamically (e.g., from other CLI commands).

As a thought exercise, consider the experience for deploying a QuickStart template that accepts Azure resource IDs as parameters. (https://raw.githubusercontent.com/Microsoft/openshift-origin/master/azuredeploy.json)

It should be possible to specify template parameters to the deployment create command itself, essentially promoting template parameters to CLI command parameters.

For example,
az group deployment create --template-uri [some uri] --param1fromtemplate [value] --param2fromtemplate value

ARM Resource Manager

Most helpful comment

@yugangw-msft tag style syntax sounds good to me! --parameters param1=val1 param2=val2 ...

All 3 comments

Maybe, we should just expose an arg accepting = pair list?
We should support this soon, as the command is being heavily used, so any improvements will make a good impact

@yugangw-msft tag style syntax sounds good to me! --parameters param1=val1 param2=val2 ...

@yugangw-msft : lets do this.
I am adding this to upcoming sprint for us to pick

Was this page helpful?
0 / 5 - 0 ratings

Related issues

troydai picture troydai  路  3Comments

dhermans picture dhermans  路  3Comments

oakeyc picture oakeyc  路  3Comments

derekbekoe picture derekbekoe  路  3Comments

Kannaj picture Kannaj  路  3Comments