Set-SCCloudCapacity

Set-SCCloudCapacity

Modifies the cloud capacity settings for a private cloud.

構文

Parameter Set: FromValues
Set-SCCloudCapacity -CloudCapacity <CloudCapacity> [-CPUCount <UInt32> ] [-CustomQuotaCount <UInt32> ] [-JobVariable <String> ] [-MemoryMB <UInt32> ] [-PROTipID <Guid]> ] [-RunAsynchronously] [-StorageGB <UInt32> ] [-UseCPUCountMaximum <Boolean> ] [-UseCustomQuotaCountMaximum <Boolean> ] [-UseMemoryMBMaximum <Boolean> ] [-UseStorageGBMaximum <Boolean> ] [-UseVMCountMaximum <Boolean> ] [-VMCount <UInt32> ] [-VMMServer <ServerConnection> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: JobGroupParamSet
Set-SCCloudCapacity -JobGroup <Guid]> [-CPUCount <UInt32> ] [-CustomQuotaCount <UInt32> ] [-JobVariable <String> ] [-MemoryMB <UInt32> ] [-PROTipID <Guid]> ] [-RunAsynchronously] [-StorageGB <UInt32> ] [-UseCPUCountMaximum <Boolean> ] [-UseCustomQuotaCountMaximum <Boolean> ] [-UseMemoryMBMaximum <Boolean> ] [-UseStorageGBMaximum <Boolean> ] [-UseVMCountMaximum <Boolean> ] [-VMCount <UInt32> ] [-VMMServer <ServerConnection> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

詳細説明

The Set-SCCloudCapacity cmdlet modifies the cloud capacity settings for a private cloud in Virtual Machine Manager (VMM). You can update the following cloud capacity dimensions:

-- virtual machines
-- virtual CPUs
-- custom quota points
-- storage (GB)
-- memory (MB)

Alternatively, you can set any or all of the dimensions to use the maximum capacity.

パラメーター

-CloudCapacity<CloudCapacity>

Specifies a cloud capacity object.

エイリアス

none

必須?

true

位置は?

named

既定値

none

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

True (ByValue)

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

false

-CPUCount<UInt32>

Specifies the number of CPUs on a virtual machine, on a hardware profile, or on a template. See the examples for a specific cmdlet to determine how that cmdlet uses this parameter.

-- Hyper-V. Up to four CPUs per virtual machine, depending on guest operating system.
-- VMware ESX. Up to four CPUs per virtual machine for any supported guest operating system, except for a virtual machine that runs Windows NT 4.0, which supports one CPU.
-- Citrix XenServer. Up to eight CPUs per virtual machine, depending on guest operating system.

エイリアス

none

必須?

false

位置は?

named

既定値

none

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

false

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

false

-CustomQuotaCount<UInt32>

Specifies the number of custom quota points for a user role quota or cloud capacity.

エイリアス

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

必須?

true

位置は?

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

-MemoryMB<UInt32>

Specifies the amount of memory in megabytes (MB) for a user role quota or cloud capacity.

エイリアス

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

-RunAsynchronously

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

エイリアス

none

必須?

false

位置は?

named

既定値

none

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

false

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

false

-StorageGB<UInt32>

Specifies the amount of storage in gigabytes (GB) for a user role quota or cloud capacity. This storage amount does not include library storage.

エイリアス

none

必須?

false

位置は?

named

既定値

none

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

false

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

false

-UseCPUCountMaximum<Boolean>

Indicates whether the maximum number of virtual CPUs is allowed for a user role or cloud capacity. When you specify a value of $True, no quota is enforced for the virtual CPU dimension.

エイリアス

none

必須?

false

位置は?

named

既定値

none

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

false

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

false

-UseCustomQuotaCountMaximum<Boolean>

Indicates whether the maximum number of custom quota points is allowed for a user role or cloud capacity. When you specify a value of $True, no quota is enforced for the custom quota dimension.

エイリアス

none

必須?

false

位置は?

named

既定値

none

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

false

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

false

-UseMemoryMBMaximum<Boolean>

Indicates whether the maximum amount of memory, in megabytes (MB), is allowed for a user role or cloud capacity. When you specify a value of $True, no quota is enforced for the memory dimension.

エイリアス

none

必須?

false

位置は?

named

既定値

none

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

false

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

false

-UseStorageGBMaximum<Boolean>

Indicates whether the maximum amount of storage, in gigabytes (GB), is allowed for a user role or cloud capacity. When you specify a value of $True, no quota is enforced for the storage dimension.

エイリアス

none

必須?

false

位置は?

named

既定値

none

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

false

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

false

-UseVMCountMaximum<Boolean>

Indicates whether the maximum number of virtual machines is allowed for a user role or cloud capacity. When you specify a value of $True, no quota is enforced for the virtual machine dimension.

エイリアス

none

必須?

false

位置は?

named

既定値

none

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

false

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

false

-VMCount<UInt32>

Specifies the number of virtual machines for a user role quota or cloud capacity.

エイリアス

none

必須?

false

位置は?

named

既定値

none

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

false

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

false

-VMMServer<ServerConnection>

Specifies a VMM server object.

エイリアス

none

必須?

false

位置は?

named

既定値

none

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

True (ByValue)

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

false

-Confirm

コマンドレットを実行する前に、ユーザーに確認を求めます。

必須?

false

位置は?

named

既定値

false

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

false

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

false

-WhatIf

コマンドレットを実行するとどのような結果になるかを表示します。コマンドレットは実行されません。

必須?

false

位置は?

named

既定値

false

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

false

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

false

<CommonParameters>

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

入力

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

出力

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

Example 1: Change the cloud capacity properties of a specified cloud

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

The second command gets the cloud capacity for the private cloud stored in $Cloud, and then stores it in the $CloudCapacity variable.

The last command indicates that there should be a limit placed on the virtual CPU count for the cloud capacity stored in $CloudCapacity, and changes the virtual CPU count capacity to 20.

PS C:\> $Cloud = Get-SCCloud -Name "Cloud01"
PS C:\> $CloudCapacity = Get-SCCloudCapacity -Cloud $Cloud
PS C:\> Set-SCCloudCapacity -CloudCapacity $CloudCapacity -VirtualCPUCountLimited $True -VirtualCPUCount 20

Example 2: Change the cloud capacity properties of a specific 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 Cloud02, and then stores the object in the $Cloud variable.

The third command gets the cloud capacity object for the private cloud stored in $Cloud, and stores the object in the $CloudCapacity variable.

The fourth command sets a limit of 50 virtual machines, 100 virtual CPUs and 500 GB of storage on the cloud capacity. 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 sets the capacity properties on the private cloud stored in $Cloud using the settings that were 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 "Cloud02"
PS C:\> $CloudCapacity = Get-SCCloudCapacity -Cloud $Cloud
PS C:\> Set-SCCloudCapacity -JobGroup $Guid -VirtualMachinesLimited $True -VirtualMachines 50 -VirtualCPUCountLimited $True -VirtualCPUCount 100 -StorageLimited $True -StorageGB 500
PS C:\> Set-SCCloud -JobGroup $Guid -Cloud $Cloud

関連トピック

Get-SCCloud

Get-SCCloudCapacity

Set-SCCloud