Test-AzDevCenterUserDevBoxCustomizationTaskAction
Validates a list of customization tasks.
Syntax
Test-AzDevCenterUserDevBoxCustomizationTaskAction
-Endpoint <String>
-ProjectName <String>
[-Task <ICustomizationTask[]>]
[-DefaultProfile <PSObject>]
[-AsJob]
[-NoWait]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Test-AzDevCenterUserDevBoxCustomizationTaskAction
-Endpoint <String>
-InputObject <IDevCenterdataIdentity>
[-Task <ICustomizationTask[]>]
[-DefaultProfile <PSObject>]
[-AsJob]
[-NoWait]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Test-AzDevCenterUserDevBoxCustomizationTaskAction
-DevCenterName <String>
-InputObject <IDevCenterdataIdentity>
[-Task <ICustomizationTask[]>]
[-DefaultProfile <PSObject>]
[-AsJob]
[-NoWait]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Test-AzDevCenterUserDevBoxCustomizationTaskAction
-DevCenterName <String>
-ProjectName <String>
[-Task <ICustomizationTask[]>]
[-DefaultProfile <PSObject>]
[-AsJob]
[-NoWait]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Validates a list of customization tasks.
Examples
Example 1: Validate customization tasks by endpoint
$task = @{
Name = "catalogName/choco"
DisplayName = "choco"
Parameter = @{
PackageName = "vscode"
PackageVersion = "1.0.0"
}
RunAs = "System"
TimeoutInSecond = 120
}
$tasks = @($task)
Test-AzDevCenterUserDevBoxCustomizationTaskAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -Task $tasks
This command validates the task "choco" by the endpoint.
Example 2: Validate customization tasks by dev center
$task = @{
Name = "catalogName/choco"
DisplayName = "choco"
Parameter = @{
PackageName = "vscode"
PackageVersion = "1.0.0"
}
RunAs = "User"
TimeoutInSecond = 120
}
$tasks = @($task)
Test-AzDevCenterUserDevBoxCustomizationTaskAction -DevCenterName Contoso -ProjectName DevProject -Task $tasks
This command validates the task "choco" by the dev center.
Example 3: Validate customization tasks by endpoint and InputObject
$task = @{
Name = "catalogName/choco"
DisplayName = "choco"
Parameter = @{
PackageName = "vscode"
PackageVersion = "1.0.0"
}
RunAs = "System"
TimeoutInSecond = 120
}
$tasks = @($task)
$taskInput = @{"ProjectName" = "DevProject" }
Test-AzDevCenterUserDevBoxCustomizationTaskAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $taskInput -Task $tasks
This command validates the task "choco" by the endpoint and InputObject.
Example 4: Validate customization tasks by dev center and InputObject
$task = @{
Name = "catalogName/choco"
DisplayName = "choco"
Parameter = @{
PackageName = "vscode"
PackageVersion = "1.0.0"
}
RunAs = "System"
TimeoutInSecond = 120
}
$tasks = @($task)
$taskInput = @{"ProjectName" = "DevProject" }
Test-AzDevCenterUserDevBoxCustomizationTaskAction -DevCenterName Contoso -InputObject $taskInput -Task $tasks
This command validates the task "choco" by the dev center and InputObject.
Parameters
-AsJob
Run the command as a job
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-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 |
-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 |
-InputObject
Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
Type: | IDevCenterdataIdentity |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-NoWait
Run the command asynchronously
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
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 |
-Task
Tasks to apply. To construct, see NOTES section for TASK properties and create a hash table.
Type: | ICustomizationTask[] |
Position: | Named |
Default value: | None |
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 |
Inputs
Outputs
Azure PowerShell