From 0e64465bfe24f95805741819b7857682552e2f39 Mon Sep 17 00:00:00 2001 From: Florian Hopfner Date: Tue, 2 Jan 2024 17:24:45 +0100 Subject: [PATCH] refactor hostname matching for tier 1 in variables.ps1 see #789 --- d365fo.tools/internal/scripts/variables.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/d365fo.tools/internal/scripts/variables.ps1 b/d365fo.tools/internal/scripts/variables.ps1 index d67c9038..86eba868 100644 --- a/d365fo.tools/internal/scripts/variables.ps1 +++ b/d365fo.tools/internal/scripts/variables.ps1 @@ -65,7 +65,7 @@ if ($environment.Infrastructure.HostName -like "*cloud.onebox.dynamics.com*") { $Script:EnvironmentType = [EnvironmentType]::LocalHostedTier1 $Script:CanUseTrustedConnection = $true } -elseif ($environment.Infrastructure.HostName -like "*cloudax.*dynamics.com*") { +elseif ($environment.Infrastructure.HostName -match "(cloudax|axcloud).*dynamics.com") { $Script:EnvironmentType = [EnvironmentType]::AzureHostedTier1 $Script:CanUseTrustedConnection = $true }