Possibility of setting Password protection settings in azure AD via graph api/powershell

Ole Friis Nielsen 111 Reputation points
2021-09-14T12:50:59.11+00:00

I'm looking for a way to change the settings for Password protection in azure via powershell/graph api/azure cli.

The settings I'm looking to change can be found in Azure AD -> Security -> Authentication methods -> Password protection.

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,454 questions
0 comments No comments
{count} votes

Accepted answer
  1. Vasil Michev 95,181 Reputation points MVP
    2021-09-14T16:16:52.49+00:00

    Those settings are managed via the so-called "directory settings/templates". To manage them via PowerShell, use the preview module (AzureADPreview) and the Get-AzureADDirectorySettingTemplate/New-AzureADDirectorySetting cmdlet.

    Via Graph: https://learn.microsoft.com/en-us/graph/api/directorysetting-post-settings?view=graph-rest-beta&tabs=http

    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful