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.
InnerError:
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>