Hello @Lokesh Kumar ,
Thanks for reaching out.
You must specify environment name parameters while accessing National cloud Ex: Connect-AzureAD -AzureEnvironmentName AzureChinaCloud
in this case authentication request would redirect to https://login.partner.microsoftonline.cn/ rather https://login.microsoftonline.com when connecting to Global Azure AD endpoint by running just Connect-AzureAD
.
The following table lists the base URLs for the Azure AD endpoints used to acquire tokens for each national cloud.
National cloud | Azure AD authentication endpoint |
---|---|
Azure AD for US Government | https://login.microsoftonline.us |
Azure AD Germany | https://login.microsoftonline.de |
Azure AD China operated by 21Vianet | https://login.partner.microsoftonline.cn |
Azure AD (global service) | https://login.microsoftonline.com |
Azure Portal:
National cloud | Azure AD portal endpoint |
---|---|
Azure AD for US Government | https://portal.azure.us |
Azure AD Germany | https://portal.microsoftazure.de |
Azure AD China operated by 21Vianet | https://portal.azure.cn |
Azure AD (global service) | https://portal.azure.com |
You may experience error link below when you try using account that doesn't belong to respective national cloud, Ex: My tenant was created in Global cloud environment when I access through Azure China 21Vianet then it doesn't login.
Here are some MS Docs links for your reference. Hope this helps.
Azure AD authentication endpoints
Supported features Microsoft Graph
To learn more about National clouds
------
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.