Skip to content

Commit

Permalink
refactor hostname matching for tier 1 in variables.ps1
Browse files Browse the repository at this point in the history
see #789
  • Loading branch information
FH-Inway committed Jan 2, 2024
1 parent 36fa622 commit 0e64465
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion d365fo.tools/internal/scripts/variables.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 0e64465

Please sign in to comment.