Closed teemukom closed 1 month ago
@teemukom this is the expected behavior and VM Agentless Scanning is only available in plan P2. Documentation here: https://learn.microsoft.com/en-us/azure/defender-for-cloud/agentless-malware-scanning
Closing as there is no action on ALZ team.
@Springstone yes I'm aware of that restriction but this particular policy allows P1 as subplan but it can't be used because it also has the agentless scanning set as parameter. It doesn't work even when set to false. To be exact this policy should be renamed to Configure Microsoft Defender for Servers Plan 2 and remove the option for P1.
Describe the bug https://www.azadvertizer.net/azpolicyadvertizer/5eb6d64a-4086-4d7a-92da-ec51aed0332d.html
Using the policy definition above with parameters subplan "P1" and isAgentlessVmScanningEnabled "false" seems to fail when creating remediation tasks: Extension with name 'AgentlessVmScanning' is not supported for 'VirtualMachines' plan and 'P1' SubPlan (Code: InvalidInputJson)
Steps to reproduce