From 29b05a9e3f4c4860cd0d7257487131219f3b45d6 Mon Sep 17 00:00:00 2001 From: tombuildsstuff Date: Thu, 20 Feb 2020 08:03:12 +0100 Subject: [PATCH] r/recovery_services_vault: using the requested cloud rather than the default Fixes #5818 --- azurerm/internal/services/recoveryservices/client/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azurerm/internal/services/recoveryservices/client/client.go b/azurerm/internal/services/recoveryservices/client/client.go index 39f6742ce031..f4a8e0fb8c29 100644 --- a/azurerm/internal/services/recoveryservices/client/client.go +++ b/azurerm/internal/services/recoveryservices/client/client.go @@ -23,7 +23,7 @@ type Client struct { } func NewClient(o *common.ClientOptions) *Client { - vaultConfigsClient := backup.NewResourceVaultConfigsClient(o.SubscriptionId) + vaultConfigsClient := backup.NewResourceVaultConfigsClientWithBaseURI(o.ResourceManagerEndpoint, o.SubscriptionId) o.ConfigureClient(&vaultConfigsClient.Client, o.ResourceManagerAuthorizer) vaultsClient := recoveryservices.NewVaultsClientWithBaseURI(o.ResourceManagerEndpoint, o.SubscriptionId)