Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ARM] Fix az group export command does not support --query and --output parameters #11885

Merged
merged 1 commit into from
Jan 19, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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