Add-SCComputerTierTemplate
Add-SCComputerTierTemplate
Adds a computer tier template to a service template.
構文
Parameter Set: Default
Add-SCComputerTierTemplate [-Name] <String> -ServiceTemplate <ServiceTemplate> -VMTemplate <Template> [-BlockAutomaticMigration <Boolean> ] [-DefaultInstanceCount <Int32> ] [-DeploymentOrder <Int32> ] [-Description <String> ] [-EnableAvailabilitySet <Boolean> ] [-InstanceMaximumCount <Int32> ] [-InstanceMinimumCount <Int32> ] [-JobVariable <String> ] [-NumberOfUpgradeDomains <Int32> ] [-PROTipID <Guid]> ] [-RunAsynchronously] [-ServicingOrder <Int32> ] [-Tag <String> ] [ <CommonParameters>]
詳細説明
The Add-SCComputerTierTemplate cmdlet adds a computer tier template to a service template. A computer tier template contains a virtual machine template that is used to create a virtual machine.
For information about service templates, type Get-Help New-SCServiceTemplate -detailed
. For more information about virtual machine templates, type Get-Help New-SCVMTemplate -detailed
.
パラメーター
-BlockAutomaticMigration<Boolean>
Indicates whether the computer can be automatically migrated. When set to $True, automatic migration is blocked. When set to $False, automatic migration is allowed. The default value is $False.
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-DefaultInstanceCount<Int32>
Specifies the default instance count for a computer tier that can be scaled out. The default value is 1.
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-DeploymentOrder<Int32>
Specifies the order in which a computer tier, application host, or application is deployed.
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-Description<String>
States a description for the specified object.
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-EnableAvailabilitySet<Boolean>
Indicates whether an availability set is generated on a service tier when a service is deployed.
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-InstanceMaximumCount<Int32>
Specifies the maximum number of virtual machines to which a service instance can scale out.
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-InstanceMinimumCount<Int32>
Specifies the minimum number of virtual machines to which a service instance can scale in.
エイリアス |
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 |
必須? |
true |
位置は? |
1 |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-NumberOfUpgradeDomains<Int32>
Specifies the number of upgrade domains for a computer tier that can be scaled out. The default value is 1.
エイリアス |
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 |
-ServiceTemplate<ServiceTemplate>
Specifies a service template object.
エイリアス |
none |
必須? |
true |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
True (ByValue) |
ワイルドカード文字を許可する |
false |
-ServicingOrder<Int32>
Specifies the order in which a computer tier or application host is serviced.
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-Tag<String>
Specifies a word or phrase to associate with an object so that you can search for all objects with the specified set of tags. You can search for a subset of tags, or you can search for the full set of tags.
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-VMTemplate<Template>
Specifies a VMM template object used to create virtual machines.
エイリアス |
none |
必須? |
true |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
- ComputerTierTemplate
例
Example 1: Add a computer tier template to a service template
The first command gets the virtual machine template object named WebTemplate01, and then stores the object in the $WebTemplate variable.
The second command gets the service template object named ServiceTemplate01, and then stores the object in the $ServiceTemplate variable.
The last command adds a computer tier template to the service template stored in $ServiceTemplate.
PS C:\> $WebTemplate = Get-SCVMTemplate | where { $_.Name -eq "WebTemplate01" }
PS C:\> $ServiceTemplate = Get-SCServiceTemplate -Name "ServiceTemplate01"
PS C:\> Add-SCComputerTierTemplate -ServiceTemplate $ServiceTemplate -VMTemplate $WebTemplate -Name "Web Tier" -DefaultInstanceCount 3 -InstanceMinimumCount 1 -InstanceMaximumCount 5 -DeploymentOrder 1 -ServicingOrder 1 -NumberOfUpgradeDomains 1