The Terraform DevOps pipeline is failing due to an expired client secret for the Azure AD application used to access the Key Vault altinn-terraform-kv. This prevents the pipeline from fetching necessary secrets, causing it to fail during the Key Vault access step.
Error Message
Key vault name: altinn-terraform-kv. Downloading secrets using: https://altinn-terraform-kv.vault.azure.net/secrets?maxresults=25&api-version=2016-10-01.
##[error]Get secrets failed. Error: Could not fetch access token for Azure.
Status code: invalid_client, status message: Error(s): 7000222 - Description: AADSTS7000222: The provided client secret keys for app '***' are expired.
Visit the Azure portal to create new keys for your app: https://aka.ms/NewClientSecret.
Description
The Terraform DevOps pipeline is failing due to an expired client secret for the Azure AD application used to access the Key Vault altinn-terraform-kv. This prevents the pipeline from fetching necessary secrets, causing it to fail during the Key Vault access step.
Error Message
Fix
In 'platform-task-common-init.yml' change
to