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 {
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 $_ )
You can’t perform that action at this time.
0 commit comments