I'm trying to create 3 resource groups using ARM template
- rg-prod-remserv-digital-onlinesetup-shared
- rg-prod-remserv-digital-onlinesetup-gov
- rg-prod-remserv-digital-onlinesetup-non-gov
Creating the following resources in each of the respective resource groups,
rg-prod-remserv-digital-onlinesetup-shared
An app-service plan, asp-prod-remserv-digital-onlinesetup-shared
An application insights resource, ai-prod-remserv-digital-onlinesetup-shared
rg-prod-remserv-digital-onlinesetup-gov
- An app-service, which uses the app-service plan and application-insights resource from the shared resource group (i.e rg-prod-remserv-digital-onlinesetup-shared)
rg-prod-remserv-digital-onlinesetup-non-gov
- An app-service, which uses the app-service plan and application-insights resource from the shared resource group (i.e rg-prod-remserv-digital-onlinesetup-shared)
Please advice, How do i create a dependency so that all these are created once while executing my ARM template.
The code is available in the following path,
https://github.com/Manjunath-Jayaram/ARM-MultipleResourceGroups