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 for Unnecessary Recreations of Cognitive Deployments #56

Merged
merged 1 commit into from
May 13, 2024

Conversation

jkfran
Copy link
Contributor

@jkfran jkfran commented May 10, 2024

Description:
This merge request introduces a change to the azurerm_cognitive_deployment resource configuration, which resolves the issue of unnecessary resource destruction and recreation reported in issue #52. The core problem was identified as frequent and unnecessary changes to the cognitive_account_id triggering resource replacement during Terraform apply phases.

Changes Made:

  • Added a lifecycle block within the azurerm_cognitive_deployment resource definition to ignore changes to the cognitive_account_id. This modification ensures that the resource is not marked for replacement when the only change is the cognitive_account_id, which should not typically trigger a redeployment.

Testing:
The changes have been tested locally and verified to prevent unnecessary recreations of the azurerm_cognitive_deployment resource. The issue where Terraform would mark these resources for replacement, despite no meaningful changes, no longer occurs.

@Pwd9000-ML Pwd9000-ML added the bug Something isn't working label May 13, 2024
@Pwd9000-ML Pwd9000-ML merged commit 73e75e3 into Pwd9000-ML:master May 13, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Models Unnecessarily Destroyed and Recreated During Plan and Apply Phases
2 participants