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
 

Remove-WAPackStaticIPAddressPool

Remove-WAPackStaticIPAddressPool

microsoft.windowsazure.commands.dll

Synopsis

Removes static ip address pool objects.

Syntax

Remove-WAPackStaticIPAddressPool [-StaticIPAddressPool] [-PassThru] [-Force] [-Confirm] [-WhatIf] [<CommonParameters>]

Detailed Description

The Remove-WAPackStaticIPAddressPool cmdlet removes static ip address pool objects.

Parameters

-Force <SwitchParameter>

Indicates that the cmdlet removes a virtual machine without prompting you for confirmation.

Aliases

None

Required?

false

Position

3

Default value

Accept pipeline input?

false

Accept wildcard characters?

false

-PassThru <SwitchParameter>

Indicates that the cmdlet returns a Boolean value. If the operation succeeds, the cmdlet returns a value of $True. Otherwise, it returns a value of $False. By default, this cmdlet does not generate any output.

Aliases

None

Required?

false

Position

2

Default value

Accept pipeline input?

false

Accept wildcard characters?

false

-StaticIPAddressPool <StaticIPAddressPool>

Specifies a static ip address pool. To obtain a static ip address pool, use the Get-WAPackStaticIPAddressPool cmdlet.

Aliases

None

Required?

true

Position

1

Default value

Accept pipeline input?

True (ByValue)

Accept wildcard characters?

false

-Confirm <SwitchParameter>

Prompts you for confirmation before running the cmdlet.

Aliases

None

Required?

false

Position

named

Default value

false

Accept pipeline input?

false

Accept wildcard characters?

false

-WhatIf <SwitchParameter>

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Aliases

None

Required?

false

Position

named

Default value

false

Accept pipeline input?

false

Accept wildcard characters?

false

Input Type


Return Type


Notes

None

Examples

Example 1: Remove a static ip address pool

The first command gets the static ip address pool named ContosoStaticIPAddressPool01 by using the Get-WAPackStaticIPAddressPool cmdlet, and then stores that object in the $StaticIPAddressPool variable.

The second command removes the static ip address pool stored in $StaticIPAddressPool. The command prompts you for confirmation.

          PS C:\>$StaticIPAddressPool = Get-WAPackStaticIPAddressPool -Name “ContosoStaticIPAddressPool01”
          PS C:\>Remove-WAPackStaticIPAddressPool -StaticIPAddressPool $StaticIPAddressPool
        

Example 2: Remove a static ip address pool without confirmation

The first command gets the static ip address pool named ContosoStaticIPAddressPool02 by using the Get- WAPackStaticIPAddressPool cmdlet, and then stores that object in the $ StaticIPAddressPool variable.

The second command removes the static ip address pool stored in $StaticIPAddressPool. This command includes the Force parameter. The command does not prompt you for confirmation.

          PS C:\>$StaticIPAddressPool = Get-WAPackStaticIPAddressPool -Name "ContosoStaticIPAddressPool02"
          PS C:\>Remove-WAPackStaticIPAddressPool -StaticIPAddressPool $StaticIPAddressPool -Force
        

Get-WAPackStaticIPAddressPool
New-WAPackStaticIPAddressPool