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

Remove-WAPackVNet

microsoft.windowsazure.commands.dll

Synopsis

Removes virtualized network.

Syntax

Remove-WAPackVNet [-VNet] [-PassThru] [-Force] [-Confirm] [-WhatIf] [<CommonParameters>]

Detailed Description

The Remove-WAPackVNet cmdlet removes virtualized network 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

-VNet <VNet>

Specifies a virtualized network. To obtain a virtualized network, use the Get-WAPackVNet 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 virtualized network

The first command gets the virtualized network named ContosoVNet01 by using the Get-WAPackVNet cmdlet, and then stores that object in the $VNet variable.

The second command removes the virtualized network stored in $VNet. The command prompts you for confirmation.

          PS C:\>$VNet = Get-WAPackVNet -Name “ContosoVNet01”
          PS C:\>Remove-WAPackVM -VNet $VNet
        

Example 2: Remove a virtualized network without confirmation

The first command gets the cloud service named ContosoVNet02 by using the Get-WAPackVNet cmdlet, and then stores that object in the $VNet variable.

The second command removes the virtualized network stored in $VNet. This command includes the Force parameter. The command does not prompt you for confirmation.

          PS C:\>$VNet = Get-WAPackVNet -Name "ContosoVNet02"
          PS C:\>Remove-WAPackVNet -VNet $VNet -Force
        

Get-WAPackVNet
New-WAPackVNet