diff --git a/src/Authentication.Abstractions/AzureEnvironment.BuiltIn.cs b/src/Authentication.Abstractions/AzureEnvironment.BuiltIn.cs index 091db375bb..844537f1b5 100644 --- a/src/Authentication.Abstractions/AzureEnvironment.BuiltIn.cs +++ b/src/Authentication.Abstractions/AzureEnvironment.BuiltIn.cs @@ -175,6 +175,8 @@ private static void SetExtendedProperties(IDictionary azureEnvironments[EnvironmentName.AzureChinaCloud].SetProperty(ExtendedEndpoint.AnalysisServicesEndpointResourceId, AzureEnvironmentConstants.ChinaAnalysisServicesEndpointResourceId); azureEnvironments[EnvironmentName.AzureChinaCloud].SetProperty(ExtendedEndpoint.ManagedHsmServiceEndpointResourceId, AzureEnvironmentConstants.ChinaManagedHsmServiceEndpointResourceId); azureEnvironments[EnvironmentName.AzureChinaCloud].SetProperty(ExtendedEndpoint.ManagedHsmServiceEndpointSuffix, AzureEnvironmentConstants.ChinaManagedHsmDnsSuffix); + azureEnvironments[EnvironmentName.AzureChinaCloud].SetProperty(ExtendedEndpoint.AzureAppConfigurationEndpointResourceId, AzureEnvironmentConstants.ChinaAppConfigurationEndpointResourceId); + azureEnvironments[EnvironmentName.AzureChinaCloud].SetProperty(ExtendedEndpoint.AzureAppConfigurationEndpointSuffix, AzureEnvironmentConstants.ChinaAppConfigurationEndpointSuffix); azureEnvironments[EnvironmentName.AzureChinaCloud].SetProperty(ExtendedEndpoint.ContainerRegistryEndpointResourceId, AzureEnvironmentConstants.ChinaContainerRegistryEndpointResourceId); } @@ -186,6 +188,8 @@ private static void SetExtendedProperties(IDictionary azureEnvironments[EnvironmentName.AzureUSGovernment].SetProperty(ExtendedEndpoint.AnalysisServicesEndpointResourceId, AzureEnvironmentConstants.USGovernmentAnalysisServicesEndpointResourceId); azureEnvironments[EnvironmentName.AzureUSGovernment].SetProperty(ExtendedEndpoint.ManagedHsmServiceEndpointResourceId, AzureEnvironmentConstants.USGovernmeneManagedHsmServiceEndpointResourceId); azureEnvironments[EnvironmentName.AzureUSGovernment].SetProperty(ExtendedEndpoint.ManagedHsmServiceEndpointSuffix, AzureEnvironmentConstants.USGovernmentManagedHsmDnsSuffix); + azureEnvironments[EnvironmentName.AzureUSGovernment].SetProperty(ExtendedEndpoint.AzureAppConfigurationEndpointResourceId, AzureEnvironmentConstants.USGovernmentAppConfigurationEndpointResourceId); + azureEnvironments[EnvironmentName.AzureUSGovernment].SetProperty(ExtendedEndpoint.AzureAppConfigurationEndpointSuffix, AzureEnvironmentConstants.USGovernmentAppConfigurationEndpointSuffix); azureEnvironments[EnvironmentName.AzureUSGovernment].SetProperty(ExtendedEndpoint.ContainerRegistryEndpointResourceId, AzureEnvironmentConstants.USGovernmentContainerRegistryEndpointResourceId); } } diff --git a/src/Authentication.Abstractions/AzureEnvironmentConstants.cs b/src/Authentication.Abstractions/AzureEnvironmentConstants.cs index d4c5a7eadc..1d7a86978d 100644 --- a/src/Authentication.Abstractions/AzureEnvironmentConstants.cs +++ b/src/Authentication.Abstractions/AzureEnvironmentConstants.cs @@ -269,10 +269,18 @@ public static class AzureEnvironmentConstants public const string AzurePurviewEndpointResourceId = "https://purview.azure.net"; /// - /// App Configuration + /// The domain name suffix for App Configuration /// public const string AzureAppConfigurationEndpointSuffix = "azconfig.io"; + public const string ChinaAppConfigurationEndpointSuffix = "azconfig.azure.cn"; + public const string USGovernmentAppConfigurationEndpointSuffix = "azconfig.azure.us"; + + /// + /// The endpoint Resource Id for App Configuration + /// public const string AzureAppConfigurationEndpointResourceId = "https://azconfig.io"; + public const string ChinaAppConfigurationEndpointResourceId = "https://azconfig.azure.cn"; + public const string USGovernmentAppConfigurationEndpointResourceId = "https://azconfig.azure.us"; /// /// The endpoint Resource Id for Azure Container Registry