Skip to content

AzTS exceptions - System.ArgumentException: Requested value 'CDN' was not found. #1377

@sbgillett

Description

@sbgillett

System.ArgumentException: Requested value 'CDN' was not found.

Description

Solution deploys but does not function correctly. Critical exceptions are logged.

Steps to reproduce

Deploy AzTs (as of bf3be75) per the readme.

Expected behavior

I am able to query scan results by using the example Log Analytics queries and Power BI template provided.

Actual behavior

Solution appears to have deployed correctly (as in all the functions are present), but PowerBI report template cannot be refreshed (AzSK_ControlResults_CL custom log not created) and exceptions are logged as below:

System.ArgumentException: Requested value 'CDN' was not found.
   at System.Enum.TryParseByName(RuntimeType enumType, String originalValueString, ReadOnlySpan`1 value, Boolean ignoreCase, Boolean throwOnFailure, UInt64& result)
   at System.Enum.TryParseInt32Enum(RuntimeType enumType, String originalValueString, ReadOnlySpan`1 value, Int32 minInclusive, Int32 maxInclusive, Boolean ignoreCase, Boolean throwOnFailure, TypeCode type, Int32& result)
   at System.Enum.TryParse(Type enumType, String value, Boolean ignoreCase, Boolean throwOnFailure, Object& result)
   at Microsoft.AzSK.ATS.ProcessSubscriptions.Processors.ControlEvaluationProcessor.GetAzServiceFlagCodeForControls(List`1 controlList) in D:\a\1\s\src\TenantScan\ProcessSubPolicySummary\Processors\ControlProcessors\ControlEvaluationProcessor.cs:line 228
   at Microsoft.AzSK.ATS.ProcessSubscriptions.Processors.ControlEvaluationProcessor.Process(SubscriptionInventory subscriptionInventory) in D:\a\1\s\src\TenantScan\ProcessSubPolicySummary\Processors\ControlProcessors\ControlEvaluationProcessor.cs:line 85

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions