I'm working on a custom arm template.
I would like to have specific resource group to be hard coded inside the JSON so when opening the template it will simulate "Resource Group: Use existing: predefined selected Resource group"
I've been scratching my head for hours and searched the web deeply, I also tried to export existing resource group template and import it to custom deployment but it still shows
Resource Group *Create New *Use Existing
Is there any way to define existing RG inside the JSON template?
there are several ways to achieve this (not that it makes sense, but you can do this).
Again, none of this makes sense as you should just deploy it to the proper subscription\resource group combination. but there you have it, if you insist.
But the portal experience will stay the same (there is no way of working around that, you can forcé the template to always deploy to the same resource group (not that it makes any sense), but not alter the portal experience), if thats what you are concerned about.