< Back
Get-AzureRmVMSize
Post
NAME Get-AzureRmVMSize
SYNOPSIS
Gets available virtual machine sizes.
SYNTAX
Get-AzureRmVMSize [-ResourceGroupName] <String> [-AvailabilitySetName] <String> [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
Get-AzureRmVMSize [-Location] <String> [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
Get-AzureRmVMSize [-ResourceGroupName] <String> [-VMName] <String> [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
DESCRIPTION
The Get-AzureRmVMSize cmdlet gets available virtual machine sizes.
PARAMETERS
-AvailabilitySetName <String>
Specifies the name of the Availability Set for which this cmdlet gets the available virtual machine sizes.
Required? true
Position? 1
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-DefaultProfile <IAzureContextContainer>
The credentials, account, tenant, and subscription used for communication with azure.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Location <String>
Specifies the location for which this cmdlet gets the available virtual machine sizes.
Required? true
Position? 0
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-ResourceGroupName <String>
Specifies the name of the resource group of the virtual machine.
Required? true
Position? 0
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-VMName <String>
Specifies the name of the virtual machine that this cmdlet gets the available virtual machine sizes for resizing.
Required? true
Position? 1
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
None
This cmdlet does not accept any input.
OUTPUTS
Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineSize
NOTES
Example 1: Get virtual machine sizes for a location
PS C:\\> Get-AzureRmVMSize -Location "Central US"
This command gets the available sizes for virtual machines in the specified location.
Example 2: Get sizes for an availability set
PS C:\\> Get-AzureRmVMSize -ResourceGroupName "ResourceGroup03" -AvailabilitySetName "AvailabilitySet17"
This command gets available sizes for virtual machines that you can deploy in the availability set named AvailabilitySet17.
Example 3: Get sizes for an existing virtual machine
PS C:\\> Get-AzureRmVMSize -ResourceGroupName "ResourceGroup03" -VMName "VirtualMachine12"
This command gets available sizes for the existing virtual machine named VirtualMachine12. You can resize this virtual machine to the sizes that
this command gets.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... rermvmsize
Get-AzureRmVmssDiskEncryption
SYNOPSIS
Gets available virtual machine sizes.
SYNTAX
Get-AzureRmVMSize [-ResourceGroupName] <String> [-AvailabilitySetName] <String> [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
Get-AzureRmVMSize [-Location] <String> [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
Get-AzureRmVMSize [-ResourceGroupName] <String> [-VMName] <String> [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
DESCRIPTION
The Get-AzureRmVMSize cmdlet gets available virtual machine sizes.
PARAMETERS
-AvailabilitySetName <String>
Specifies the name of the Availability Set for which this cmdlet gets the available virtual machine sizes.
Required? true
Position? 1
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-DefaultProfile <IAzureContextContainer>
The credentials, account, tenant, and subscription used for communication with azure.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Location <String>
Specifies the location for which this cmdlet gets the available virtual machine sizes.
Required? true
Position? 0
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-ResourceGroupName <String>
Specifies the name of the resource group of the virtual machine.
Required? true
Position? 0
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-VMName <String>
Specifies the name of the virtual machine that this cmdlet gets the available virtual machine sizes for resizing.
Required? true
Position? 1
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
None
This cmdlet does not accept any input.
OUTPUTS
Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineSize
NOTES
Example 1: Get virtual machine sizes for a location
PS C:\\> Get-AzureRmVMSize -Location "Central US"
This command gets the available sizes for virtual machines in the specified location.
Example 2: Get sizes for an availability set
PS C:\\> Get-AzureRmVMSize -ResourceGroupName "ResourceGroup03" -AvailabilitySetName "AvailabilitySet17"
This command gets available sizes for virtual machines that you can deploy in the availability set named AvailabilitySet17.
Example 3: Get sizes for an existing virtual machine
PS C:\\> Get-AzureRmVMSize -ResourceGroupName "ResourceGroup03" -VMName "VirtualMachine12"
This command gets available sizes for the existing virtual machine named VirtualMachine12. You can resize this virtual machine to the sizes that
this command gets.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... rermvmsize
Get-AzureRmVmssDiskEncryption