azure-cli-extensions icon indicating copy to clipboard operation
azure-cli-extensions copied to clipboard

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

Open sinePaul opened this issue 2 years ago • 5 comments

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

sinePaul avatar Apr 25 '22 16:04 sinePaul

monitor

yonzhan avatar Apr 25 '22 22:04 yonzhan

Similar issue. Any update?

jtchoffo-fi avatar May 05 '22 22:05 jtchoffo-fi

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @SameergMS, @dadunl.

Issue Details

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

Author: sinePaul
Assignees: kairu-ms, ZengTaoxu
Labels:

customer-reported, Monitor, Service Attention, Auto-Assign

Milestone: Backlog

ghost avatar May 06 '22 00:05 ghost

It seems the service team does not deploy 2021-09-01-preview API in your region right now. Please use 0.2.0 version for a workaround. You can install that version by the following command:

az extension add --name monitor-control-service --version 0.2.0

kairu-ms avatar May 06 '22 00:05 kairu-ms

@ZengTaoxu Please feedback this issue to service team. Thanks.

kairu-ms avatar May 06 '22 00:05 kairu-ms