Open arienkock opened 3 years ago
Hi there and thank you for reporting this. From my experience with Azure this is a bug in their tags API. Databricks clusters that clean themselves up use tags as well and that fails randomly for us too. Might help if you log a support issue with MSFT.
Terraform (and AzureRM Provider) Version
0.15.3
Affected Resource(s)
azurerm_resources
azurerm_public_ip
Terraform Configuration Files
Debug Output
Expected Behaviour
The
azurerm_resources
should query and find (an existing) public IP resource using a tag key value pair. Subsequently theazurerm_public_ip
resource should be able to reference the first item of the resources list like this:data.azurerm_resources.outbound_ip_info.resources[0].name
.Actual Behaviour
The vast majority of time this works fine. It will randomly fail with this error:
This code runs on Azure DevOps cloud agent with
vmImage: ubuntu-latest
. I've never had this issue running the same terraform config locally. Locally I'm using the same Terraform version, except it was built for MacOS:Steps to Reproduce
I simply tun
terraform apply
with the required variables. Since the failure is random (almost 50/50), I don't know how to reproduce.Important Factoids
the fact that it runs in an ADO pipeline on an Ubuntu image.