From 73f09226ac9aa85affb243f499fbbbe848c60e43 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Tue, 15 Feb 2022 11:34:36 -0500 Subject: [PATCH] azureclient: Add MicrosoftGraphEndpoint to AROEnvironment The Azure/go-autorest module does not define an endpoint for the Microsoft Graph API [1] so define it ourselves for now. [1] https://github.com/Azure/go-autorest/issues/585 --- pkg/util/azureclient/environments.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/util/azureclient/environments.go b/pkg/util/azureclient/environments.go index 23f8c036ede..3e4c994bf66 100644 --- a/pkg/util/azureclient/environments.go +++ b/pkg/util/azureclient/environments.go @@ -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 } @@ -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", } @@ -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", }