Remediation
From Azure Portal
To enable security defaults in your directory:
- In the Azure portal, open the portal menu.
- Browse to
Microsoft Entra ID>Properties. - Select
Manage security defaults. - Under
Security defaults, selectEnabled (recommended). - Select
Save.
From PowerShell
Connect-MgGraph `
-Scopes "Policy.ReadWrite.ApplicationConfiguration"
Update-MgPolicyIdentitySecurityDefaultEnforcementPolicy `
-IsEnabled $true
(Get-MgPolicyIdentitySecurityDefaultEnforcementPolicy).IsEnabled
From Azure CLI
az rest \
--method patch \
--url 'https://graph.microsoft.com/v1.0/policies/identitySecurityDefaultsEnforcementPolicy' \
--body '{"isEnabled":true}'
az rest \
--method get \
--url 'https://graph.microsoft.com/v1.0/policies/identitySecurityDefaultsEnforcementPolicy' \
--query "isEnabled"