Defender for Cloud - Regulatory compliance not matching with Azure policy

mij2020 376 Reputation points
2023-09-21T15:24:52.89+00:00

Hi all,

Within MS Defender for Cloud Regulatory compliance - we have a compliance issue with CIS Azure Foundation v1.4.0 "7.4 Ensure that Only Approved Extensions are installed"

Section 7.4 states that we have nearly 100 resources that are unhealthy because they have VM extensions that have not been approved. The policy which controls this part of the compliance is "Only approved VM extensions should be installed". The compliance for this policy is 100% compliant. This is correct - we have added all installed VM extensions into the approved extensions array in the policy - therefore I would not have expected section 7.4 to be flagging with so many issues.

Anyone have any ideas as to why this is the case?

Thanks

Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
1,021 questions
Microsoft Security | Microsoft Defender | Microsoft Defender for Cloud
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. JimmySalian-2011 42,611 Reputation points
    2023-09-22T08:15:33.56+00:00

    Hi Mij,

    How long it has been since you updated the policy? Usually 12 hours is the time frame for the policies and data to reflect correct settings so I will suggest to wait and evaluate after 12 hours.

    Also check via this command on one of the VMs to see the actual extension installed -

    Get-AzVMExtension -ResourceGroupName [ResourceGroupName] -VMName [VMName] | Format-List ExtensionType
    
    0 comments No comments

  2. JimmySalian-2011 42,611 Reputation points
    2023-09-22T09:12:21.9333333+00:00

    Hi Mij,

    How long it has been since you updated the policy? Usually 12 hours is the time frame for the policies and data to reflect correct settings so I will suggest to wait and evaluate after 12 hours.

    Also check via this command on one of the VMs to see the actual extension installed -

    Get-AzVMExtension -ResourceGroupName [ResourceGroupName] -VMName [VMName] | Format-List ExtensionType
    

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.