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
 

New-WAPackStaticIPAddressPool

New-WAPackStaticIPAddressPool

microsoft.windowsazure.commands.dll

Synopsis

Creates a static ip address pool.

Syntax

New-WAPackStaticIPAddressPool [-VMSubnet] [-Name] [-IPAddressRangeStart] [-IPAddressRangeEnd] [<CommonParameters>]

Detailed Description

The New-WAPackStaticIPAddressPool cmdlet creates a static ip address pool.

Parameters

-VMSubnet <VMSubnet>

Specifies a VMSubnet associated with the static ip address pool.

Aliases

None

Required?

true

Position

named

Default value

Accept pipeline input?

True (ByValue)

Accept wildcard characters?

false

-Name <String>

Specifies a name for the static ip address pool.

Aliases

None

Required?

true

Position

named

Default value

Accept pipeline input?

True (ByPropertyName)

Accept wildcard characters?

false

-IPAddressRangeStart <String>

Specifies a ip address range start for the static ip address pool.

Aliases

None

Required?

true

Position

named

Default value

Accept pipeline input?

True (ByPropertyName)

Accept wildcard characters?

false

-IPAddressRangeEnd <String>

Specifies a ip address range end for the static ip address pool.

Aliases

None

Required?

true

Position

named

Default value

Accept pipeline input?

True (ByPropertyName)

Accept wildcard characters?

false

Input Type


Return Type


Notes

None

Examples

Example 1: Create a static ip address pool

The first command first retrieves the virtual machine network to which we want to add the static ip address pool. This virtual machine network is named “ContosoVNet01”.

The second command uses the previously retrieved virtual machine network to get the virtual machine subnet named “ContosoVMSubnet01” to which we want to add the static ip address pool.

The third and last command creates a new static ip address pool with a name “ContosoStaticIpAddressPool01” and a range start “192.168.1.0” and a range end “192.168.1.10”.

PS C:\>$VNet = Get-WAPackVNet -Name "ContosoVNet01"
          PS C:\>$VMSubnet = Get-WAPackVMSubnet –VNet $VNet -Name "ContosoVMSubnet01"
          PS C:\>New-WAPackStaticIpAddressPool –VMSubnet $VMSubnet -Name "ContosoStaticIpAddressPool01" -IPAddressRangeStart “192.168.1.0” –IPAddressRangeEnd “192.168.1.10”
        

Get-WAPackStaticIPAddressPool
Remove-WAPackStaticIPAddressPool