File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Modules/CIPPCore/Public/Entrypoints Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -36,12 +36,14 @@ Function Invoke-ExecListAppId {
36
36
} catch {
37
37
Write-Information " ERROR: Could not set context to subscription $SubscriptionId ."
38
38
}
39
+
39
40
$keyvaultname = ($env: WEBSITE_DEPLOYMENT_ID -split ' -' )[0 ]
40
41
try {
41
42
$env: ApplicationID = (Get-AzKeyVaultSecret - AsPlainText - VaultName $keyvaultname - Name ' ApplicationID' )
42
43
$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 ) "
44
45
} catch {
46
+ Write-Information " Retrieving secrets from KeyVault: $keyvaultname . The AppId is $ ( $env: ApplicationID ) and the TenantId is $ ( $env: TenantID ) "
45
47
Write-LogMessage - message " Failed to retrieve secrets from KeyVault: $keyvaultname " - LogData (Get-CippException - Exception $_ ) - Sev ' Error'
46
48
$env: ApplicationID = (Get-CippException - Exception $_ )
47
49
$env: TenantID = (Get-CippException - Exception $_ )
You can’t perform that action at this time.
0 commit comments