Azure / ALZ-PowerShell-Module

The Azure Landing Zones Accelerators PowerShell module
https://www.powershellgallery.com/packages/ALZ/
MIT License
61 stars 24 forks source link

Feature Request: Force unlock workflow/pipeline #166

Open matt-FFFFFF opened 9 months ago

matt-FFFFFF commented 9 months ago

Community Note

Description

Inspiration: https://github.com/terraform-azurerm-examples/terraform-enterprisescale-starter/blob/main/.azure-pipelines/templates/tf-force-unlock.yml

Describe the solution you'd like

Additional context

matjahs commented 9 months ago

Hi, I would like to try this (would be my first issue). Anything I need to be aware of/need to know outside of the contribution guidelines?

jaredfholgate commented 9 months ago

Hi @matjahs. The only thing I was thinking about this morning is that it is slightly more complex than I thought when I added the label. In that we now use governed pipelines, so would need to add this as a template and ensure the plan service connection and federated credentials support this.

So would need updates to:

I think those are the only two areas that need updating.

matjahs commented 9 months ago

@jaredfholgate I will wait to see if something else comes along during my vacation next month. Work has gotten really busy this week.

jaredfholgate commented 1 week ago

There are other measures in place to avoid state file locking, but having a pipeline to unlock the state could still be useful for error states.