Description
Need to check the script collect-azure-disk-information:
Though the resource (disk) exists the script is looking up on a random Resource Group and reported as failure.
--example:
Line |
37 | $metrics = Get-AzMetric | ~~~~~~~~~~~~~~ | Exception type: ErrorResponseException, Message: Microsoft.Azure.Management.Monitor.Models.ErrorResponseException: Operation returned an invalid status code 'NotFound' at Microsoft.Azure.Management.Monitor.MetricsOperations.ListWithHttpMessagesAsync(String resourceUri, ODataQuery
1 odataQuery, String timespan, Nullable1 interval, String metricnames, String aggregation, Nullable
1 top, String orderby, Nullable1 resultType, String metricnamespace, Dictionary
2 customHeaders, CancellationToken cancellationToken)
at Microsoft.Azure.Management.Monitor.MetricsOperationsExtensions.ListAsync(IMetricsOperations operations, String resourceUri, ODataQuery1 odataQuery, String timespan, Nullable
1 interval, String metricnames, String aggregation, Nullable1 top, String orderby, Nullable
1 resultType, String metricnamespace, CancellationToken cancellationToken)
at Microsoft.Azure.Management.Monitor.MetricsOperationsExtensions.List(IMetricsOperations operations, String resourceUri, ODataQuery1 odataQuery, String timespan, Nullable
1 interval, String metricnames, String aggregation, Nullable1 top, String orderby, Nullable
1 resultType, String metricnamespace)
at Microsoft.Azure.Commands.Insights.Metrics.GetAzureRmMetricCommand.ProcessRecordInternal()
at Microsoft.Azure.Commands.Insights.MonitorCmdletBase.ExecuteCmdlet(), Code: Null, Status code:Null, Reason phrase: Null
Get-AzDisk:
Line |
14 | … $diskSKU = Get-AzDisk -ResourceGroupName $vm.ResourceGroupName -Disk …
|