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.

'az webapp log tail': 'str' object has no attribute 'cloud'

See original GitHub issue

Environment summary

Install Method (apt-get) / CLI version (azure-cli (2.0.25)) / OS version (Linux Mint 18) / Shell Type (bash)

Every time I run az webapp log tail --resource-group TypesPublisher --name TypesPublisher:

'str' object has no attribute 'cloud'
Traceback (most recent call last):
  File "/opt/az/lib/python3.6/site-packages/knack/cli.py", line 194, in invoke
    cmd_result = self.invocation.execute(args)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 319, in execute
    six.reraise(*sys.exc_info())
  File "/opt/az/lib/python3.6/site-packages/six.py", line 693, in reraise
    raise value
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 292, in execute
    result = cmd(params)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 169, in __call__
    return super(AzCliCommand, self).__call__(*args, **kwargs)
  File "/opt/az/lib/python3.6/site-packages/knack/commands.py", line 109, in __call__
    return self.handler(*args, **kwargs)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/__init__.py", line 337, in default_command_handler
    result = op(**command_args)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/appservice/custom.py", line 1222, in get_streaming_log
    user, password = _get_site_credential(resource_group_name, name, slot)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/appservice/custom.py", line 1240, in _get_site_credential
    creds = _generic_site_operation(resource_group_name, name, 'list_publishing_credentials', slot)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/appservice/_appservice_utils.py", line 11, in _generic_site_operation
    client = client or web_client_factory(cli_ctx)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/appservice/_client_factory.py", line 35, in web_client_factory
    return get_mgmt_service_client(cli_ctx, WebSiteManagementClient)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/client_factory.py", line 35, in get_mgmt_service_client
    api_version=api_version, sdk_profile=sdk_profile, **kwargs)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/client_factory.py", line 83, in _get_mgmt_service_client
    resource = resource or cli_ctx.cloud.endpoints.active_directory_resource_id
AttributeError: 'str' object has no attribute 'cloud'

This command used to work, but I may have updated az since then.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
nitin7dccommented, Jan 26, 2018

+1

1reaction
yugangw-msftcommented, Jan 25, 2018

The fix will be released next week. For now you can use docker images or edge builds mentioned at https://github.com/Azure/azure-cli#docker

Read more comments on GitHub >

github_iconTop Results From Across the Web

AttributeError : 'str' object has no attribute 'cloud' - Stack Overflow
When i use Azure CLI to deploy my PHP app by comment. az webapp deployment source config-zip ...
Read more >
azure - 'str' object has no attribute 'cloud' - Server Fault
I am developing 1 web app for Azure by PHP. When i deploy this app to Azure by Azure CLI az webapp deployment...
Read more >
az webapp log - Microsoft Learn
Get the details of a web app's logging configuration. az webapp log tail. Start live log tracing for a web app. az webapp...
Read more >
Azure CLI Task - az webapp create Fails on Linux Hosted Agent
DeserializationError: Unable to deserialize to object: type, AttributeError: 'str' object has no attribute 'get' 2021-05-14T13:08:35.9415696Z ...
Read more >
DataRobot Python API Documentation
If you are using the cloud version of DataRobot, the easiest way to get ... AttributeError: 'EntryPoint' object has no attribute 'resolve'.
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