Closed
Description
Implementation Plan
- Add a new flag to use native Azure DevOps capabilities in the providers and backend
- Set the
ARM_OIDC_AZURE_SERVICE_CONNECTION_ID
explicitly - Update the azurerm backend settings / docs to match the updated docs and support URI lookup: https://developer.hashicorp.com/terraform/language/backend/azurerm
Original Issue Comment
Currently workload identity federation is supported by setting the oidc_token
parameter
However this token expires after 10 minutes which can be problematic for long-running jobs. The azurerm provider has been updated to take a new set of parameters, oidc_request_url
, oidc_request_token
and ado_pipeline_service_connection_id
. If all these are set, then terraform can request its own id token when necessary, fixing the issue for long-running jobs.
I'm not sure if this should be configurable, or if the task should just always use the newer parameter.