Skip to content

azure-mgmt-monitor: Failed to find resource mapping for provider: Microsoft.Compute, resourceType: virtualMachineScaleSets/virtualMachines, #14388

@jorrip

Description

@jorrip

I'm trying to retrieve disk metrics via:

metrics_data = monitor_client.metrics.list( disk['managed_by'], timespan="{}/{}".format( lastminutes, utctime ), interval='PT60M', metricnames=met, aggregation='Maximum, Minimum, Average, Total, Count' )

Everything goes fine when the disk is managed by a regular VM but when the disk is managed by a VirtualMachineScaleSet i get the following error:

Failed to find resource mapping for provider: Microsoft.Compute, resourceType: virtualMachineScaleSets/virtualMachines, id: /subscriptions/id/resourceGroups/rg_name/providers/Microsoft.Compute/virtualMachineScaleSets/vmss_name/virtualMachines/VM_name, traceId: {bdcd157a-...-c0e3af414164}

Any tips on how to get metrics from disks managed by a VirtualMachineScaleSet?

Metadata

Metadata

Assignees

No one assigned

    Labels

    MgmtThis issue is related to a management-plane library.MonitorMonitor, Monitor Ingestion, Monitor QueryService AttentionWorkflow: This issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.issue-addressedWorkflow: The Azure SDK team believes it to be addressed and ready to close.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions