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

Multiple azurerm_cognitive_deployment deletes/replacements result in a "Another operation is being performed on the parent resource" error #22939

Closed
1 task done
aochsner opened this issue Aug 14, 2023 · 1 comment · Fixed by #22940

Comments

@aochsner
Copy link
Contributor

Is there an existing issue for this?

  • I have searched the existing issues

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment and review the contribution guide to help.

Terraform Version

1.5.1

AzureRM Provider Version

3.69.0

Affected Resource(s)/Data Source(s)

azurerm_cognitive_deployment

Terraform Configuration Files

resource "azurerm_cognitive_deployment" "oai_models" {
  count = 3
  name = "test${count.index}"
  cognitive_account_id = azurerm_cognitive_account.openai.id
  model {
    format = "OpenAI"
    name = "gpt-35-turbo"
    version = "0603"
  }
  scale {
    type = "Standard"
    capacity = "120"
  }
}

Debug Output/Panic Output

Error: deleting Deployment
...
Deployment Name: ""gpt-35-turbo"): performing Delete: unexpected status 409 with error: RequestConflict: Another operation is being preformed on the parent resource '...' Please try again later"

Expected Behaviour

deleted/replaced deployments

Actual Behaviour

failed due to 409 Request conflict because it was done concurrently

Steps to Reproduce

terraform apply
terraform apply -destroy

Important Factoids

No response

References

#22607

This appeared to get fixed for Create but not Delete. Will fix for Delete as well

Copy link

github-actions bot commented May 8, 2024

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.