Product: PowerShell Universal
Version: 5.0.3
Hello everyone,
Since installing version 5.0.3, my secret variables stored in an Azure keyvault no longer work.
I don’t know if I’ve missed something in my configuration. Everything worked fine in version 4.3.4.
My initialize.ps1 file hasn’t changed
Import-Module "Az.Accounts"
Import-Module "Az.KeyVault"
$subscription = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
$tenant = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
$KVaultName = "XXXXXXXXXXXXXXXX"
Connect-AzAccount -Subscription $subscription -TenantId $tenant -ServicePrincipal -ApplicationId $env:AZURE_CLIENT_ID -FederatedToken $(Get-Content $env:AZURE_FEDERATED_TOKEN_FILE -raw)
Register-SecretVault -ModuleName Az.KeyVault -Name AzureKeyVault -VaultParameters @{
AZKVaultName = $KVaultName
SubscriptionId = $subscription
} -AllowClobber
I’ve also tried to create a script and then run it directly via jobs and everything is OK (the script doesn’t return any errors).
Below are the error logs I was able to find.
[14:08:13 ERR] Failed to read secret :Your Azure credentials have not been set up or have expired, please run Connect-AzAccount to set up your Azure credentials.
ClientAssertionCredential authentication failed: Entry point was not found.
[14:08:13 ERR] Failed to read secret :Your Azure credentials have not been set up or have expired, please run Connect-AzAccount to set up your Azure credentials.
ClientAssertionCredential authentication failed: Entry point was not found.
[14:08:13 ERR] Failed to read secret :Your Azure credentials have not been set up or have expired, please run Connect-AzAccount to set up your Azure credentials.
ClientAssertionCredential authentication failed: Entry point was not found.
[14:08:13 ERR] Failed to read secret :Your Azure credentials have not been set up or have expired, please run Connect-AzAccount to set up your Azure credentials.
ClientAssertionCredential authentication failed: Entry point was not found.
[14:08:13 ERR] Failed to read secret :Your Azure credentials have not been set up or have expired, please run Connect-AzAccount to set up your Azure credentials.
ClientAssertionCredential authentication failed: Entry point was not found.
[14:08:13 ERR] Failed to read secret :Your Azure credentials have not been set up or have expired, please run Connect-AzAccount to set up your Azure credentials.
ClientAssertionCredential authentication failed: Entry point was not found.
[14:08:14 ERR] Failed to read secret :Your Azure credentials have not been set up or have expired, please run Connect-AzAccount to set up your Azure credentials.
ClientAssertionCredential authentication failed: Entry point was not found.
[14:08:14 ERR] Failed to read secret :Your Azure credentials have not been set up or have expired, please run Connect-AzAccount to set up your Azure credentials.
ClientAssertionCredential authentication failed: Entry point was not found.
[14:08:14 ERR] Failed to read secret :Your Azure credentials have not been set up or have expired, please run Connect-AzAccount to set up your Azure credentials.
ClientAssertionCredential authentication failed: Entry point was not found.
[14:08:14 ERR] Failed to read secret :Your Azure credentials have not been set up or have expired, please run Connect-AzAccount to set up your Azure credentials.
ClientAssertionCredential authentication failed: Entry point was not found.
[14:08:15 ERR] Failed to read secret :Your Azure credentials have not been set up or have expired, please run Connect-AzAccount to set up your Azure credentials.
ClientAssertionCredential authentication failed: Entry point was not found.
[14:08:15 ERR] Failed to read secret :Your Azure credentials have not been set up or have expired, please run Connect-AzAccount to set up your Azure credentials.
ClientAssertionCredential authentication failed: Entry point was not found.
[14:08:15 ERR] Failed to read secret :Your Azure credentials have not been set up or have expired, please run Connect-AzAccount to set up your Azure credentials.
ClientAssertionCredential authentication failed: Entry point was not found.
[14:08:15 ERR] Failed to read secret :Your Azure credentials have not been set up or have expired, please run Connect-AzAccount to set up your Azure credentials.
ClientAssertionCredential authentication failed: Entry point was not found.
[14:08:15 ERR] Failed to read secret :Your Azure credentials have not been set up or have expired, please run Connect-AzAccount to set up your Azure credentials.
ClientAssertionCredential authentication failed: Entry point was not found.
Thank you in advance for your help