I have an Azure DevOps pipeline using YAML to deploy resources with Azure Bicep. The Bicep structure is a main.bicep file calling out to module bicep files for resource creation.
I am setting up a vnet/subnet for a Databricks workspace, storage account and private endpoint (storage account to subnet)
The endpoint is the final resource being created but the deployment fails with an error stating that the vnet can not be found. The vnet definitely been created and a rerun of the pipeline completes successfully and the endpoint is now created.
What would cause this behavior? Is there a resource creation lag and a way to delay dependent modules?
Thanks