Remove-LWAzureVM

SYNOPSIS

Remove an Azure VM

SYNTAX

Remove-LWAzureVM [-Name] <String> [-AsJob] [-PassThru] [<CommonParameters>]

DESCRIPTION

Remove an Azure VM

EXAMPLES

Example 1

PS C:\> Remove-LWAzureVm -ComputerName DC01 -AsJob

Removes the host DC01 in a background job

PARAMETERS

-AsJob

Indicates that the cmdlet should run in the background

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-Name

The host to remove

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-PassThru

Indicates that a job object should be returned

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

None

OUTPUTS

System.Object

NOTES