Skip to content

Commit c434360

Browse files
why you no work.
1 parent be7606c commit c434360

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Modules/CIPPCore/Public/Entrypoints/Invoke-ExecListAppId.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,14 @@ Function Invoke-ExecListAppId {
3636
} catch {
3737
Write-Information "ERROR: Could not set context to subscription $SubscriptionId."
3838
}
39+
3940
$keyvaultname = ($env:WEBSITE_DEPLOYMENT_ID -split '-')[0]
4041
try {
4142
$env:ApplicationID = (Get-AzKeyVaultSecret -AsPlainText -VaultName $keyvaultname -Name 'ApplicationID')
4243
$env:TenantID = (Get-AzKeyVaultSecret -AsPlainText -VaultName $keyvaultname -Name 'TenantID')
43-
Write-Host "Retrieving secrets from KeyVault: $keyvaultname. The AppId is $($env:ApplicationID) and the TenantId is $($env:TenantID)"
44+
Write-Information "Retrieving secrets from KeyVault: $keyvaultname. The AppId is $($env:ApplicationID) and the TenantId is $($env:TenantID)"
4445
} catch {
46+
Write-Information "Retrieving secrets from KeyVault: $keyvaultname. The AppId is $($env:ApplicationID) and the TenantId is $($env:TenantID)"
4547
Write-LogMessage -message "Failed to retrieve secrets from KeyVault: $keyvaultname" -LogData (Get-CippException -Exception $_) -Sev 'Error'
4648
$env:ApplicationID = (Get-CippException -Exception $_)
4749
$env:TenantID = (Get-CippException -Exception $_)

0 commit comments

Comments
 (0)