Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong resource group referred reported as Not Found #7

Open
p9139010 opened this issue Mar 8, 2024 · 0 comments
Open

Wrong resource group referred reported as Not Found #7

p9139010 opened this issue Mar 8, 2024 · 0 comments

Comments

@p9139010
Copy link

p9139010 commented Mar 8, 2024

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, ODataQuery1 odataQuery, String timespan, Nullable1 interval, String metricnames, String aggregation, Nullable1 top, String orderby, Nullable1 resultType, String metricnamespace, Dictionary2 customHeaders, CancellationToken cancellationToken)
at Microsoft.Azure.Management.Monitor.MetricsOperationsExtensions.ListAsync(IMetricsOperations operations, String resourceUri, ODataQuery1 odataQuery, String timespan, Nullable1 interval, String metricnames, String aggregation, Nullable1 top, String orderby, Nullable1 resultType, String metricnamespace, CancellationToken cancellationToken)
at Microsoft.Azure.Management.Monitor.MetricsOperationsExtensions.List(IMetricsOperations operations, String resourceUri, ODataQuery1 odataQuery, String timespan, Nullable1 interval, String metricnames, String aggregation, Nullable1 top, String orderby, Nullable1 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 …
|

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant