当我Get-AzureRmMetricDefinition
在有效的 resourceId 上使用时,我没有得到任何结果。
Get-AzureRmMetricDefinition -ResourceId /subscriptions/{SUB_ID}/resourceGroups/{GroupName}/providers/Microsoft.ServiceBus/namespaces/{Namespace}
或
/subscriptions/{SubId}/resourceGroups/{GroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{ScaleSetName}
或
/subscriptions/{SubId}/resourceGroups/{GroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{ScaleSetName}/virtualMachines/0
我已验证在 VM 模板中选择了诊断扩展。这是 VM0 信息中的扩展详细信息:
Id :
/subscriptions/{SubId}/resourceGroups/{GroupName}/providers/Microsoft.Compute/virtualMachines/{ScaleSetName}_0/extensions/VMDiagnosticsVmExt_vmNodeType0Name
Name : VMDiagnosticsVmExt_vmNodeType0Name
Type : Microsoft.Compute/virtualMachines/extensions
Location : westus
Publisher : Microsoft.Azure.Diagnostics
VirtualMachineExtensionType : IaaSDiagnostics
TypeHandlerVersion : 1.5
AutoUpgradeMinorVersion : True
Settings : {"WadCfg":{"DiagnosticMonitorConfiguration":{"overallQuotaInMB":"50000","EtwProviders":{"EtwEventSourceProviderConfiguration":[{"provider":"Microsoft-ServiceFa
bric-Actors","scheduledTransferKeywordFilter":"1","scheduledTransferPeriod":"PT5M","DefaultEvents":{"eventDestination":"ServiceFabricReliableActorEventTable"}},{"provider":"Microsoft-ServiceF
abric-Services","scheduledTransferPeriod":"PT5M","DefaultEvents":{"eventDestination":"ServiceFabricReliableServiceEventTable"}}],"EtwManifestProviderConfiguration":[{"provider":"cbd93bc2-71e5
-4566-b3a7-595d8eeca6e8","scheduledTransferLogLevelFilter":"Information","scheduledTransferKeywordFilter":"4611686018427387904","scheduledTransferPeriod":"PT5M","DefaultEvents":{"eventDestina
tion":"ServiceFabricSystemEventTable"}}]}}},"xmlCfg":"...","storageAccount":"j3vk3vnhlxaccyharmq6phsa"}
ProvisioningState : Succeeded
问题:为什么我无法从订阅中的任何项目中获取指标,我可以采取哪些其他步骤来查找问题?