File tree Expand file tree Collapse file tree 7 files changed +29
-0
lines changed Expand file tree Collapse file tree 7 files changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,8 @@ func AzureChina() *Environment {
2929 env .ManagedHSM = ManagedHSMAPI ("https://managedhsm.azure.cn" , "managedhsm.azure.cn" )
3030 env .MariaDB = MariaDBAPI ("mariadb.database.chinacloudapi.cn" ).WithResourceIdentifier ("https://ossrdbms-aad.database.chinacloudapi.cn" )
3131 env .MySql = MySqlAPI ("mysql.database.chinacloudapi.cn" ).WithResourceIdentifier ("https://ossrdbms-aad.database.chinacloudapi.cn" )
32+ env .Office365Compliance = Office365ComplianceAPI ("https://ps.compliance.protection.outlook.com" )
33+ env .Office365ExchangeOnline = Office365ExchangeOnlineAPI ("https://outlook.office365.com" )
3234 env .OperationalInsights = OperationalInsightsAPI ().WithResourceIdentifier ("https://api.loganalytics.azure.cn" )
3335 env .Postgresql = PostgresqlAPI ("postgres.database.chinacloudapi.cn" ).WithResourceIdentifier ("https://ossrdbms-aad.database.chinacloudapi.cn" )
3436 env .ServiceBus = ServiceBusAPI ("https://servicebus.chinacloudapi.cn" , "servicebus.chinacloudapi.cn" ).WithResourceIdentifier ("https://servicebus.chinacloudapi.cn" )
Original file line number Diff line number Diff line change @@ -29,6 +29,8 @@ func AzureUSGovernment() *Environment {
2929 env .ManagedHSM = ManagedHSMAPI ("https://managedhsm.usgovcloudapi.net" , "managedhsm.usgovcloudapi.net" )
3030 env .MariaDB = MariaDBAPI ("mariadb.database.usgovcloudapi.net" ).WithResourceIdentifier ("https://ossrdbms-aad.database.usgovcloudapi.net" )
3131 env .MySql = MySqlAPI ("mysql.database.usgovcloudapi.net" ).WithResourceIdentifier ("https://ossrdbms-aad.database.usgovcloudapi.net" )
32+ env .Office365Compliance = Office365ComplianceAPI ("https://ps.compliance.protection.outlook.us" )
33+ env .Office365ExchangeOnline = Office365ExchangeOnlineAPI ("https://outlook.office365.us" )
3234 env .OperationalInsights = OperationalInsightsAPI ().WithResourceIdentifier ("https://api.loganalytics.us" )
3335 env .Postgresql = PostgresqlAPI ("postgres.database.usgovcloudapi.net" ).WithResourceIdentifier ("https://ossrdbms-aad.database.usgovcloudapi.net" )
3436 env .ServiceBus = ServiceBusAPI ("https://servicebus.usgovcloudapi.net" , "servicebus.usgovcloudapi.net" ).WithResourceIdentifier ("https://servicebus.usgovcloudapi.net" )
Original file line number Diff line number Diff line change @@ -33,6 +33,8 @@ func AzurePublic() *Environment {
3333 env .ManagedHSM = ManagedHSMAPI ("https://managedhsm.azure.net" , "managedhsm.azure.net" )
3434 env .MariaDB = MariaDBAPI ("mariadb.database.azure.com" ).WithResourceIdentifier ("https://ossrdbms-aad.database.windows.net" )
3535 env .MySql = MySqlAPI ("mysql.database.azure.com" ).WithResourceIdentifier ("https://ossrdbms-aad.database.windows.net" )
36+ env .Office365Compliance = Office365ComplianceAPI ("https://ps.compliance.protection.outlook.com" )
37+ env .Office365ExchangeOnline = Office365ExchangeOnlineAPI ("https://outlook.office365.com" )
3638 env .OperationalInsights = OperationalInsightsAPI ().WithResourceIdentifier ("https://api.loganalytics.io" )
3739 env .Postgresql = PostgresqlAPI ("postgres.database.azure.com" ).WithResourceIdentifier ("https://ossrdbms-aad.database.windows.net" )
3840 env .ServiceBus = ServiceBusAPI ("https://servicebus.windows.net" , "servicebus.windows.net" ).WithResourceIdentifier ("https://servicebus.azure.net" )
Original file line number Diff line number Diff line change @@ -81,6 +81,7 @@ func baseEnvironmentWithName(name string) Environment {
8181 MileIqRestService : applicationIdOnly ("MileIqRestService" , mileIqRestServiceAppId ),
8282 MixedReality : applicationIdOnly ("MixedReality" , mixedRealityAppId ),
8383 MySql : applicationIdOnly ("MySql" , ossRDBMSAppId ),
84+ Office365Compliance : applicationIdOnly ("Office365Compliance" , office365ComplianceAppId ),
8485 Office365Connectors : applicationIdOnly ("Office365Connectors" , office365ConnectorsAppId ),
8586 Office365Demeter : applicationIdOnly ("Office365Demeter" , office365DemeterAppId ),
8687 Office365DwEngineV2 : applicationIdOnly ("Office365DwEngineV2" , office365DwEngineV2AppId ),
Original file line number Diff line number Diff line change @@ -75,6 +75,7 @@ const mileIqAdminCenterAppId = "de096ee1-dae7-4ee1-8dd5-d88ccc473815"
7575const mileIqDashboardAppId = "f7069a8d-9edc-4300-b365-ae53c9627fc4"
7676const mileIqRestServiceAppId = "b692184e-b47f-4706-b352-84b288d2d9ee"
7777const mixedRealityAppId = "c7ddd9b4-5172-4e28-bd29-1e0792947d18"
78+ const office365ComplianceAppId = "00000002-0000-0ff1-ce00-000000000000"
7879const office365ConnectorsAppId = "48af08dc-f6d2-435f-b2a7-069abd99c086"
7980const office365DemeterAppId = "982bda36-4632-4165-a46a-9863b1bbcf7d"
8081const office365DwEngineV2AppId = "441509e5-a165-4363-8ee7-bcf0b7d26739"
Original file line number Diff line number Diff line change @@ -91,6 +91,7 @@ type Environment struct {
9191 MySql Api
9292 OSSRDBMSPostgreSQLFlexibleServerAadAuthentication Api
9393 OSSRDMBS Api
94+ Office365Compliance Api
9495 Office365Connectors Api
9596 Office365Demeter Api
9697 Office365DwEngineV2 Api
Original file line number Diff line number Diff line change @@ -158,6 +158,26 @@ func MySqlAPI(domainSuffix string) *ApiEndpoint {
158158 }
159159}
160160
161+ func Office365ComplianceAPI (resourceId string ) * ApiEndpoint {
162+ // endpoint and resource ID are the same, only the resource ID is returned in metadata
163+ return & ApiEndpoint {
164+ endpoint : pointer .To (resourceId ),
165+ appId : pointer .To (office365ComplianceAppId ),
166+ name : "Office365Compliance" ,
167+ resourceIdentifier : pointer .To (resourceId ),
168+ }
169+ }
170+
171+ func Office365ExchangeOnlineAPI (resourceId string ) * ApiEndpoint {
172+ // endpoint and resource ID are the same, only the resource ID is returned in metadata
173+ return & ApiEndpoint {
174+ endpoint : pointer .To (resourceId ),
175+ appId : pointer .To (office365ExchangeOnlineAppId ),
176+ name : "Office365ExchangeOnline" ,
177+ resourceIdentifier : pointer .To (resourceId ),
178+ }
179+ }
180+
161181func OperationalInsightsAPI () * ApiEndpoint {
162182 return & ApiEndpoint {
163183 domainSuffix : nil ,
You can’t perform that action at this time.
0 commit comments