Skip to content

Commit

Permalink
[ARM] Fix az group export command does not support --query and --outp…
Browse files Browse the repository at this point in the history
…ut parameters (#11885)
  • Loading branch information
zhoxing-ms authored and Juliehzl committed Jan 19, 2020
1 parent ca7ce0c commit 192a18a
Show file tree
Hide file tree
Showing 4 changed files with 160 additions and 61 deletions.
4 changes: 4 additions & 0 deletions src/azure-cli/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ Release History

* Azure Stack: surface commands under the profile of 2019-03-01-hybrid

**ARM**

* Fix issue #11658: `az group export` command does not support `--query` and `--output` parameters

**IoT Central**

* Support app creation/update with the new sku name ST0, ST1, ST2.
Expand Down
3 changes: 2 additions & 1 deletion src/azure-cli/azure/cli/command_modules/resource/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,6 @@ def export_group_as_template(

result = rcf.resource_groups.export_template(resource_group_name, ['*'], options=options)

print(json.dumps(result.template, indent=2))
# pylint: disable=no-member
# On error, server still returns 200, with details in the error attribute
if result.error:
Expand All @@ -768,6 +767,8 @@ def export_group_as_template(
for detail in getattr(error, 'details', None) or []:
logger.error(detail.message)

return result.template


def create_application(cmd, resource_group_name,
application_name, managedby_resource_group_id,
Expand Down
Loading

0 comments on commit 192a18a

Please sign in to comment.