A virtual switch is software-based network switching infrastructure that connects virtual machines to one another or to physical networks. In Hyper-V virtual-machine automation, it is one of the values considered when defining a new machine. section 10.5
Treat the virtual switch as an automation parameter according to how much control the deployment requires:
- Make it mandatory when the initiating person or script must explicitly choose the switch. section 10.5
- Make it fixed when the automation always uses a predetermined switch. section 10.5
- Make it optional when a default switch is suitable but users may override it. section 10.5
- Make it logical when script logic determines the switch and includes a fallback when determination fails. section 10.5
Figure 10.2 Hyper-V virtual machine creation parameters broken down into buckets for mandatory (values that must be supplied), optional (values that have a default value but can be overwritten by the user), fixed (values that are hardcoded), and logical (values that are determined by logic in the script)
Use the parameter-bucket diagram to decide whether the virtual switch belongs among mandatory, optional, fixed, or logical inputs. section 10.5


