Azure / Microsoft-Defender-for-Cloud

Welcome to the Microsoft Defender for Cloud community repository
https://azure.microsoft.com/en-us/services/security-center/
MIT License
1.7k stars 766 forks source link

Added the calls to the Get and Delete APIs #846

Closed stefanpems closed 8 months ago

stefanpems commented 8 months ago

I added to the Tom's code the calls to the GET and DELETE REST APIs. The GET call allows to see what plan is applied to the specified machines. The DELETE call allows to remove a plan specifically applied - as an exception - to the specified machines. The target machines are specified as in the original script, based on Azure resource tags or a resource group.