Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add App Configuration to environment #720

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions sdk/environments/azure_china.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
1 change: 1 addition & 0 deletions sdk/environments/azure_gov.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
1 change: 1 addition & 0 deletions sdk/environments/azure_public.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
10 changes: 10 additions & 0 deletions sdk/environments/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down