Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solved Issue 62: Unable to delete APIM when destroying infrastructure with Terraform. #63

Merged

Commits on Jun 10, 2024

  1. Fix updating the Azure API Management. Previously on any update, Terr…

    …aform was indicating a `forced replacement` due to a calculation of the resource group ID. Passing it as a variable from the main module helps Terraform no to force a replacement, and updating APIs and policies without issue.
    
    Also, updated the dependency on the policy item to the tenant ID named value.
    rliberoff committed Jun 10, 2024
    Configuration menu
    Copy the full SHA
    3369ceb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c783d92 View commit details
    Browse the repository at this point in the history

Commits on Jun 12, 2024

  1. - Update APIM type to use api version 2023-03-01-preview which does…

    … not have the issue when deleting the APIM.
    
    - Added dependency (`depends_on`) with  for `azurerm_api_management_named_value.tenant_id` for the `azurerm_api_management_api_policy.policy` which is required when deleting the APIM due to an indirect dependency with the Tenant ID value.
    rliberoff committed Jun 12, 2024
    Configuration menu
    Copy the full SHA
    3331d6d View commit details
    Browse the repository at this point in the history
  2. Add prevent_deletion_if_contains_resources flag as false to mitig…

    …ate an open bug in Terraform. or instance, the Resource Group is not deleted when a `Failure Anomalies` resource is present. Reference: hashicorp/terraform-provider-azurerm#18026
    rliberoff committed Jun 12, 2024
    Configuration menu
    Copy the full SHA
    fffe100 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    563b9dc View commit details
    Browse the repository at this point in the history