azure-cli-extensions: "az monitor app-insights component create" fails with HTTP Error

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name az monitor app-insights component create Extension Name: application-insights. Version: 0.1.13.

Errors:

'HTTPError' object has no attribute '_message'
Traceback (most recent call last):
cliextensions/application-insights/azext_applicationinsights/custom.py, ln 74, in create_or_update_component
    return client.create_or_update(resource_group_name, application, component)
mgmt_applicationinsights/v2020_02_02_preview/operations/_components_operations.py, ln 359, in create_or_update
...
cliextensions/application-insights/azext_applicationinsights/custom.py, ln 76, in create_or_update_component
    ex.error._message = ex.error._message + HELP_MESSAGE
AttributeError: 'HTTPError' object has no attribute '_message'

To Reproduce:

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

  • Put any pre-requisite steps here…
  • az monitor app-insights component create --app {} --location {} --kind {} -g {} --workspace {}

Expected Behavior

An Application Insights resource is created and connected to a workspace

Environment Summary

Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-debian-bullseye-sid
Python 3.6.10
Installer: DEB

azure-cli 2.19.1

Extensions:
application-insights 0.1.13

Additional Context

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Comments: 15 (4 by maintainers)

Most upvoted comments

Yeah, it seems like it just started working for some reason on Friday. No changes to the scripts or anything. It just “magically” started working again… Doesn’t inspire too much confidence though when it stops and starts working intermittently with the same code… But thanks for looking into it!