From 5204990e262a74ff82b4962b6553c5e8e112258d Mon Sep 17 00:00:00 2001 From: Jared Holgate Date: Sat, 11 Jan 2025 12:06:22 +0000 Subject: [PATCH] fix: management group get after create timeout --- .../pipelines/terraform/templates/helpers/terraform-apply.yaml | 1 + .../actions/terraform/templates/workflows/cd-template.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/alz/azuredevops/pipelines/terraform/templates/helpers/terraform-apply.yaml b/alz/azuredevops/pipelines/terraform/templates/helpers/terraform-apply.yaml index 97792ce..1b57d02 100644 --- a/alz/azuredevops/pipelines/terraform/templates/helpers/terraform-apply.yaml +++ b/alz/azuredevops/pipelines/terraform/templates/helpers/terraform-apply.yaml @@ -28,6 +28,7 @@ steps: $env:ARM_USE_OIDC = "true" $env:ARM_CLIENT_ID = $clientId $env:ARM_USE_AZUREAD = "true" + $env:AZAPI_RETRY_GET_AFTER_PUT_MAX_TIME = "60m" # Accounts for eventually consistent management group permissions propagation # Run Terraform Apply $command = "terraform" diff --git a/alz/github/actions/terraform/templates/workflows/cd-template.yaml b/alz/github/actions/terraform/templates/workflows/cd-template.yaml index ca127d0..c8bdb42 100644 --- a/alz/github/actions/terraform/templates/workflows/cd-template.yaml +++ b/alz/github/actions/terraform/templates/workflows/cd-template.yaml @@ -101,6 +101,7 @@ jobs: ARM_TENANT_ID: "$${{ vars.AZURE_TENANT_ID }}" ARM_USE_AZUREAD: true ARM_USE_OIDC: true + AZAPI_RETRY_GET_AFTER_PUT_MAX_TIME: "60m" # Accounts for eventually consistent management group permissions propagation steps: - name: Download a Build Artifact