Get-AzureADPolicy is not working

asked 2020-04-08T15:26:11.823+00:00
Imtiyaz Ali 1 Reputation point

I am getting below error while running command Get-AzureADPolicy

PS C:\WINDOWS\system32> Get-AzureADPolicy
Get-AzureADPolicy : Error occurred while executing GetPolicies
Code: Request_InvalidRequestUrl
Message: Request url was invalid. The request should be like /tenantdomainname/Entity or /$metadata. Tenant domain name can be any of the verified,
unverified domain names or context id.
RequestId: ae9de1d2-7c5c-4c22-8151-bac786e3262f
DateTimeStamp: Wed, 08 Apr 2020 15:23:22 GMT
HttpStatusCode: BadRequest
HttpStatusDescription: Bad Request
HttpResponseStatus: Completed
At line:1 char:1

  • Get-AzureADPolicy
  • ~~~~~~~~~~~~~~~~~
  • CategoryInfo : NotSpecified: (:) [Get-AzureADPolicy], ApiException
  • FullyQualifiedErrorId : Microsoft.Open.MSGraphBeta.Client.ApiException,Microsoft.Open.MSGraphBeta.PowerShell.GetPolicy

PS C:\WINDOWS\system32>

Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
12,545 questions
No comments
{count} votes

3 answers

Sort by: Most helpful
  1. answered 2020-04-08T20:08:39.107+00:00
    Anuj Rana 206 Reputation points

    Did you check if you are using latest version for module? it should be

    You can update the same from :

    Please confirm if this fixes your issue. I have tested Get-AzureADPolicy few mins back and it is working as expected on

  2. answered 2020-04-08T16:42:05.25+00:00
    Vasil Michev 61,316 Reputation points Microsoft MVP

    Getting the same experience here, so it seems like it's something on the backend. Open a support case if you haven't done it already.

  3. answered 2020-05-08T06:27:28.26+00:00
    Imtiyaz Ali 1 Reputation point

    Thanks everybody!!
    Issue resolve as this is working with version