New-AzFleetUpdateStageObject
Create an in-memory object for UpdateStage.
Syntax
New-AzFleetUpdateStageObject
-Name <String>
[-AfterStageWaitInSecond <Int32>]
[-Group <IUpdateGroup[]>]
[<CommonParameters>]
Description
Create an in-memory object for UpdateStage.
Examples
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.
Parameters
-AfterStageWaitInSecond
The time in seconds to wait at the end of this stage before starting the next one. Defaults to 0 seconds if unspecified.
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Group
Defines the groups to be executed in parallel in this stage. Duplicate groups are not allowed. Min size: 1.
Type: | IUpdateGroup[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
The name of the stage. Must be unique within the UpdateRun.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Outputs
Berkolaborasi dengan kami di GitHub
Sumber untuk konten ini dapat ditemukan di GitHub, yang juga dapat Anda gunakan untuk membuat dan meninjau masalah dan menarik permintaan. Untuk informasi selengkapnya, lihat panduan kontributor kami.
Azure PowerShell