Set-SCCloud

Set-SCCloud

Changes the properties of a private cloud in VMM.

構文

Parameter Set: Default
Set-SCCloud [[-Cloud] <Cloud> ] [-AddCapabilityProfile <0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]> ] [-AddCloudResource <0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]> ] [-AddReadOnlyLibraryShare <0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]> ] [-AddVMHostGroup <0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]> ] [-Description <String> ] [-DisasterRecoverySupported <Boolean]> ] [-JobGroup <Guid]> ] [-JobVariable <String> ] [-Name <String> ] [-PROTipID <Guid]> ] [-ReadWriteLibraryPath <String> ] [-RemoveCapabilityProfile <0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]> ] [-RemoveCloudResource <0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]> ] [-RemoveReadOnlyLibraryShare <0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]> ] [-RemoveVMHostGroup <0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]> ] [-RunAsynchronously] [-VMMServer <ServerConnection> ] [ <CommonParameters>]

詳細説明

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.

パラメーター

-AddCapabilityProfile<0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]>

Adds one or more capability profile objects to a private cloud.

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-AddCloudResource<0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]>

Adds one or more resources 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.

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-AddReadOnlyLibraryShare<0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]>

Adds one or more specified read-only library shares to a private cloud.

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-AddVMHostGroup<0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]>

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

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-Cloud<Cloud>

Specifies a private cloud object.

エイリアス

none

必須?

false

位置は?

1

既定値

none

パイプライン入力を許可する

True (ByValue)

ワイルドカード文字を許可する

false

-Description<String>

States a description for the specified object.

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-DisasterRecoverySupported<Boolean]>

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

If enabled, 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 pairing this cloud to a recovery cloud in Windows Azure Hyper-V Recovery Manager, you cannot disable this option.

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-JobGroup<Guid]>

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.

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-JobVariable<String>

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

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-Name<String>

Specifies the name of a VMM object.

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-PROTipID<Guid]>

Specifies the ID of the PRO tip that triggered this action. This allows for auditing of PRO tips.

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-ReadWriteLibraryPath<String>

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

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-RemoveCapabilityProfile<0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]>

Removes one or more specified capability profile objects.

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-RemoveCloudResource<0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]>

Removes a specified resource from a private cloud.

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-RemoveReadOnlyLibraryShare<0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]>

Removes a specified read-only library share.

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-RemoveVMHostGroup<0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]>

Removes one or more host groups from a host group array or private cloud.

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-RunAsynchronously

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

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-VMMServer<ServerConnection>

Specifies a VMM server object.

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

True (ByValue)

ワイルドカード文字を許可する

false

<CommonParameters>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

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

The first command creates a new GUID, and then 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 then stores the object in the $Cloud variable.

The third command gets the Hyper-V capability profile object, and then 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 associated with the specified private cloud.

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"

関連トピック

Get-SCCapabilityProfile

Get-SCCloud

New-SCCloud

Remove-SCCloud

Set-SCCloudCapacity