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

Fix updating the Azure API Management #59

Merged

Conversation

rliberoff
Copy link
Collaborator

@rliberoff rliberoff commented Jun 10, 2024

Previously on any update, Terraform 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.

…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 rliberoff changed the title Fix updating the Azure API Management. Previously on any update, Terr… Fix updating the Azure API Management Jun 10, 2024
@@ -172,7 +168,7 @@ resource "azurerm_api_management_api_policy" "policy" {
</on-error>
</policies>
XML
depends_on = [azurerm_api_management_backend.openai, azapi_resource.apim_backend_pool]
depends_on = [azurerm_api_management_named_value.tenant_id]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove this dependency the named value resource depends on the apim.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated!

Copy link
Member

@cmendible cmendible left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cmendible cmendible merged commit c60b35d into Azure:main Jun 10, 2024
4 checks 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.

2 participants