Skip to content

Commit

Permalink
Merge pull request #798 from FH-Inway/improve-tier1-detection
Browse files Browse the repository at this point in the history
refactor hostname matching for tier 1 in variables.ps1
  • Loading branch information
Splaxi authored Jan 3, 2024
2 parents 36fa622 + 0e64465 commit 6ccdfa0
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 6ccdfa0

Please sign in to comment.