Closed digot007 closed 3 years ago
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @armleads-azure.
Author: | digot007 |
---|---|
Assignees: | - |
Labels: | `ARM`, `Service Attention` |
Milestone: | - |
It’s following correct convention in Azure PowerShell. If user tries to access a resource under non-existing resource group, it should show Not Found error due to that non-existing resource group.
Please let us know if you need further help.
It’s following correct convention in Azure PowerShell. If user tries to access a resource under non-existing resource group, it should show Not Found error due to that non-existing resource group.
Please let us know if you need further help.
Yes. We do not have problem with “Not Found” error due to that non-existing resource group or resource. Our only problem is with the client-side telemetry failure exception and this exception showing up as Warning. Why is the telemetry logging failing when querying for non-existing resource and if that cannot be avoided, why show it as a warning to the user?
This warning is shown only when querying for non-existing resource Id.
Reproduce telemetry issue on Windows PowerShell. We will look into it.
Resolved in upcoming release.
Description
Get-AzResource Cmdlet when invoked using -ResourceId parameter gives below warning when the Resource Group in the Resource Id is not present. When a Resource Id with non existing resource or resource group is given as input, below unrelated Qos event logging failure warning should not be shown.
WARNING: System.ArgumentException: Argument passed in is not serializable. Parameter name: value at System.Collections.ListDictionaryInternal.set_Item(Object key, Object value) at Microsoft.WindowsAzure.Commands.Common.MetricHelper.PopulatePropertiesFromQos(AzurePSQoSEvent qos, IDictionary`2 eventProperties, Boolean populateException) at Microsoft.WindowsAzure.Commands.Common.MetricHelper.LogUsageEvent(AzurePSQoSEvent qos) at Microsoft.WindowsAzure.Commands.Common.MetricHelper.LogQoSEvent(AzurePSQoSEvent qos, Boolean isUsageMetricEnabled, Boolean isErrorMetricEnabled) at Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet.LogQosEvent()
Steps to reproduce
Environment data
Module versions
Debug output
Error output