Final answer:
In PowerShell, New-AzVM and Set-AzVM are the cmdlets used for creating and configuring a VM respectively. The correct answer to which cmdlets are used to create a VM is both New-AzVM and Set-AzVM.
Step-by-step explanation:
The PowerShell cmdlets used for creating and configuring a virtual machine (VM) are New-AzVM and Set-AzVM. The New-AzVM cmdlet is employed to create a new Azure virtual machine with specified configuration options like size, image, and location. Key parameters such as ResourceGroupName, Location, and VMName must be specified to successfully execute this command. One can also provide additional configuration settings like network interfaces and storage options during the VM creation process.
On the other side, the Set-AzVM cmdlet is utilized to configure or modify the settings of an existing Azure virtual machine. This might include operations like resizing the VM, adding or removing data disks, or changing the VM's availability set. Therefore, when answering the student's question of which cmdlets are used to create a VM, the correct choice is c) Both a and b.