Skip to content

group deployment validate should offer better debug output #3975

Description

@lucagervasi

Description

Issuing az group deployment create results in bogous error references, possibly referencing compiled json (template + parameters) line and column number. Sometimes it is hard to find errors.
It would be handy to output some lines surrounding the error instead of just "line 25 column 1 - line 25 column 2 (char 539 - 540)" references.
It would be handy having az group deployment validate offer an option to export compiled json.


Environment summary

Install Method: How did you install the CLI? (e.g. pip, interactive script, apt-get, Docker, MSI, nightly)
Answer here:
pip

CLI Version: What version of the CLI and modules are installed? (Use az --version)
Answer here:
Thu Jul 6 12:01:43 CEST 2017
azure-cli (2.0.2)

acr (2.0.0)
acs (2.0.2)
appservice (0.1.2)
batch (2.0.0)
cloud (2.0.0)
component (2.0.0)
configure (2.0.2)
container (0.1.2)
core (2.0.2)
documentdb (0.1.2)
feedback (2.0.0)
find (0.0.1b1)
iot (0.1.2)
keyvault (2.0.0)
lab (0.0.1)
monitor (0.0.1)
network (2.0.2)
nspkg (2.0.0)
profile (2.0.2)
redis (0.1.1b3)
resource (2.0.2)
role (2.0.1)
sql (2.0.0)
storage (2.0.2)
vm (2.0.2)

Python (Linux) 2.7.13 (default, May 10 2017, 20:04:28)
[GCC 6.3.1 20161221 (Red Hat 6.3.1-1)]

OS Version: What OS and version are you using?
Answer here:
Fedora release 25 (Twenty Five)

Shell Type: What shell are you using? (e.g. bash, cmd.exe, Bash on Windows)
Answer here:
GNU bash, version 4.3.43(1)-release (x86_64-redhat-linux-gnu)

Metadata

Metadata

Assignees

No one assigned

    Labels

    ARMaz resource/group/lock/tag/deployment/policy/managementapp/account management-groupResource Manageract-identity-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions