Skip to content

Commit

Permalink
Merge pull request #2645 from zaidmohd/arcbox_3.0
Browse files Browse the repository at this point in the history
ArcBox 3.0 - add error handling
  • Loading branch information
janegilring authored Aug 6, 2024
2 parents c16f6b5 + 4419874 commit fa20fd1
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions azure_jumpstart_arcbox/artifacts/DataOpsLogonScript.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -378,8 +378,13 @@ $clusters | Foreach-Object -ThrottleLimit 5 -Parallel {

Start-Sleep -Seconds 10

az customlocation create --name $customLocation --resource-group $Env:resourceGroup --namespace arc --host-resource-id $connectedClusterId --cluster-extension-ids $extensionId --only-show-errors

try {
az customlocation create --name $customLocation --resource-group $Env:resourceGroup --namespace arc --host-resource-id $connectedClusterId --cluster-extension-ids $extensionId --only-show-errors
} catch {
Write-Host "Error creating custom location: $_" -ForegroundColor Red
Exit 1
}

Start-Sleep -Seconds 10

# Deploying the Azure Arc Data Controller
Expand Down

0 comments on commit fa20fd1

Please sign in to comment.