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
the
additionalMetadataId
value under the keypolicyDefinitionGroups
is incorrect, _L2 after CMMC_2.0 needs to be removed in order to retrieve positive response, currently returns404
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 PolicySetDetails of the scenario you tried and the problem that is occurring
Getting additional metadata information..
ref: https://github.com/Azure/azure-policy/blob/51ac1cd964ab59060e39ff264a476c664dfa1517/built-in-policies/policySetDefinitions/Regulatory%20Compliance/CMMC_2_0_L2.json#L439
Verbose logs showing the problem
Suggested solution to the issue
Remove _L2 after CMMC_2.0 in the value for
additionalMetadataId
, not sure if thegroupNames
under the keypolicyDefinitions
require alignment, too..