Connect-AzAccount fails when using federated token with AzureChinaCloud #22647
Labels
Authentication
Azure PS Team
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
customer-reported
Milestone
Description
When trying to login to AzureChinaCloud via Connect-AzAccount using federated token it fails.
Connect-AzAccount -ServicePrincipal -Tenant a3a14ec6-4597-4a3c-aacf-34e746c2624e -ApplicationId *** -FederatedToken ***** -Environment AzureChinaCloud -Scope Process
But az cli call with the same parameters succeeds:
az cloud set -n AzureChinaCloud
az login --service-principal -u *** --tenant a3a14ec6-4597-4a3c-aacf-34e746c2624e --federated-token ***
It was reproduced on these versions of Az module: 9.3.0, 9.7.1, 10.2.0
Issue script & Debug output
Environment data
Module versions
Error output
The text was updated successfully, but these errors were encountered: