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-AzureSubnet

Get-AzureSubnet

microsoft.windowsazure.commands.servicemanagement.dll

Synopsis

Gets a list of subnets associated with the specified Microsoft Azure virtual machine.

Syntax

Get-AzureSubnet [-VM] [<CommonParameters>]

Detailed Description

The Get-AzureSubnet cmdlet returns a list the subnets associated with the specified virtual machine. Use Get-AzureVM to specify the virtual machine.

Parameters

-VM <IPersistentVM>

Specifies the virtual machine object from which to get the subnet list.

Aliases

None

Required?

true

Position

named

Default value

None

Accept pipeline input?

true (ByValue, ByPropertyName)

Accept wildcard characters?

false

Input Type


Return Type


Notes

Examples

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

This example gets the Microsoft Azure subnets for the virtual machine "MyVM" running in "MySvc"

PS C:\> C:\PS>$myVM = Get-AzureVM –ServiceName "MySvc" –Name "MyVM"
          C:\PS>Get-AzureSubnet –VM $myVM

Get-AzureVM