Hi @Danny Ackroyd-Isales ,
The issue you're facing is might be due to production environment is still using the old, expired secret somewhere.
To resolve the issue,
- Ensure the new secret is correctly set in the Azure DevOps variable group, linked to the pipeline, and verify its usage by printing
ARM_CLIENT_ID
andARM_CLIENT_SECRET
(masked) in the pipeline logs. - Check Azure DevOps Service Connections – Go to
Project Settings > Service Connections
in Azure DevOps and ensure theAzure Resource Manager (ARM) service connection
for production is using the new secret. - Check Terraform State – Run
terraform state list
andterraform show
to see if the old secret is stored. If found, update the variables and
run:
terraform init
terraform apply
Hope it helps.
If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment