Triage and Remediation
Remediation
Using Console
Using Console
To remediate the misconfiguration of enabling Microsoft Defender Standard Pricing Tier in AZURE, you can follow these step-by-step instructions:
- Login to the AZURE portal using your credentials.
- Navigate to the Security Center from the left-hand menu.
- In the Security Center, click on the “Security Policy” option from the left-hand menu.
- In the Security Policy page, scroll down to the “Pricing tier” section and click on the “Edit” button.
- In the Pricing tier page, select the “Standard” option and click on the “Save” button.
- After saving the changes, wait for a few minutes to allow the changes to take effect.
- Verify that the Microsoft Defender Standard Pricing Tier is now enabled by checking the “Pricing tier” section in the Security Policy page.
Using CLI
Using CLI
To remediate the misconfiguration “Enable Microsoft Defender Standard Pricing Tier” in AZURE using AZURE CLI, follow these steps:This will show you the details of the pricing tier that you have set.By following the above steps, you can remediate the misconfiguration “Enable Microsoft Defender Standard Pricing Tier” in AZURE using AZURE CLI.
- Open the AZURE CLI on your local machine or use the AZURE Cloud Shell.
- Login to your AZURE account using the command:
- Once you are logged in, set the subscription that you want to work on using the command:
- Next, enable Microsoft Defender Standard Pricing Tier using the command:
- Verify that the pricing tier has been set to Standard using the command:
Using Python
Using Python
To enable Microsoft Defender Standard Pricing Tier in Azure using Python, you can follow these steps:
-
Install the Azure SDK for Python using the following command:
-
Authenticate using the Azure CLI or a service principal. You can use the following code to authenticate using a service principal:
-
Create a
ResourceManagementClient
object using the authenticated credentials and the subscription ID: -
Get the resource group and the Microsoft Defender Security Center workspace. You can use the following code to get the resource group and workspace:
-
Update the pricing tier for the workspace to
PerNode
. You can use the following code to update the pricing tier: -
Verify that the pricing tier has been updated by checking the workspace properties: