You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running the sample, I receive the following exception when calling collection.GetAllAsync():
System.InvalidOperationException: 'The requested operation requires an element of type 'String', but the target element has type 'True'.'
It seems to happen here:
// File: Models\OperationalInsightsTableData.Serialization.cs
if (property0.NameEquals("retentionInDaysAsDefault"u8))
{
if (property0.Value.ValueKind == JsonValueKind.Null)
{
property0.ThrowNonNullablePropertyIsNull();
continue;
}
// Exception thrown here
retentionInDaysAsDefault = new RetentionInDaysAsDefaultState(property0.Value.GetString());
continue;
}
If I try to do the following:
// This table exists. Same exception.
var table = collection.Get("AACAudit");
// This table does not exist. No exception thrown.
var table = collection.Get("madeuptable");
Expected behavior
I would expect the call to successfully complete without throwing an exception.
Actual behavior
The call always throws an exception even when using different log analytic workspaces that I have access to.
Reproduction Steps
Run the sample with a valid subscriptionId, resourceGroupId, and workspace name.
Environment
.NET SDK:
Version: 7.0.306
Commit: f500069cb7
Runtime Environment:
OS Name: Windows
OS Version: 10.0.22621
OS Platform: Windows
RID: win10-x64
Link to sample
https://learn.microsoft.com/en-us/rest/api/loganalytics/tables/list-by-workspace?view=rest-loganalytics-2022-10-01&tabs=dotnet
Library name and version
Azure.ResourceManager.OperationalInsights 1.2.0
Language of the Sample
Sample Issue Type
Issue details
When running the sample, I receive the following exception when calling collection.GetAllAsync():
System.InvalidOperationException: 'The requested operation requires an element of type 'String', but the target element has type 'True'.'
It seems to happen here:
If I try to do the following:
Expected behavior
I would expect the call to successfully complete without throwing an exception.
Actual behavior
The call always throws an exception even when using different log analytic workspaces that I have access to.
Reproduction Steps
Run the sample with a valid subscriptionId, resourceGroupId, and workspace name.
Environment
.NET SDK:
Version: 7.0.306
Commit: f500069cb7
Runtime Environment:
OS Name: Windows
OS Version: 10.0.22621
OS Platform: Windows
RID: win10-x64
Host:
Version: 7.0.14
Architecture: x64
Commit: 808851b07a
The text was updated successfully, but these errors were encountered: