Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
data/data/azure/bootstrap: ensure pool is only updated after machine …
…is terminated It looks like an internal Azure race is causing a cryptic message like ``` Error: Error waiting for removal of Backend Address Pool Association for NIC \"ci-op-8qv3w054-282fe-2222c-bootstrap-nic\" (Resource Group \"ci-op-8qv3w054-282fe-2222c-rg\"): Code=\"OperationNotAllowed\" Message=\"Operation 'startTenantUpdate' is not allowed on VM 'ci-op-8qv3w054-282fe-2222c-bootstrap' since the VM is marked for deletion. You can only retry the Delete operation (or wait for an ongoing one to complete).\" Details=[] ``` when we update the NIC and the machine attached to it. `azurerm_network_interface_backend_address_pool_association.` depends on NIC but is not related to the machine NIC is attached to, the VM might be shutting down while this update is happeninig. This depends_on makes sure that VM is destroyed before we try to delete this association, preventing the race. Similar error seen by people like Azure/azure-rest-api-specs#7207
- Loading branch information