Skip to content
Open
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
2 changes: 2 additions & 0 deletions sdk/environments/azure_china.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ func AzureChina() *Environment {
env.ManagedHSM = ManagedHSMAPI("https://managedhsm.azure.cn", "managedhsm.azure.cn")
env.MariaDB = MariaDBAPI("mariadb.database.chinacloudapi.cn").WithResourceIdentifier("https://ossrdbms-aad.database.chinacloudapi.cn")
env.MySql = MySqlAPI("mysql.database.chinacloudapi.cn").WithResourceIdentifier("https://ossrdbms-aad.database.chinacloudapi.cn")
env.Office365Compliance = Office365ComplianceAPI("https://ps.compliance.protection.outlook.com")
env.Office365ExchangeOnline = Office365ExchangeOnlineAPI("https://outlook.office365.com")
env.OperationalInsights = OperationalInsightsAPI().WithResourceIdentifier("https://api.loganalytics.azure.cn")
env.Postgresql = PostgresqlAPI("postgres.database.chinacloudapi.cn").WithResourceIdentifier("https://ossrdbms-aad.database.chinacloudapi.cn")
env.ServiceBus = ServiceBusAPI("https://servicebus.chinacloudapi.cn", "servicebus.chinacloudapi.cn").WithResourceIdentifier("https://servicebus.chinacloudapi.cn")
Expand Down
2 changes: 2 additions & 0 deletions sdk/environments/azure_gov.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ func AzureUSGovernment() *Environment {
env.ManagedHSM = ManagedHSMAPI("https://managedhsm.usgovcloudapi.net", "managedhsm.usgovcloudapi.net")
env.MariaDB = MariaDBAPI("mariadb.database.usgovcloudapi.net").WithResourceIdentifier("https://ossrdbms-aad.database.usgovcloudapi.net")
env.MySql = MySqlAPI("mysql.database.usgovcloudapi.net").WithResourceIdentifier("https://ossrdbms-aad.database.usgovcloudapi.net")
env.Office365Compliance = Office365ComplianceAPI("https://ps.compliance.protection.outlook.us")
env.Office365ExchangeOnline = Office365ExchangeOnlineAPI("https://outlook.office365.us")
env.OperationalInsights = OperationalInsightsAPI().WithResourceIdentifier("https://api.loganalytics.us")
env.Postgresql = PostgresqlAPI("postgres.database.usgovcloudapi.net").WithResourceIdentifier("https://ossrdbms-aad.database.usgovcloudapi.net")
env.ServiceBus = ServiceBusAPI("https://servicebus.usgovcloudapi.net", "servicebus.usgovcloudapi.net").WithResourceIdentifier("https://servicebus.usgovcloudapi.net")
Expand Down
2 changes: 2 additions & 0 deletions sdk/environments/azure_public.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ func AzurePublic() *Environment {
env.ManagedHSM = ManagedHSMAPI("https://managedhsm.azure.net", "managedhsm.azure.net")
env.MariaDB = MariaDBAPI("mariadb.database.azure.com").WithResourceIdentifier("https://ossrdbms-aad.database.windows.net")
env.MySql = MySqlAPI("mysql.database.azure.com").WithResourceIdentifier("https://ossrdbms-aad.database.windows.net")
env.Office365Compliance = Office365ComplianceAPI("https://ps.compliance.protection.outlook.com")
env.Office365ExchangeOnline = Office365ExchangeOnlineAPI("https://outlook.office365.com")
env.OperationalInsights = OperationalInsightsAPI().WithResourceIdentifier("https://api.loganalytics.io")
env.Postgresql = PostgresqlAPI("postgres.database.azure.com").WithResourceIdentifier("https://ossrdbms-aad.database.windows.net")
env.ServiceBus = ServiceBusAPI("https://servicebus.windows.net", "servicebus.windows.net").WithResourceIdentifier("https://servicebus.azure.net")
Expand Down
1 change: 1 addition & 0 deletions sdk/environments/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ func baseEnvironmentWithName(name string) Environment {
MileIqRestService: applicationIdOnly("MileIqRestService", mileIqRestServiceAppId),
MixedReality: applicationIdOnly("MixedReality", mixedRealityAppId),
MySql: applicationIdOnly("MySql", ossRDBMSAppId),
Office365Compliance: applicationIdOnly("Office365Compliance", office365ComplianceAppId),
Office365Connectors: applicationIdOnly("Office365Connectors", office365ConnectorsAppId),
Office365Demeter: applicationIdOnly("Office365Demeter", office365DemeterAppId),
Office365DwEngineV2: applicationIdOnly("Office365DwEngineV2", office365DwEngineV2AppId),
Expand Down
1 change: 1 addition & 0 deletions sdk/environments/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ const mileIqAdminCenterAppId = "de096ee1-dae7-4ee1-8dd5-d88ccc473815"
const mileIqDashboardAppId = "f7069a8d-9edc-4300-b365-ae53c9627fc4"
const mileIqRestServiceAppId = "b692184e-b47f-4706-b352-84b288d2d9ee"
const mixedRealityAppId = "c7ddd9b4-5172-4e28-bd29-1e0792947d18"
const office365ComplianceAppId = "00000002-0000-0ff1-ce00-000000000000"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Compliance App ID is the same as that of Exchange Online.

const office365ConnectorsAppId = "48af08dc-f6d2-435f-b2a7-069abd99c086"
const office365DemeterAppId = "982bda36-4632-4165-a46a-9863b1bbcf7d"
const office365DwEngineV2AppId = "441509e5-a165-4363-8ee7-bcf0b7d26739"
Expand Down
1 change: 1 addition & 0 deletions sdk/environments/environment.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ type Environment struct {
MySql Api
OSSRDBMSPostgreSQLFlexibleServerAadAuthentication Api
OSSRDMBS Api
Office365Compliance Api
Office365Connectors Api
Office365Demeter Api
Office365DwEngineV2 Api
Expand Down
20 changes: 20 additions & 0 deletions sdk/environments/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,26 @@ func MySqlAPI(domainSuffix string) *ApiEndpoint {
}
}

func Office365ComplianceAPI(resourceId string) *ApiEndpoint {
// endpoint and resource ID are the same, only the resource ID is returned in metadata
return &ApiEndpoint{
endpoint: pointer.To(resourceId),
appId: pointer.To(office365ComplianceAppId),
name: "Office365Compliance",
resourceIdentifier: pointer.To(resourceId),
}
}

func Office365ExchangeOnlineAPI(resourceId string) *ApiEndpoint {
// endpoint and resource ID are the same, only the resource ID is returned in metadata
return &ApiEndpoint{
endpoint: pointer.To(resourceId),
appId: pointer.To(office365ExchangeOnlineAppId),
name: "Office365ExchangeOnline",
resourceIdentifier: pointer.To(resourceId),
}
}

func OperationalInsightsAPI() *ApiEndpoint {
return &ApiEndpoint{
domainSuffix: nil,
Expand Down
Loading