Remediation
From Azure Portal
- Go to
Microsoft Defender for Cloud. - Under
Management, selectEnvironment Settings. - Click the name of a subscription.
- Select the
Defender plansblade. - Under
Cloud Workload Protection (CWP), in the row forAPIs, set the toggle switch forStatustoOn. - Select a plan.
- Click
Saveto save the plan selection. - Click
Saveto enable Defender for APIs.
From Azure CLI
Run the following command to enable Defender for APIs:
az security pricing create --name Api --tier Standard --subplan <subplan>
Valid subplan values: P1, P2, P3, P4, and P5.
From PowerShell
Run the following command to enable Defender for APIs:
Set-AzSecurityPricing -Name Api -PricingTier Standard -SubPlan <subplan>
Valid SubPlan values: P1, P2, P3, P4, and P5.