-
Bug
-
Resolution: Duplicate
-
Major
-
None
-
Jenkins 2.235.5, Azure VM Agents 1.5.0, Azure Credentials 4.0.2
The Azure VM Agents plugin doesn't support alternative Azure clouds (there are 4 Azure Clouds, Azure aka Azure Commercial, Azure China, Azure Germany & Azure US Government), when I create a Managed Identity for Azure Resources credential for our Azure US Government cloud, attempts to configure the Azure VM Agents Cloud Config result in an AAD error:
com.microsoft.aad.adal4j.AuthenticationException: {"error_description":"AADSTS900439: Confidential Client requests are not supported on the public endpoint (login.microsoftonline.com) for tenants in the Azure Government cloud. Send your login requests to https:\/\/login.microsoftonline.us instead. Please see https:\/\/devblogs.microsoft.com\/azuregov\/azure-government-aad-authority-endpoint-update\/ for more details","error":"invalid_request","error_uri":"https:\/\/login-us.microsoftonline.com\/error?code=900439"}