Skip to content

Commit

Permalink
replace alias
Browse files Browse the repository at this point in the history
  • Loading branch information
FH-Inway committed Nov 10, 2024
1 parent 4702af8 commit 04e9525
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions d365fo.tools/functions/import-d365aaduser.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -208,11 +208,11 @@ function Import-D365AadUser {
Write-PSFMessage -Level Verbose -Message "Trying to connect to the Azure Active Directory with tenant id '$TenantId'"

if ($PSBoundParameters.ContainsKey("AzureAdCredential") -eq $true) {
Login-AzAccount -Credential $AzureAdCredential -ErrorAction Stop -TenantId $TenantId
Connect-AzAccount -Credential $AzureAdCredential -ErrorAction Stop -TenantId $TenantId
}
else {
if ($SkipAzureAd -eq $false) {
Login-AzAccount -ErrorAction Stop -TenantId $TenantId
Connect-AzAccount -ErrorAction Stop -TenantId $TenantId
}
}
}
Expand Down

0 comments on commit 04e9525

Please sign in to comment.