Skip to content

RELOPS-2438 Import Azure template specs into Terraform#304

Merged
jwmossmoz merged 2 commits into
masterfrom
RELOPS-2438-template-spec-import
Jun 18, 2026
Merged

RELOPS-2438 Import Azure template specs into Terraform#304
jwmossmoz merged 2 commits into
masterfrom
RELOPS-2438-template-spec-import

Conversation

@jwmossmoz

Copy link
Copy Markdown
Contributor

Summary

  • Add AzAPI resources for the existing template-spec Template Specs in FXCI Azure and Trusted FXCI Azure.
  • Add import blocks for all 13 Microsoft.Resources/templateSpecs and Microsoft.Resources/templateSpecs/versions resources.
  • Check in the live mainTemplate bodies as JSON files referenced by the version resources.

Notes

Validation

  • jq empty terraform/azure_fxci/template_specs/*.json terraform/azure_trusted_fxci/template_specs/*.json
  • git diff --check
  • Checked Azure Resource Graph resource count against the new AzAPI resource/import block count: 13.

@jwmossmoz

Copy link
Copy Markdown
Contributor Author

Applied the import blocks after review. Results:\n\n- terraform/azure_fxci: 9 imported, 0 added, 0 changed, 0 destroyed\n- terraform/azure_trusted_fxci: 4 imported, 0 added, 0 changed, 0 destroyed\n- Post-apply plans for both roots report: No changes. Your infrastructure matches the configuration.

@jwmossmoz

Copy link
Copy Markdown
Contributor Author

Removed the completed Terraform import blocks after the imports were applied. Re-ran plans after removal:\n\n- terraform/azure_fxci: No changes\n- terraform/azure_trusted_fxci: No changes

@jwmossmoz jwmossmoz merged commit 41b065a into master Jun 18, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant