次の方法で共有


New-AzFleetUpdateStageObject

Create an in-memory object for UpdateStage.

構文

Default (既定)

New-AzFleetUpdateStageObject
    -Name <String>
    [-AfterStageWaitInSecond <Int32>]
    [-Group <IUpdateGroup[]>]
    [<CommonParameters>]

説明

Create an in-memory object for UpdateStage.

Example 1: create fleet update stage object with group string array

New-AzFleetUpdateStageObject -Name stag1 -Group @{name='group-a'} -AfterStageWaitInSecond 3600 | Format-List
AfterStageWaitInSecond : 3600
Group                  : {{
                           "name": "group-a"
                         }}
Name                   : stag1

This command create a fleet update stage object and shows as list.

Example 2: create fleet update stage object with update group object

$a = New-AzFleetUpdateGroupObject -Name 'Group-a'
$b = New-AzFleetUpdateGroupObject -Name 'Group-b'
$c = New-AzFleetUpdateGroupObject -Name 'Group-c'
New-AzFleetUpdateStageObject -Name stag1 -Group $a,$b,$c -AfterStageWaitInSecond 3600 | Format-List
AfterStageWaitInSecond : 3600
Group                  : {{
                           "name": "Group-a"
                         }, {
                           "name": "Group-b"
                         }, {
                           "name": "Group-c"
                         }}
Name                   : stag1

This command create a fleet update stage object and shows as list.

パラメーター

-AfterStageWaitInSecond

The time in seconds to wait at the end of this stage before starting the next one. Defaults to 0 seconds if unspecified.

パラメーターのプロパティ

型:Int32
規定値:None
ワイルドカードのサポート:False
DontShow:False

パラメーター セット

(All)
配置:Named
必須:False
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False

-Group

Defines the groups to be executed in parallel in this stage. Duplicate groups are not allowed. Min size: 1.

パラメーターのプロパティ

型:

IUpdateGroup[]

規定値:None
ワイルドカードのサポート:False
DontShow:False

パラメーター セット

(All)
配置:Named
必須:False
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False

-Name

The name of the stage. Must be unique within the UpdateRun.

パラメーターのプロパティ

型:String
規定値:None
ワイルドカードのサポート:False
DontShow:False

パラメーター セット

(All)
配置:Named
必須:True
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

出力

UpdateStage