azure-cli: WebApp:az webapp config backup restore fails

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name az webapp config backup restore

Errors:

The command failed with an unexpected error. Here is the traceback:
'WebAppsOperations' object has no attribute 'restore'
Traceback (most recent call last):
  File "/opt/az/lib/python3.6/site-packages/knack/cli.py", line 231, in invoke
    cmd_result = self.invocation.execute(args)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 657, in execute
    raise ex
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 720, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 712, in _run_job
    return cmd_copy.exception_handler(ex)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/appservice/commands.py", line 37, in _ex_handler
    raise ex
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 691, in _run_job
    result = cmd_copy(params)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 328, in __call__
    return self.handler(*args, **kwargs)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/command_operation.py", line 121, in handler
    return op(**command_args)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/appservice/custom.py", line 1840, in restore_backup
    return client.web_apps.restore(resource_group_name, webapp_name, 0, restore_request)
AttributeError: 'WebAppsOperations' object has no attribute 'restore'

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

  • First you need to create a web app backup
  • az webapp config backup restore --backup-name {} --container-url {} --resource-group {} --webapp-name {}

Expected Behavior

Backup should be restored.

Environment Summary

Linux-5.4.0-1058-azure-x86_64-with-debian-10.2 (Cloud Shell), Common Base Linux Delridge (quinault)
Python 3.6.10
Installer: DEB

azure-cli 2.28.0

Extensions:
ai-examples 0.2.5
ssh 0.1.6

Additional Context

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 16 (8 by maintainers)

Most upvoted comments

Still fails for me.

From: Haroon Feisal @.> Sent: Monday, May 16, 2022 1:51 PM To: Azure/azure-cli @.> Cc: Carl Rabeler (AQUENT LLC) @.>; Comment @.> Subject: Re: [Azure/azure-cli] WebApp:az webapp config backup restore fails (#19492)

This has been fixed: #22365https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAzure%2Fazure-cli%2Fpull%2F22365&data=05|01|v-crabeler%40microsoft.com|9cb1448d323d466b306b08da377dd629|72f988bf86f141af91ab2d7cd011db47|1|0|637883310862237788|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=TJMvnE1tEImjqhPKwu22wU7YoN4I3oLfpMYNinX48Uw%3D&reserved=0

Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAzure%2Fazure-cli%2Fissues%2F19492%23issuecomment-1128122677&data=05|01|v-crabeler%40microsoft.com|9cb1448d323d466b306b08da377dd629|72f988bf86f141af91ab2d7cd011db47|1|0|637883310862237788|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=Wiv2VbdVBgyZxYG9m%2FSXJJozbO%2BKpWxj3yvawO0KXsg%3D&reserved=0, or unsubscribehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAWOWDRQTEOSNQCEYU5OLXGTVKKYMVANCNFSM5DVYTXGA&data=05|01|v-crabeler%40microsoft.com|9cb1448d323d466b306b08da377dd629|72f988bf86f141af91ab2d7cd011db47|1|0|637883310862237788|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=XzanRBxG8F2Jc3HkLri11wW1fKBEzH4lrnuUdZb8JGI%3D&reserved=0. You are receiving this because you commented.Message ID: @.@.>>