In the process of creating an Azure Template that builds on a VM based on a set of questions asked. As of right now I have two parameter fields related to the networking side, one being the Subnet Name (existing Subnet) and the other being the NSG Name (again already existing).
In this template I don't want to create new subnets or NSG's and the way we have the environment setup it is an extension of our network so each subnet is tied to a specific NSG because they have a specific purpose; like, Application Subnet/NSG, SQL Subnet/NSG, Web Subnet/NSG, etc. and the rules are defined therein.
My question is, instead of having the people select each a Subnet and an NSG (where they could technically select two separate and the rules wouldn't align = no connectivity), I'd like to prompt them in a parameter to say the servers "purpose" (Application, SQL, Web, DMZ, etc.) and based on their answer automatically set what NSG and Subnet the new VM needs to be added too.
Thoughts?