-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Description
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?