Invoke-AzDevCenterUserDelayDevBoxAction
Delays the occurrence of an action.
Syntax
Invoke-AzDevCenterUserDelayDevBoxAction
-Endpoint <String>
-DevBoxName <String>
-ProjectName <String>
[-UserId <String>]
-DelayTime <TimeSpan>
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Invoke-AzDevCenterUserDelayDevBoxAction
-Endpoint <String>
-DevBoxName <String>
-ProjectName <String>
[-UserId <String>]
-Name <String>
-DelayTime <TimeSpan>
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Invoke-AzDevCenterUserDelayDevBoxAction
-DevCenterName <String>
-DevBoxName <String>
-ProjectName <String>
[-UserId <String>]
-DelayTime <TimeSpan>
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Invoke-AzDevCenterUserDelayDevBoxAction
-DevCenterName <String>
-DevBoxName <String>
-ProjectName <String>
[-UserId <String>]
-Name <String>
-DelayTime <TimeSpan>
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Delays the occurrence of an action.
Examples
Example 1: Delay all actions on the dev box by endpoint
Invoke-AzDevCenterUserDelayDevBoxAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -UserId "me" -ProjectName DevProject -DelayTime "01:30"
This command delays all actions on the dev box "myDevBox" to the time 1 hour and 30 minutes from the earliest scheduled action.
Example 2: Delay all actions on the dev box by dev center
Invoke-AzDevCenterUserDelayDevBoxAction -DevCenterName Contoso -DevBoxName myDevBox -ProjectName DevProject -DelayTime "02:00"
This command delays all actions on the dev box "myDevBox" to the time 2 hours from the earliest scheduled action.
Example 3: Delay an action on the dev box by endpoint
Invoke-AzDevCenterUserDelayDevBoxAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -ProjectName DevProject -Name "schedule-default" -DelayTime "00:30"
This command delays the action "schedule-default" for the dev box "myDevBox" for 30 minutes.
Example 4: Delay an action on the dev box by dev center
Invoke-AzDevCenterUserDelayDevBoxAction -DevCenterName Contoso -DevBoxName myDevBox -UserId "me" -ProjectName DevProject -Name "schedule-default" -DelayTime "05:15"
This command delays the action "schedule-default" for the dev box "myDevBox" for 5 hours and 15 minutes.
Parameters
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DefaultProfile
The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
Type: | PSObject |
Aliases: | AzureRMContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DelayTime
The delayed timespan from the scheduled action time. Format HH:MM.
Type: | TimeSpan |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DevBoxName
The name of a Dev Box.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DevCenterName
The DevCenter upon which to execute operations.
Type: | String |
Aliases: | DevCenter |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Endpoint
The DevCenter-specific URI to operate on.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
The name of an action that will take place on a Dev Box.
Type: | String |
Aliases: | ActionName |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ProjectName
The DevCenter Project upon which to execute operations.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-UserId
The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.
Type: | String |
Position: | Named |
Default value: | "me" |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |