-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
azurerm_private_endpoint
fails intermittently with retriable error
#16182
Comments
Hi - is there any update on the topic? We're running into the same issue on our end. Is there any ETA when that retry function will be implemented? |
Update: we managed to implement a workaround for this. It seems like the dependency mechanism which should be handled by Terraform automatically isn't working as expected. So if you encounter this issue, look for actions specified in your TF code that might execute at the same time. That's the issue. |
yeah thats how I'm also working around it for now: |
Hi, is there any update/roadmap for this bug? I'm receiving the error using azurerm 3.10.0. I don't have the ability to run sequentially using dependsOn easily within our project, so have resorted to apply -parallelism=1 for now hurting performance. |
I found that adding this to provisioner local-exec {
command = "az resource wait --updated --ids ${self.subnet_id}"
} This assumes you're sharing Azure CLI credentials. |
Thank you very much for this, I'll give it a try. |
This functionality has been released in v3.19.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
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. |
Community Note
Terraform (and AzureRM Provider) Version
3.0.2
Affected Resource(s)
azurerm_private_endpoint
Terraform Configuration Files
Expected Behaviour
Terraform should automatically retry retryable errors and not fail.
Actual Behaviour
Sometimes during provisioning of a private endpoint, we have seen the following error. Looking into the Azure portal, the Private Endpoint indeed exists and is working. However, we cannot just run
terraform apply
again, since it does not exist in state. We need to manually delete the PE first (or could manually import it).Steps to Reproduce
Not sure, it happens intermittently.
Important Factoids
We are provisioning multiple private endpoints in parallel into the same subnet, not sure if that is causing the issue.
The text was updated successfully, but these errors were encountered: