Open prr19776 opened 1 month ago
Thanks, I've relayed this request to the Azure Provider team at HashiCorp, who maintains the Azure backend.
Any updates?
No, the Azure team has not addressed the backend in some time. There is an intention to revisit the backend in the medium-term future, but no commitments as of yet.
I met the same issue when running in ADO. This is caused due to OIDC token expiration.
I tried to use ARM_OIDC_TOKEN_FILE_PATH env for backend authentication and added a job to refresh token in background. But azurerm provider doesn't pick the latest token from the file which makes terraform still crash.
I overcome this issue by adding a reverse proxy locally to pretend ADO OIDC endpoint as GitHub OIDC endpoint and set ACTIONS_ID_TOKEN_REQUEST_URL, ACTIONS_ID_TOKEN_REQUEST_TOKEN.
Terraform Version
Terraform Configuration Files
Na
Debug Output
Expected Behavior
TF plan is successful. Apply must have gone through as well
Actual Behavior
Plan is successful but while apply terraform crashes but this is typically happening after 45 minutes or 1 hour
Steps to Reproduce
Tf plan and tf apply
Additional Context
This is happening while creating SQL managed instances on Azure
References
No response