Hello,
I'm trying to execute Get-AzureADPolicy, however, i'm getting the following error:
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: 2b9dc227-b2f7-462a-9fcd-996d2660da9a
DateTimeStamp: Tue, 06 Apr 2021 12:43:48 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
Could someone check this issue? I've seen a similar old post but it looks like it has been resolved since then.
Thanks,
Jerome
