-
Notifications
You must be signed in to change notification settings - Fork 40
/
azure_public.go
45 lines (39 loc) · 1.74 KB
/
azure_public.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
package environments
const AzurePublicCloud = "Public"
func AzurePublic() *Environment {
env := baseEnvironmentWithName(AzurePublicCloud)
env.Authorization = &Authorization{
Audiences: []string{
"https://management.core.windows.net",
"https://management.azure.com",
},
IdentityProvider: "AAD",
LoginEndpoint: "https://login.microsoftonline.com",
Tenant: "common",
}
env.ResourceManager = ResourceManagerAPI("https://management.azure.com")
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")
env.ContainerRegistry = ContainerRegistryAPI("azurecr.io")
env.CosmosDB = CosmosDBAPI("documents.azure.com")
env.DataLake = DataLakeAPI("azuredatalakestore.net")
env.IoTCentral = IoTCentral("azureiotcentral.com")
env.KeyVault = KeyVaultAPI("vault.azure.net")
env.ManagedHSM = ManagedHSMAPI("https://managedhsm.azure.net", "managedhsm.azure.net")
env.MariaDB = MariaDBAPI("mariadb.database.azure.com")
env.MySql = MySqlAPI("mysql.database.azure.com")
env.OperationalInsights = OperationalInsightsAPI()
env.Postgresql = PostgresqlAPI("postgres.database.azure.com")
env.ServiceBus = ServiceBusAPI("https://servicebus.windows.net", "servicebus.windows.net")
env.Sql = SqlAPI("database.windows.net")
env.Storage = StorageAPI("core.windows.net")
env.Synapse = SynapseAPI("dev.azuresynapse.net")
env.TrafficManager = TrafficManagerAPI("trafficmanager.net")
return &env
}