How to solve the New AzureAD policy error - PowerShell

Relephant 46 Reputation points
2021-11-18T05:53:18.043+00:00

Hi.
I'd like to create a new AzureAD policy in PowerShell to extend the access token lifetime to 365days (8760H) by following this procedure.
Ref Docs.

I've done Connect-AzureAD.
150435-inkedpowershell-connectazuread-li.jpg

But New-AzureADPolicy returned the following error.
150464-powershell-new-azureadpolicy.png

Please tell me how to resolve it.

The Global Administrator role has been assigned to this account.

Best reards.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,506 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,381 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Vasil Michev 94,521 Reputation points MVP
    2021-11-18T07:51:40.11+00:00
    1 person found this answer helpful.