Remove-LWAzureVmSnapshot
SYNOPSIS
Remove an Azure VM snapshot
SYNTAX
AllSnapshots
Remove-LWAzureVmSnapshot -ComputerName <String[]> [-All] [<CommonParameters>]
BySnapshotName
Remove-LWAzureVmSnapshot -ComputerName <String[]> -SnapshotName <String> [<CommonParameters>]
DESCRIPTION
Remove an Azure VM snapshot
EXAMPLES
Example 1
PS C:\> Remove-LWAzureVmSnapshot -ComputerName Host1,Host2 -All
Remove all snapshots of hosts Host1 and Host2
PARAMETERS
-All
Indicates that all snapshots should be removed
Type: SwitchParameter
Parameter Sets: AllSnapshots
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-ComputerName
The computers to remove snapshots of
Type: String[]
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-SnapshotName
The name of the snapshot to remove
Type: String
Parameter Sets: BySnapshotName
Aliases:
Required: True
Position: Named
Default value: None
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.