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
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.
Azure PowerShell