Key Cmdlets
-
Get-AzVMRetrieves information about virtual machines in a subscription.
-
New-AzVMCreates a new virtual machine with optional configuration.
-
Set-AzVMUpdates properties of an existing virtual machine.
-
Remove-AzVMDeletes a virtual machine from the subscription.
-
Start-AzVMStarts a stopped virtual machine.
-
Stop-AzVMStops (deallocates) a running virtual machine.
-
-ResourceGroupNameSpecifies the resource group containing the target VM.
-
-NameThe name of the virtual machine to act upon.
-
-LocationAzure region where the VM will be created.
-
-SizeThe VM size (SKU) to provision.
-
-ImageSpecifies the OS image to use for the VM.
Common Parameters
All Az.Compute cmdlets support a set of common parameters such as -ResourceGroupName, -Name, -Location, -Size, and -Image. Use these to precisely target and configure virtual machines.