You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
_Tested with newest modules = 2.19.0
Import-Module Microsoft.Graph.Authentication
Import-Module Microsoft.Graph.Applications_
Can someone please confirm below (unexpected) behavior ?
1./ Register app in 21V tenant (Azure China) - consent some app permissions - might be Directory.Read.All + add certificate
2./ Connect-MgGraph -ClientId {client ID} -TenantId {tenant ID} -Environment 'China' -CertificateThumbprint {thumbprint} -NoWelcome
3./ Do some data reads (this will work), e.g.:
Get-MgServicePrincipal -Top 1
Get-MgApplication -Top 1
4./ NOW - try to find some permission GUID via e.g.
Find-MgGraphPermission "User.Read" -ExactMatch -PermissionType "Delegated"
5./ NEXT - all subsequent Graph calls via any cmdlet will fail with Access token validation failure. Invalid audience with below interesting details:
request-id : 13fd5d74-a231-42f3-8c6f-4d492259bfab
client-request-id : fb625558-e343-4d04-8fd6-9bb98bc32eb8
x-ms-ags-diagnostic : {"ServerInfo":{"DataCenter":"Germany West Central","Slice":"E","Ring":"4","ScaleUnit":"001","RoleInstance":"FR2PEPF00000569"}}
WWW-Authenticate : Bearer realm="", authorization_uri="https://login.microsoftonline.com/common/oauth2/authorize", client_id="00000003-0000-0000-c000-000000000000",PoP realm="", authorization_uri="https://login.microsoftonline.com/common/oauth2/authorize",
client_id="00000003-0000-0000-c000-000000000000"
So we are going back to Azure Global endpoints ... why ? why ? why ?
Beta Was this translation helpful? Give feedback.
All reactions