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

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

Open
sbgillett opened this issue Mar 8, 2021 · 2 comments

Comments

@sbgillett
Copy link

sbgillett commented Mar 8, 2021

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
@ritika-msft
Copy link
Contributor

We found that there was an issue in one of the packages of the scan solution. We have released fix for this issue, next scheduled scan should happen successfully and you should be able to get the scan results in Log Analytics workspace.

Note : Recently we have observed some issues related to AzTS setup due to which function apps inside AzTS setup lack function definition. If you are also facing the same issue, you need to re-run setup command with same parameter.

#Set the context to hosting subscription
Set-AzContext -SubscriptionId

  1. Run installation command with required parameters given.

Step 2: Run installation command.

Install-AzSKTenantSecuritySolution -SubscriptionId <HostingSubId>
-ScanHostRGName -ScanIdentityId <ManagedIdentityResourceId>
-Location `
-Verbose

For more details, please refer https://github.com/azsk/DevOpsKit-docs/blob/master/13-Tenant%20Security%20Solution%20Setup/Readme.md#setting-up-azure-tenant-security-solution---step-by-step

@sbgillett
Copy link
Author

sbgillett commented Mar 22, 2021

Thanks for the reply @ritika-msft

I reinstalled the solution and am no longer getting any exceptions logged, but equally I'm not getting any results either.

In the custom log AzSK_ProcessedSubscriptions_CL I see entries with the following comment against each of my target subscriptions:

Subscription not processed as basic providers are not registered

No further detail than that is provided so it's difficult to troubleshoot. Could you shed any light?

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

2 participants