Complete the code to select the correct Azure service for creating a virtual machine.
az [1] create --resource-group MyResourceGroup --name MyVM --image UbuntuLTSThe vm service is used to create virtual machines in Azure.
Complete the code to specify the size of the VM during creation.
az vm create --resource-group MyResourceGroup --name MyVM --image UbuntuLTS --size [1]The --size parameter specifies the VM size, such as Standard_B1s.
Fix the error in the command to create a VM with SSH key authentication.
az vm create --resource-group MyResourceGroup --name MyVM --image UbuntuLTS --authentication-type [1] --ssh-key-value ~/.ssh/id_rsa.pubThe correct value for SSH key authentication is ssh-key.
Fill both blanks to create a VM with a specific OS disk size and public IP SKU.
az vm create --resource-group MyResourceGroup --name MyVM --image UbuntuLTS --os-disk-size-gb [1] --public-ip-sku [2]
The OS disk size is set to 128 GB and the public IP SKU to Standard for better performance.
Fill all three blanks to create a VM with a custom admin username, disable password authentication, and enable boot diagnostics.
az vm create --resource-group MyResourceGroup --name MyVM --image UbuntuLTS --admin-username [1] --disable-password-authentication [2] --boot-diagnostics [3]
The admin username is set to azureuser, password authentication is disabled with true, and boot diagnostics is enabled with true.