Skip to content

Commit

Permalink
azureclient: Add MicrosoftGraphEndpoint to AROEnvironment
Browse files Browse the repository at this point in the history
The Azure/go-autorest module does not define an endpoint for the
Microsoft Graph API [1] so define it ourselves for now.

[1] Azure/go-autorest#585
  • Loading branch information
mbarnes committed Apr 15, 2022
1 parent b217f58 commit 73f0922
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/util/azureclient/environments.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import (
type AROEnvironment struct {
azure.Environment
ActualCloudName string
MicrosoftGraphEndpoint string // Work around https://github.com/Azure/go-autorest/issues/585
GenevaMonitoringEndpoint string
AppSuffix string
}
Expand All @@ -23,6 +24,7 @@ var (
PublicCloud = AROEnvironment{
Environment: azure.PublicCloud,
ActualCloudName: "AzureCloud",
MicrosoftGraphEndpoint: "https://graph.microsoft.com",
GenevaMonitoringEndpoint: "https://gcs.prod.monitoring.core.windows.net/",
AppSuffix: "aro.azure.com",
}
Expand All @@ -31,6 +33,7 @@ var (
USGovernmentCloud = AROEnvironment{
Environment: azure.USGovernmentCloud,
ActualCloudName: "AzureUSGovernment",
MicrosoftGraphEndpoint: "https://graph.microsoft.us",
GenevaMonitoringEndpoint: "https://gcs.monitoring.core.usgovcloudapi.net/",
AppSuffix: "aro.azure.us",
}
Expand Down

0 comments on commit 73f0922

Please sign in to comment.