diff --git a/src/SdkCommon/ClientRuntime.Azure.Authentication/ActiveDirectoryServiceSettings.cs b/src/SdkCommon/ClientRuntime.Azure.Authentication/ActiveDirectoryServiceSettings.cs
index 3fe363ef928ca..cf216c300ce27 100644
--- a/src/SdkCommon/ClientRuntime.Azure.Authentication/ActiveDirectoryServiceSettings.cs
+++ b/src/SdkCommon/ClientRuntime.Azure.Authentication/ActiveDirectoryServiceSettings.cs
@@ -16,7 +16,7 @@ public sealed class ActiveDirectoryServiceSettings
private static readonly ActiveDirectoryServiceSettings AzureSettings = new ActiveDirectoryServiceSettings
{
- AuthenticationEndpoint= new Uri("https://login.windows.net/"),
+ AuthenticationEndpoint= new Uri("https://login.microsoftonline.com/"),
TokenAudience = new Uri("https://management.core.windows.net/"),
ValidateAuthority = true
};
@@ -28,6 +28,20 @@ public sealed class ActiveDirectoryServiceSettings
ValidateAuthority = true
};
+ private static readonly ActiveDirectoryServiceSettings AzureUSGovernmentSettings = new ActiveDirectoryServiceSettings
+ {
+ AuthenticationEndpoint = new Uri("https://login.microsoftonline.com/"),
+ TokenAudience = new Uri("https://management.core.usgovcloudapi.net/"),
+ ValidateAuthority = true
+ };
+
+ private static readonly ActiveDirectoryServiceSettings AzureGermanCloudSettings = new ActiveDirectoryServiceSettings
+ {
+ AuthenticationEndpoint = new Uri("https://login.microsoftonline.de/"),
+ TokenAudience = new Uri("https://management.core.cloudapi.de/"),
+ ValidateAuthority = true
+ };
+
///
/// Gets the serviceSettings for authentication with Azure
///
@@ -38,6 +52,16 @@ public sealed class ActiveDirectoryServiceSettings
///
public static ActiveDirectoryServiceSettings AzureChina { get { return AzureChinaSettings; } }
+ ///
+ /// Gets the serviceSettings for authentication with Azure US Government
+ ///
+ public static ActiveDirectoryServiceSettings AzureUSGovernment { get { return AzureUSGovernmentSettings; } }
+
+ ///
+ /// Gets the serviceSettings for authentication with Azure Germany
+ ///
+ public static ActiveDirectoryServiceSettings AzureGermany { get { return AzureGermanCloudSettings; } }
+
///
/// Gets or sets the ActiveDirectory Endpoint for the Azure Environment
///