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

CMMC 2.0 Level 2 (4e50fd13-098b-3206-61d6-d1d78205cb45) PolicySet - incorrect additionalMetadataId value #1271

Open
JulianHayward opened this issue Jan 22, 2024 · 0 comments

Comments

@JulianHayward
Copy link

the additionalMetadataId value under the key policyDefinitionGroups is incorrect, _L2 after CMMC_2.0 needs to be removed in order to retrieve positive response, currently returns 404

Example:

is:
"additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/CMMC_2.0_L2_SI.L1-3.14.5
should be:
"additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/CMMC_2.0_SI.L1-3.14.5

The issue seems applicable to all additionalMetadataId values in the PolicySet

Details of the scenario you tried and the problem that is occurring

Getting additional metadata information..
image
ref:

"additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/CMMC_2.0_L2_SI.L1-3.14.5"

Verbose logs showing the problem

PS C:\temp> (Invoke-AzRestMethod -Uri "https://management.azure.com/providers/Microsoft.PolicyInsights/policyMetadata/CMMC_2.0_L2_SI.L1-3.14.5?api-version=2019-10-01" -Method 'GET').StatusCode
404

PS C:\temp> (Invoke-AzRestMethod -Uri "https://management.azure.com/providers/Microsoft.PolicyInsights/policyMetadata/CMMC_2.0_SI.L1-3.14.5?api-version=2019-10-01" -Method 'GET').StatusCode
200

Suggested solution to the issue

Remove _L2 after CMMC_2.0 in the value for additionalMetadataId, not sure if the groupNames under the key policyDefinitions require alignment, too..

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