Azure / Azure/azure-powershell
Get-AzEnvironment returns old value for ActiveDirectoryAuthority in AzureChinaCloud
- Dominant language
- C#
- Stars
- 4.8k
- Forks
- 4.3k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 51
Description
### Description
The [public doc](https://learn.microsoft.com/en-us/entra/identity-platform/authentication-national-cloud#microsoft-entra-authentication-endpoints) says the current value is `https://login.partner.microsoftonline.cn`.
It [was changed back in March 2021](https://github.com/MicrosoftDocs/entra-docs/commit/9acc385ee6166c92320bcf70a8630e422ebdb00a). But PowerShell continues to return the old value.
### Issue script & Debug output
```PowerShell
(Get-AzEnvironment -Name AzureChinaCloud).ActiveDirectoryAuthority
https://login.chinacloudapi.cn/
```
### Environment data
```PowerShell
Name Value
---- -----
PSVersion 7.4.2
PSEdition Core
GitCommitId 7.4.2
OS Microsoft Windows 10.0.19045
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
```
### Module versions
```PowerShell
Name : Az.Accounts
Path : C:\Users\alexbat.REDMOND\OneDrive - Microsoft\Documents\PowerShell\Modules\Az.Accounts\2.13.0\Az.Accounts.psm1
Description : Microsoft Azure PowerShell - Accounts credential management cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell
Core.
For more information on account credential management, please visit the following:
https://learn.microsoft.com/powershell/azure/authenticate-azureps
ModuleType : Script
Version : 2.13.0
```
### Error output
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.