Azure / Azure/azure-cli-extensions

Command az monitor data-collection endpoint list fails with an unexpected error

Open
#4,734 5 comments 0 reactions 2 assignees Claimed by @ZengTaoxu View on GitHub
Auto-Assign customer-reported 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 data-collection endpoint list
Extension Name: monitor-control-service. Version: 0.3.0.`

**Errors:**
```
(InvalidResourceType) The resource type 'dataCollectionEndpoints' could not be found in the namespace 'Microsoft.Insights' for api version '2021-09-01-preview'. The supported api-versions are '2021-04-01,2019-11-01-preview'.
Code: InvalidResourceType
Message: The resource type 'dataCollectionEndpoints' could not be found in the namespace 'Microsoft.Insights' for api version '2021-09-01-preview'. The supported api-versions are '2021-04-01,2019-11-01-preview'.

```

## 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 data-collection endpoint list --resource-group {}`

## Expected Behavior

## Environment Summary
```
Windows-10-10.0.19041-SP0
Python 3.8.9
Installer: MSI

azure-cli 2.32.0 *

Extensions:
monitor-control-service 0.3.0
ssh 1.0.1
storage-preview 0.8.0

Dependencies:
msal 1.16.0
azure-mgmt-resource 20.0.0
```
## 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.