Skip to content

Commit 96632cc

Browse files
committed
Update Get-CippApiAuth.ps1
1 parent 85ae0b9 commit 96632cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/CIPPCore/Public/Authentication/Get-CippApiAuth.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function Get-CippApiAuth {
88
Disable-AzContextAutosave -Scope Process | Out-Null
99
$null = Connect-AzAccount -Identity
1010
$SubscriptionId = $env:WEBSITE_OWNER_NAME -split '\+' | Select-Object -First 1
11-
$Context = Set-AzContext -SubscriptionId $SubscriptionId -TenantId $env:TenantId -ErrorAction Stop
11+
$Context = Set-AzContext -SubscriptionId $SubscriptionId
1212
} else {
1313
$Context = Get-AzContext
1414
$SubscriptionId = $Context.Subscription.Id

0 commit comments

Comments
 (0)