Skip to content

Commit 95f17b3

Browse files
good catch john
1 parent 84e747d commit 95f17b3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Modules/CIPPCore/Public/Get-CIPPAuthentication.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,9 @@ function Get-CIPPAuthentication {
5757
$tenants = Get-CIPPAzDataTableEntity @TenantsTable -Filter $Filter
5858
if ($tenants) {
5959
$tenants | ForEach-Object {
60-
$name = $_.tenantId
60+
$name = $_.customerId
6161
$secret = Get-AzKeyVaultSecret -VaultName $keyvaultname -Name $name -AsPlainText -ErrorAction Stop
6262
if ($secret) {
63-
$name = $_.customerId
6463
Set-Item -Path env:$name -Value $secret -Force
6564
}
6665
}

0 commit comments

Comments
 (0)