Azure / Azure/azure-cli-extensions

"az monitor app-insights component create" fails with HTTP Error

Open
#3,011 15 comments 0 reactions 1 assignee Assigned to @AllyW View on GitHub
feature-request Monitor Service Attention
Dominant language
Python
Stars
454
Forks
1.7k
Avg merge
2d 19h
Merged PRs (30d)
64

Description

### **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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.