Skip to content
Merged
Changes from 1 commit
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
Next Next commit
fix for APIM backup
  • Loading branch information
RupengLiu committed Mar 16, 2021
commit b4e6b117f2cee3a2238a979c64cad032ad3ede36
4 changes: 2 additions & 2 deletions src/azure-cli/azure/cli/command_modules/apim/_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,13 @@ def load_arguments(self, _):
c.argument('backup_name', help='The name of the backup file to create.')
c.argument('storage_account_name', arg_group='Storage', help='The name of the storage account used to place the backup.')
c.argument('storage_account_key', arg_group='Storage', help='The access key of the storage account used to place the backup.')
c.argument('storage_account_container', options_list=['--storage-account-container', '--container-name'], nargs='+', help='The name of the storage account container used to place the backup.')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a breaking change on CLI command interface. Please provide more information to support this change.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue: #16262, this cli command already broken, need to fix it

c.argument('storage_account_container', options_list=['--storage-account-container', '--container-name'], help='The name of the storage account container used to place the backup.')

with self.argument_context('apim restore') as c:
c.argument('backup_name', help='The name of the backup file to restore.')
c.argument('storage_account_name', arg_group='Storage', help='The name of the storage account used to retrieve the backup from.')
c.argument('storage_account_key', arg_group='Storage', help='The access key of the storage account used to retrieve the backup from.')
c.argument('storage_account_container', options_list=['--storage-account-container', '--container-name'], nargs='+', help='The name of the storage account container used to retrieve the backup from.')
c.argument('storage_account_container', options_list=['--storage-account-container', '--container-name'], help='The name of the storage account container used to retrieve the backup from.')

with self.argument_context('apim api show') as c:
c.argument('service_name', options_list=['--service-name'], help='The name of the API Management service instance.')
Expand Down