Remove-SCCloud

Deletes a private cloud from VMM.

Syntax

Remove-SCCloud
      [-VMMServer <ServerConnection>]
      [-Cloud] <Cloud>
      [-JobGroup <Guid>]
      [-RunAsynchronously]
      [-PROTipID <Guid>]
      [-JobVariable <String>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

The Remove-SCCloud cmdlet deletes a private cloud from Virtual Machine Manager (VMM).

Examples

Example 1: Delete a specified private cloud

PS C:\> Get-SCCloud -VMMServer "VMMServer01.Contoso.com -Name "Cloud01" | Remove-SCCloud -Confirm

This command gets the private cloud object named Cloud01 on VMMServer01 and uses the pipeline operator to pass the private cloud object to Remove-SCCloud, which prompts you to confirm the action before deleting the private cloud.

Parameters

-Cloud

Specifies a private cloud object.

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

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-JobGroup

Specifies an identifier for a series of commands that will run as a set just before the final command that includes the same job group identifier runs.

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

-JobVariable

Specifies that job progress is tracked and stored in the variable named by this parameter.

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

-PROTipID

Specifies the ID of the Performance and Resource Optimization (PRO) tip that triggered this action. This allows for auditing of PRO tips.

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

-RunAsynchronously

Indicates that the job runs asynchronously so that control returns to the command shell immediately.

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

-VMMServer

Specifies a VMM server object.

Type:ServerConnection
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-WhatIf

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

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Notes

  • This cmdlet requires a VMM private cloud object, which can be retrieved by using the Get-SCCloud cmdlet.