Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Get-AzureVMSize

Get-AzureVMSize

microsoft.azure.commands.compute.dll

Synopsis

Get the available VM sizes by location, Availability Set or resize an existing VM to

Syntax

Get-AzureVMSize [-Location] [-Profile] [-InformationAction] [-InformationVariable] [<CommonParameters>]

Get-AzureVMSize [-ResourceGroupName] [-AvailabilitySetName] [-Profile] [-InformationAction] [-InformationVariable] [<CommonParameters>]

Get-AzureVMSize [-ResourceGroupName] [-VMName] [-Profile] [-InformationAction] [-InformationVariable] [<CommonParameters>]

Detailed Description

Get the available VM sizes by location, Availability Set or resize an existing VM to

Parameters

-Location <String>

Location of the VM

Aliases

None

Required?

true

Position

0

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-Profile <AzureProfile>

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-InformationAction <ActionPreference>

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-InformationVariable <String>

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-ResourceGroupName <String>

Resource Group of the VM

Aliases

None

Required?

true

Position

0

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-AvailabilitySetName <String>

Name of the Availability Set

Aliases

None

Required?

true

Position

1

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-VMName <String>

Name of the VM

Aliases

None

Required?

true

Position

1

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

Input Type


Return Type


Notes

Examples

-------------------------- Example 1 --------------------------

Get the available VM sizes in a location

Get-AzureVMSize -Location westeurope

-------------------------- Example 2 --------------------------

Get available VM sizes you can deploy in an existing availability set

Get-AzureVMSize -ResourceGroupName rg3-AvailabilitySetName av3

-------------------------- Example 3 --------------------------

Available VM sizes that an existing VM can be resized to

Get-AzureVMSize -ResourceGroupName rg3 -VMName vm3