To create a virtual machine in Azure, you can use the Azure portal, Azure CLI, Azure PowerShell, or Azure Resource Manager templates. These tools provide step-by-step guidance for selecting the VM size, configuring networking, and deploying the virtual machine.