Freigeben über


Set-SCCloud

Changes the properties of a private cloud in VMM.

Syntax

Set-SCCloud
   [-RemoveCapabilityProfile <System.Collections.Generic.List`1[Microsoft.SystemCenter.VirtualMachineManager.CapabilityProfile]>]
   [-AddCapabilityProfile <System.Collections.Generic.List`1[Microsoft.SystemCenter.VirtualMachineManager.CapabilityProfile]>]
   [-AddVMHostGroup <System.Collections.Generic.List`1[Microsoft.SystemCenter.VirtualMachineManager.HostGroup]>]
   [-RemoveVMHostGroup <System.Collections.Generic.List`1[Microsoft.SystemCenter.VirtualMachineManager.HostGroup]>]
   [-AddCloudResource <System.Collections.Generic.List`1[Microsoft.SystemCenter.VirtualMachineManager.ClientObject]>]
   [-RemoveCloudResource <System.Collections.Generic.List`1[Microsoft.SystemCenter.VirtualMachineManager.ClientObject]>]
   [-Name <String>]
   [-Description <String>]
   [-AddReadOnlyLibraryShare <System.Collections.Generic.List`1[Microsoft.SystemCenter.VirtualMachineManager.LibraryShare]>]
   [-RemoveReadOnlyLibraryShare <System.Collections.Generic.List`1[Microsoft.SystemCenter.VirtualMachineManager.LibraryShare]>]
   [-ReadWriteLibraryPath <String>]
   [-DisasterRecoverySupported <Boolean>]
   [-ShieldedVMSupportPolicy <ShieldedVMSupportPolicyEnum>]
   [-VMMServer <ServerConnection>]
   [[-Cloud] <Cloud>]
   [-JobGroup <Guid>]
   [-RunAsynchronously]
   [-PROTipID <Guid>]
   [-JobVariable <String>]
   [<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]
Position:Named
Default value:None
Required:False
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, Static IP Address Pool, Storage Pool, and VIP Template.

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

-Cloud

Specifies a private cloud object.

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

-Description

Specifies a description for the specified object.

Type:String
Position:Named
Default value:None
Required:False
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
Position:Named
Default value:None
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

-Name

Specifies the name of a VMM object.

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 tip (PRO tip) that triggered this action. This parameter lets you audit PRO tips.

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

-ReadWriteLibraryPath

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

Type:String
Position:Named
Default value:None
Required:False
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]
Position:Named
Default value:None
Required:False
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]
Position:Named
Default value:None
Required:False
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]
Position:Named
Default value:None
Required:False
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]
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

-ShieldedVMSupportPolicy

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

Type:ShieldedVMSupportPolicyEnum
Accepted values:ShieldedVMNotSupported, ShieldedVMSupported
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