Switch to Microsoft supported terraform extension in Azure Pipelines #252
Merged
Kamil-Biegaj-HM merged 65 commits intomasterfrom Feb 27, 2026
Merged
Switch to Microsoft supported terraform extension in Azure Pipelines #252Kamil-Biegaj-HM merged 65 commits intomasterfrom
Kamil-Biegaj-HM merged 65 commits intomasterfrom
Conversation
… handles it via backendServiceArm
…or backend storage
…via commandOptions
…ull backend config control
…rride in commandOptions
ieuanb74
reviewed
Feb 25, 2026
ieuanb74
reviewed
Feb 25, 2026
ieuanb74
approved these changes
Feb 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Jira link
See PROJ-28023
Change description
This PR completes the central part of the migration from the deprecated TerraformCLI@2 extension to Microsoft’s supported Terraform extension (ms-devlabs.custom-terraform-tasks).
As part of the migration, terraform.yaml now supports overriding backend configuration (resource group, storage account, container, and key) while still using the Microsoft task. This removes the need for initCommandOptions in consuming repos and avoids backend config clashes that occur when the Microsoft extension auto-injects backend parameters.
Specifically:
Added optional parameters:
backendResourceGroupName
backendStorageAccountName
backendContainerName
backendKey
Default behaviour remains unchanged (HMCTS control backend with standard naming) if parameters are not supplied.
Enables legacy/backward-compatible backend layout for heritage pipelines while still using the Microsoft extension.
Testing done
Manually tested via oracle-azure-infrastructure pipeline using the updated overrides.
Verified terraform init completes successfully for automation_account with the Microsoft extension (backend resolved via override parameters).
Security Vulnerability Assessment
CVE Suppression: Are there any CVEs present in the codebase (either newly introduced or pre-existing) that are being intentionally suppressed or ignored by this commit?
Checklist