az iot product test task

Manage product testing certification tasks.

Commands

az iot product test task create

Queue a new testing task. Only one testing task can be running at a time.

az iot product test task delete

Cancel a running task matching the specified --task-id.

az iot product test task show

Show the status of a testing task. Use --running for current running task or --task-id.

az iot product test task create

Queue a new testing task. Only one testing task can be running at a time.

az iot product test task create --test-id
                                [--base-url]
                                [--interval]
                                [--type {GenerateTestCases, QueueTestRun}]
                                [--wait {false, true}]

Examples

Basic usage

az iot product test task create --test-id {test_id}

Wait for completion and return test case

az iot product test task create --test-id {test_id} --wait

Wait for completion with custom polling interval to completion and return test case

az iot product test task create --test-id {test_id} --wait --poll-interval 5

Required Parameters

--test-id -t

The generated Id for the device certification test.

Optional Parameters

--base-url

Override certification service URL to allow testing in non-production environements.

--interval --poll-interval

Used in conjunction with --wait. Sepcifies how frequently (in seconds) polling occurs.

default value: 3
--type

The type of task for the device test.

accepted values: GenerateTestCases, QueueTestRun
default value: QueueTestRun
--wait -w

Wait for task completion and return test case data when available.

accepted values: false, true

az iot product test task delete

Cancel a running task matching the specified --task-id.

az iot product test task delete --task-id
                                --test-id
                                [--base-url]

Examples

Basic usage

az iot product test task delete --test-id {test_id} --task-id {task_id}

Required Parameters

--task-id

The generated Id of the testing task.

--test-id -t

The generated Id for the device certification test.

Optional Parameters

--base-url

Override certification service URL to allow testing in non-production environements.

az iot product test task show

Show the status of a testing task. Use --running for current running task or --task-id.

az iot product test task show --test-id
                              [--base-url]
                              [--running {false, true}]
                              [--task-id]

Examples

Task status by --task-id

az iot product test task show --test-id {test_id} --task-id {task_id}

Currently running task of product test

az iot product test task show --test-id {test_id} --running

Required Parameters

--test-id -t

The generated Id for the device certification test.

Optional Parameters

--base-url

Override certification service URL to allow testing in non-production environements.

--running

Get the running tasks of a device test.

accepted values: false, true
--task-id

The generated Id of the testing task.