Skip to content

Commit

Permalink
repairing subscription selection
Browse files Browse the repository at this point in the history
  • Loading branch information
schmittnieto committed Jan 5, 2025
1 parent eaa43c9 commit 9b184af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/01Lab/03_TroubleshootingExtensions.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,8 @@ $currentStep++
Update-ProgressBar -CurrentStep $currentStep -TotalSteps $totalSteps -StatusMessage "Selecting Azure Subscription..."
Write-Message "Retrieving available Azure Subscriptions..." -Type "Info"
try {
$subscription = Get-Option "Get-AzSubscription" "Name"
Set-AzContext -SubscriptionName $subscription -ErrorAction Stop
#$subscription = Get-Option "Get-AzSubscription" "Name"
#Set-AzContext -SubscriptionName $subscription -ErrorAction Stop
$selectedSubscription = Get-AzContext -ErrorAction Stop
$SubscriptionId = $selectedSubscription.Subscription.Id
Write-Message "Selected Subscription: $($selectedSubscription.Subscription.Name)" -Type "Success"
Expand Down

0 comments on commit 9b184af

Please sign in to comment.