Skip to content

Commit

Permalink
Update installArcAgent.ps1 (#2539)
Browse files Browse the repository at this point in the history
fix to login script
  • Loading branch information
basimolimajeed authored May 29, 2024
1 parent 79c5150 commit 57f33fa
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Start-Transcript -Path C:\Temp\ArcInstallScript.log

# Azure Login

az login --service-principal -u $Env:appId -p=$Env:password --tenant $Env:tenantId
az login --service-principal -u $Env:appId -p $Env:password --tenant $Env:tenantId
az account set -s $Env:SubscriptionId

# Configure hosts file for Private link endpoints resolution
Expand Down Expand Up @@ -62,4 +62,4 @@ msiexec /i AzureConnectedMachineAgent.msi /l*v installationlog.txt /qn | Out-Str

# Remove schedule task
Unregister-ScheduledTask -TaskName "LogonScript" -Confirm:$False
Stop-Process -Name powershell -Force
Stop-Process -Name powershell -Force

0 comments on commit 57f33fa

Please sign in to comment.