We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85ae0b9 commit 96632ccCopy full SHA for 96632cc
Modules/CIPPCore/Public/Authentication/Get-CippApiAuth.ps1
@@ -8,7 +8,7 @@ function Get-CippApiAuth {
8
Disable-AzContextAutosave -Scope Process | Out-Null
9
$null = Connect-AzAccount -Identity
10
$SubscriptionId = $env:WEBSITE_OWNER_NAME -split '\+' | Select-Object -First 1
11
- $Context = Set-AzContext -SubscriptionId $SubscriptionId -TenantId $env:TenantId -ErrorAction Stop
+ $Context = Set-AzContext -SubscriptionId $SubscriptionId
12
} else {
13
$Context = Get-AzContext
14
$SubscriptionId = $Context.Subscription.Id
0 commit comments