Skip to content

Commit f24f5f6

Browse files
committed
Update Get-CIPPAuthentication.ps1
1 parent b7b5ac2 commit f24f5f6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Modules/CIPPCore/Public/Get-CIPPAuthentication.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ function Get-CIPPAuthentication {
2424
$SubscriptionId = $env:WEBSITE_OWNER_NAME -split '\+' | Select-Object -First 1
2525
try {
2626
$Context = Get-AzContext
27+
Write-Information "Current context: $($Context.Subscription.Name)"
2728
if ($Context.Subscription.Id -ne $SubscriptionId) {
2829
Write-Information "Setting context to subscription $SubscriptionId"
2930
$null = Set-AzContext -SubscriptionId $SubscriptionId

0 commit comments

Comments
 (0)