From 02942df60cd1d11c550801b2b07d2a7c58f2c3e0 Mon Sep 17 00:00:00 2001 From: Mark Dordoy Date: Mon, 30 Jan 2023 13:07:08 +0000 Subject: [PATCH] Remove Workaround for US Gov Bug (#987) * Update client.go * Update client.go * fix format * Update client.go --- internal/services/applications/client/client.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/internal/services/applications/client/client.go b/internal/services/applications/client/client.go index 67d7f6ab76..ca8bb74385 100644 --- a/internal/services/applications/client/client.go +++ b/internal/services/applications/client/client.go @@ -2,7 +2,6 @@ package client import ( "github.com/hashicorp/terraform-provider-azuread/internal/common" - "github.com/manicminer/hamilton/environments" "github.com/manicminer/hamilton/msgraph" ) @@ -18,14 +17,6 @@ func NewClient(o *common.ClientOptions) *Client { applicationTemplatesClient := msgraph.NewApplicationTemplatesClient(o.TenantID) - if o.Environment.MsGraph.Endpoint == environments.MsGraphUSGovL4Endpoint { - //Short term fix while we wait for Microsoft to fix an intermittent 504 error causing an applicationTemplate instantiate - //call to produce a 504. However MS api doesnt cancel request and you end up creating multiple app registrations and service principals - //as the client retries. Bug is not present in the beta API. - //Expected fix Feb 2023 - applicationTemplatesClient.BaseClient.ApiVersion = msgraph.VersionBeta - } - o.ConfigureClient(&applicationTemplatesClient.BaseClient) directoryObjectsClient := msgraph.NewDirectoryObjectsClient(o.TenantID)