Set-SCCloud

Changes the properties of a private cloud in VMM.

Syntax

Set-SCCloud [[-Cloud] <Cloud>]
 [-AddCapabilityProfile <System.Collections.Generic.List`1[Microsoft.SystemCenter.VirtualMachineManager.CapabilityProfile]>]
 [-AddCloudResource <System.Collections.Generic.List`1[Microsoft.SystemCenter.VirtualMachineManager.ClientObject]>]
 [-AddReadOnlyLibraryShare <System.Collections.Generic.List`1[Microsoft.SystemCenter.VirtualMachineManager.LibraryShare]>]
 [-AddVMHostGroup <System.Collections.Generic.List`1[Microsoft.SystemCenter.VirtualMachineManager.HostGroup]>]
 [-Description <String>] [-DisasterRecoverySupported <Boolean>] [-JobGroup <Guid>] [-JobVariable <String>]
 [-Name <String>] [-PROTipID <Guid>] [-ReadWriteLibraryPath <String>]
 [-RemoveCapabilityProfile <System.Collections.Generic.List`1[Microsoft.SystemCenter.VirtualMachineManager.CapabilityProfile]>]
 [-RemoveCloudResource <System.Collections.Generic.List`1[Microsoft.SystemCenter.VirtualMachineManager.ClientObject]>]
 [-RemoveReadOnlyLibraryShare <System.Collections.Generic.List`1[Microsoft.SystemCenter.VirtualMachineManager.LibraryShare]>]
 [-RemoveVMHostGroup <System.Collections.Generic.List`1[Microsoft.SystemCenter.VirtualMachineManager.HostGroup]>]
 [-RunAsynchronously] [-ShieldedVMSupportPolicy <ShieldedVMSupportPolicyEnum>] [-VMMServer <ServerConnection>]
 [<CommonParameters>]

Description

The Set-SCCloud cmdlet changes the properties of a private cloud in Virtual Machine Manager (VMM).

For more information about private clouds, type: Get-Help New-SCCloud -detailed.

Examples

Example 1: Update the properties of a private cloud using a job group

PS C:\> $Guid = [System.Guid]::NewGuid()
PS C:\> $Cloud = Get-SCCloud -Name "Cloud01"
PS C:\> $CapabilityProfile = Get-SCCapabilityProfile -Profilename "HyperV"
PS C:\> Set-SCCloudCapacity -JobGroup $Guid -StorageLimited $True -StorageGB 500 -VirtualMachinesLimited $True -VirtualMachines 50 -VirtualCPUCountLimited $True -VirtualCPUCount 100
PS C:\> Set-SCCloud -Cloud $Cloud -AddCapabilityProfile $CapabilityProfile -JobGroup $Guid -Description "Updated description for Cloud01"

The first command creates a new GUID and stores it in the $Guid variable. Subsequent commands that include this GUID are collected into a single job group.

The second command gets the private cloud object named Cloud01 and stores the object in the $Cloud variable.

The third command gets the Hyper-V capability profile object and stores the object in the $CapabilityProfile variable.

The fourth command sets the following limits on the cloud capacity dimensions: 500 GB storage, 50 virtual machines, and 100 CPUs. Using the JobGroup parameter specifies that this command will not run until just before the final command that includes the JobGroup with the same GUID.

The last command adds the capability profile stored in $CapabilityProfile to Cloud01, updates the description for Cloud01, and sets the cloud capacity properties on Cloud01 using the settings specified in the fourth command. This command uses the JobGroup parameter to run Set-SCCloudCapacity just before Set-SCCloud runs so that the settings will be assocated with the specified private cloud.

Parameters

-AddCapabilityProfile

Specifies one or more capability profile objects that this cmdlet adds.

Type:System.Collections.Generic.List`1[Microsoft.SystemCenter.VirtualMachineManager.CapabilityProfile]
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-AddCloudResource

Specifies one or more cloud resources that this cmdlet adds to a private cloud. Resources that you can add to a private cloud include: Load Balancer, Logical Network, Storage Pool, and VIP Template.

Type:System.Collections.Generic.List`1[Microsoft.SystemCenter.VirtualMachineManager.ClientObject]
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-AddReadOnlyLibraryShare

Specifies one or more read-only library shares that this cmdlet adds to a private cloud.

Type:System.Collections.Generic.List`1[Microsoft.SystemCenter.VirtualMachineManager.LibraryShare]
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-AddVMHostGroup

Specifies one or more host groups to add to an existing host group array or private cloud.

Type:System.Collections.Generic.List`1[Microsoft.SystemCenter.VirtualMachineManager.HostGroup]
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Cloud

Specifies a private cloud object.

Type:Cloud
Required:False
Position:0
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-Description

Specifies a description for the specified object.

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

Indicates whether the Windows Azure Hyper-V Recovery Manager service is enabled.

If you enable this parameter, the cmdlet sends the following data over the internet to the service: cloud name, virtual machine names, logical network names, virtual machine host names, and the relevant properties for each object. If sending this information conflicts with existing privacy requirements for workloads that are deployed to this cloud, then do not select this option.

After you pair this cloud to a recovery cloud in Windows Azure Hyper-V Recovery Manager, you cannot disable this option.

Type:Boolean
Required:False
Position:Named
Default value:None
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
Required:False
Position:Named
Default value:None
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
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Name

Specifies the name of a VMM object.

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

Specifies the ID of the Performance and Resource Optimization tip (PRO tip) that triggered this action. This parameter lets you audit PRO tips.

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

Specifies a writable library path to which virtual machines can be stored.

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

Specifies one or more capability profile objects that this cmdlet removes.

Type:System.Collections.Generic.List`1[Microsoft.SystemCenter.VirtualMachineManager.CapabilityProfile]
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RemoveCloudResource

Specifies one or more cloud resources that this cmdlet removes from a private cloud.

Type:System.Collections.Generic.List`1[Microsoft.SystemCenter.VirtualMachineManager.ClientObject]
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RemoveReadOnlyLibraryShare

Specifies a read-only library share that this cmdlet removes.

Type:System.Collections.Generic.List`1[Microsoft.SystemCenter.VirtualMachineManager.LibraryShare]
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RemoveVMHostGroup

Specifies one or more host groups that this cmdlet removes from a host group array or private cloud.

Type:System.Collections.Generic.List`1[Microsoft.SystemCenter.VirtualMachineManager.HostGroup]
Required:False
Position:Named
Default value:None
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
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ShieldedVMSupportPolicy

Indicates whether this cloud supports placing shielded virtual machines on it, so placement will provide ratings for the cloud.

Type:ShieldedVMSupportPolicyEnum
Parameter Sets:ShieldedVMNotSupported, ShieldedVMSupported
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-VMMServer

Specifies a VMM server object.

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