how to point azure resources from another resource group in azure ARM template

If you want to use any existing azure resource in ARM template which is in different resource group  then yes that is possible and its quite simple.

Why?  – well this is required in may cases but as an example (shown in below screenshot) we might want to deploy few vm+ vm scale set with ARM but want to use vnet / subnet which is already configured in another resource group.


By default we refer other resources as below:


and when we  execute ARM it try to fuind the resource in same resource group  where we have triggered the deployment. but if we want to use resource from another RG then just replace the above line with additional value which is resource group name as below:



(Visited 2 times, 1 visits today)
, , , , , ,

By Arun Sabale

Arun is a Solution Architect on enterprise client management with more than 14 years of experience in IT. Arun Sabale is Blogger and tech enthusiast. His main focus is on Azure cloud infra, Cloud automation with powershell, python, ARM terraform and all cloud infra services like compute, storage, network, automation, function api etc... LinkedIN -

Comments are closed.