diff --git a/sdk/environments/azure_china.go b/sdk/environments/azure_china.go index c13e6308cbc..2a9e16734a4 100644 --- a/sdk/environments/azure_china.go +++ b/sdk/environments/azure_china.go @@ -22,6 +22,7 @@ func AzureChina() *Environment { // DataLake, ManagedHSM and OperationalInsights are not available env.ApiManagement = ApiManagementAPI("azure-api.cn") + env.AppConfiguration = AppConfigurationAPI("azconfig.azure.cn") env.Batch = BatchAPI("https://batch.chinacloudapi.cn").withResourceIdentifier("https://batch.chinacloudapi.cn") env.ContainerRegistry = ContainerRegistryAPI("azurecr.cn") env.CosmosDB = CosmosDBAPI("documents.azure.cn") diff --git a/sdk/environments/azure_gov.go b/sdk/environments/azure_gov.go index 5af7c02de1e..ef4d02c049d 100644 --- a/sdk/environments/azure_gov.go +++ b/sdk/environments/azure_gov.go @@ -21,6 +21,7 @@ func AzureUSGovernment() *Environment { env.MicrosoftGraph = MicrosoftGraphAPI("https://graph.microsoft.us").withResourceIdentifier("https://graph.microsoft.us") env.ApiManagement = ApiManagementAPI("azure-api.us") + env.AppConfiguration = AppConfigurationAPI("azconfig.azure.us") env.Batch = BatchAPI("https://batch.core.usgovcloudapi.net").withResourceIdentifier("https://batch.core.usgovcloudapi.net") env.ContainerRegistry = ContainerRegistryAPI("azurecr.us") env.CosmosDB = CosmosDBAPI("documents.azure.us") diff --git a/sdk/environments/azure_public.go b/sdk/environments/azure_public.go index e53a06181b6..23dafb3b9fb 100644 --- a/sdk/environments/azure_public.go +++ b/sdk/environments/azure_public.go @@ -21,6 +21,7 @@ func AzurePublic() *Environment { env.MicrosoftGraph = MicrosoftGraphAPI("https://graph.microsoft.com") env.ApiManagement = ApiManagementAPI("azure-api.net") + env.AppConfiguration = AppConfigurationAPI("azconfig.io") env.Attestation = AttestationAPI("https://attest.azure.net") env.Batch = BatchAPI("https://batch.core.windows.net") env.CDNFrontDoor = CDNFrontDoorAPI("azurefd.net") diff --git a/sdk/environments/helpers.go b/sdk/environments/helpers.go index 6a97a6813a5..6f71964f3b8 100644 --- a/sdk/environments/helpers.go +++ b/sdk/environments/helpers.go @@ -25,6 +25,16 @@ func ApiManagementAPI(domainSuffix string) Api { } } +func AppConfigurationAPI(domainSuffix string) Api { + return &ApiEndpoint{ + domainSuffix: pointer.To(domainSuffix), + endpoint: nil, + appId: pointer.To(appConfigurationAppId), + name: "AppConfiguration", + resourceIdentifier: nil, + } +} + func AttestationAPI(endpoint string) Api { return &ApiEndpoint{ domainSuffix: nil,