Deploying below template:
https://gist.github.com/rnkhouse/aea0a8fd395da37b19466348b919d620
Error:
"Deployment failed with status code: 400 and message: Deployment template validation failed: 'The resource 'Microsoft.Network/virtualNetworks/mtes-dev-VNET' is not defined in the template. Please see https://aka.ms/arm-template for usage details.'."
I have already created Virtual Network in other template and using same resource group here. But, still I am getting above error. Please advice!
Remove dependsOn
the Vnet in your code, it is only needed if that resource is part of the template, not if its already deployed.