az lab environment

Manage environments for an Azure DevTest Lab.

Commands

az lab environment create Create an environment in a lab.
az lab environment delete Delete an environment from a lab.
az lab environment list List environments in a lab.
az lab environment show Get the details for an environment of a lab.

az lab environment create

Create an environment in a lab.

az lab environment create --arm-template
--lab-name
--name
--resource-group
[--artifact-source-name]
[--parameters]
[--tags]

Required Parameters

--arm-template
Name or ID of the ARM template in the lab.
--lab-name
Name of the lab.
--name -n
Name of the environment.
--resource-group -g
Name of the lab's resource group.

Optional Parameters

--artifact-source-name
Name of the artifact source in the lab.
value from: az lab artifact-source list
--parameters
JSON encoded list of parameters. Use @{file} to load from a file.
--tags
The tags for the resource.

az lab environment delete

Delete an environment from a lab.

az lab environment delete --lab-name
--name
--resource-group

Required Parameters

--lab-name
The name of the lab.
--name -n
The name of the environment.
--resource-group -g
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.

az lab environment list

List environments in a lab.

az lab environment list --lab-name
--resource-group
[--expand]
[--filter]
[--orderby]
[--top]

Required Parameters

--lab-name
The name of the lab.
--resource-group -g
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.

Optional Parameters

--expand
Specify the $expand query. Example: 'properties($select=deploymentProperties)'.
--filter
The filter to apply to the operation.
--orderby
The ordering expression for the results, using OData notation.
--top
The maximum number of resources to return from the operation.

az lab environment show

Get the details for an environment of a lab.

az lab environment show --lab-name
--name
--resource-group
[--expand]

Required Parameters

--lab-name
The name of the lab.
--name -n
The name of the environment.
--resource-group -g
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.

Optional Parameters

--expand
Specify the $expand query. Example: 'properties($select=deploymentProperties)'.