Skip to content

Commit

Permalink
Merge pull request #22 from Azure/juschen/exit-azurevm
Browse files Browse the repository at this point in the history
Exit in the case onboarding onto Azure VM
  • Loading branch information
justinytchen authored Nov 28, 2023
2 parents b21ae82 + 9ae032c commit 30a194d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion EnableAzureArc.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,8 @@ If ($Null -ne $TestAzuremachine) {
Write-Log -msg "Machine is an Azure VM, it won't be onboarded in Azure Arc" -msgtype ERROR
$ArcOnboardingData.AzureVM = $true
$ArcOnboardingData.ArcCompatible = $false

Write-Log -msg "Exiting Onboarding Process" -msgtype INFO
exit
}
else {
Write-Log -msg "Machine is not an Azure VM. Continuing the onboarding process" -msgtype INFO
Expand Down

0 comments on commit 30a194d

Please sign in to comment.