question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not working: `az webapp`

See original GitHub issue

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name az webapp

Errors:

The command failed with an unexpected error. Here is the traceback:
No module named 'vsts_cd_manager'
Traceback (most recent call last):
  File "/opt/az/lib/python3.8/site-packages/knack/cli.py", line 231, in invoke
    cmd_result = self.invocation.execute(args)
  File "/opt/az/lib/python3.8/site-packages/azure/cli/core/commands/__init__.py", line 583, in execute
    parsed_args = self.parser.parse_args(args)
  File "/opt/az/lib/python3.8/site-packages/knack/parser.py", line 261, in parse_args
    return super().parse_args(args)
  File "/opt/az/lib/python3.8/argparse.py", line 1768, in parse_args
    args, argv = self.parse_known_args(args, namespace)
  File "/opt/az/lib/python3.8/site-packages/azure/cli/core/parser.py", line 284, in parse_known_args
    self._namespace, self._raw_arguments = super().parse_known_args(args=args, namespace=namespace)
  File "/opt/az/lib/python3.8/argparse.py", line 1800, in parse_known_args
    namespace, args = self._parse_known_args(args, namespace)
  File "/opt/az/lib/python3.8/argparse.py", line 1988, in _parse_known_args
    positionals_end_index = consume_positionals(start_index)
  File "/opt/az/lib/python3.8/argparse.py", line 1965, in consume_positionals
    take_action(action, args)
  File "/opt/az/lib/python3.8/argparse.py", line 1874, in take_action
    action(self, namespace, argument_values, option_string)
  File "/opt/az/lib/python3.8/argparse.py", line 1159, in __call__
    subnamespace, arg_strings = parser.parse_known_args(arg_strings, None)
  File "/opt/az/lib/python3.8/site-packages/azure/cli/core/parser.py", line 284, in parse_known_args
    self._namespace, self._raw_arguments = super().parse_known_args(args=args, namespace=namespace)
  File "/opt/az/lib/python3.8/argparse.py", line 1800, in parse_known_args
    namespace, args = self._parse_known_args(args, namespace)
  File "/opt/az/lib/python3.8/argparse.py", line 2006, in _parse_known_args
    start_index = consume_optional(start_index)
  File "/opt/az/lib/python3.8/argparse.py", line 1946, in consume_optional
    take_action(action, args, option_string)
  File "/opt/az/lib/python3.8/argparse.py", line 1874, in take_action
    action(self, namespace, argument_values, option_string)
  File "/opt/az/lib/python3.8/argparse.py", line 1044, in __call__
    parser.print_help()
  File "/opt/az/lib/python3.8/argparse.py", line 2494, in print_help
    self._print_message(self.format_help(), file)
  File "/opt/az/lib/python3.8/site-packages/azure/cli/core/parser.py", line 195, in format_help
    super(AzCliCommandParser, self).format_help()
  File "/opt/az/lib/python3.8/site-packages/knack/parser.py", line 248, in format_help
    self.cli_help.show_help(self.prog.split()[0],
  File "/opt/az/lib/python3.8/site-packages/azure/cli/core/_help.py", line 165, in show_help
    else self.group_help_cls(self, delimiters, parser)
  File "/opt/az/lib/python3.8/site-packages/knack/help.py", line 253, in __init__
    child.load(options)
  File "/opt/az/lib/python3.8/site-packages/azure/cli/core/_help.py", line 303, in load
    loader.versioned_load(self, options)
  File "/opt/az/lib/python3.8/site-packages/azure/cli/core/_help_loaders.py", line 154, in versioned_load
    super(CliHelpFile, help_obj).load(parser)  # pylint:disable=bad-super-call
  File "/opt/az/lib/python3.8/site-packages/knack/help.py", line 198, in load
    description = getattr(options, 'description', None)
  File "/opt/az/lib/python3.8/site-packages/knack/parser.py", line 241, in __getattribute__
    self.description = self._description() \
  File "/opt/az/lib/python3.8/site-packages/azure/cli/core/commands/command_operation.py", line 133, in description_loader
    op = self.get_op_handler(self.op_path)
  File "/opt/az/lib/python3.8/site-packages/azure/cli/core/commands/command_operation.py", line 59, in get_op_handler
    handler = import_module(mod_to_import)
  File "/opt/az/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 843, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/tkmbmbr/.azure/cliextensions/appservice-kube/azext_appservice_kube/custom.py", line 90, in <module>
    from .vsts_cd_provider import VstsContinuousDeliveryProvider
  File "/home/tkmbmbr/.azure/cliextensions/appservice-kube/azext_appservice_kube/vsts_cd_provider.py", line 8, in <module>
    from vsts_cd_manager.continuous_delivery_manager import ContinuousDeliveryManager
ModuleNotFoundError: No module named 'vsts_cd_manager'

To Reproduce:

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

Expected Behavior

Show az webapp help.

Environment Summary

Linux-5.4.0-1077-azure-x86_64-with-glibc2.28 (Cloud Shell), Common Base Linux Delridge (quinault)
Python 3.8.13
Installer: DEB

azure-cli 2.36.0

Extensions:
aks-preview 0.5.31
spring-cloud 2.8.0
customlocation 0.1.2
connectedk8s 1.1.10
appservice-kube 0.1.20
k8s-extension 0.7.0
ai-examples 0.2.5
ssh 1.1.0

Dependencies:
msal 1.17.0
azure-mgmt-resource 20.0.0

Additional Context

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
RakeshMohanMSFTcommented, May 15, 2022

@tsubakimoto Glad to hear that the issue is resolved. Closing the issue.

1reaction
tsubakimotocommented, May 14, 2022

@RakeshMohanMSFT Thank you so much. I upgraded appservice-kube and this error is fixed!

$ az extension remove -n appservice-kube
$ az extension add -n appservice-kube
The installed extension 'appservice-kube' is in preview.
$ az webapp
the following arguments are required: _subcommand

Examples from AI knowledge base:
az webapp list --query "[].{hostName: defaultHostName, state: state}"
List default host name and state for all web apps.

https://docs.microsoft.com/en-US/cli/azure/webapp#az_webapp_list
Read more about the command in reference docs

Azure CLI version is below.

$ az -v
azure-cli                         2.36.0

core                              2.36.0
telemetry                          1.0.6

Extensions:
aks-preview                       0.5.66
spring-cloud                       3.1.4
customlocation                     0.1.3
connectedk8s                       1.2.8
appservice-kube                    0.1.6
k8s-extension                      1.2.1
ai-examples                        0.2.5
ssh                                1.1.0

Dependencies:
msal                              1.17.0
azure-mgmt-resource               20.0.0

Python location '/opt/az/bin/python3'
Extensions directory '/home/tkmbmbr/.azure/cliextensions'
Extensions system directory '/opt/az/lib/python3.8/site-packages/azure-cli-extensions'

Python (Linux) 3.8.13 (default, Apr 22 2022, 04:53:00) 
[GCC 8.3.0]

Legal docs and information: aka.ms/AzureCliLegal


Your CLI is up-to-date.

Please let us know how we are doing: https://aka.ms/azureclihats
and let us know if you're interested in trying out our newest features: https://aka.ms/CLIUXstudy
Read more comments on GitHub >

github_iconTop Results From Across the Web

`az webapp up` no longer works from dotnet publish directory
I applied the dotnet publish command and tried to run az webapp run from the published folder but the result was the same...
Read more >
WebApp:az webapp up not working: interference with ... - GitHub
Describe the bug. az webapp up is not working. interference on the deployment in visual studio code, as well as cloud shell and...
Read more >
az webapp | Microsoft Learn
Manage webapp authentication and authorization. To use v2 auth commands, run "az extension add --name authV2" to add the authV2 CLI extension.
Read more >
Fixing an Azure web app zip deployment issue - Blimped
My Azure DevOps pipeline recently stopped zipdeploying to Azure App Service. This is how I fixed it.
Read more >
Azure Web App Not Updating After Publish | How2Code.info
Also make sure you aren't connected through a web proxy that is caching your web app. Step 3 - File Locking Issues. File...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found