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]
                          [--subscription]
                          [--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.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--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
                          [--subscription]

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

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az lab environment list

List environments in a lab.

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

Examples

List environments in a lab. (autogenerated)

az lab environment list --lab-name MyLab --resource-group MyResourceGroup

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. Example: '$filter=contains(name,'myName').

--orderby

The ordering expression for the results, using OData notation. Example: '$orderby=name desc'.

--query-examples

Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--top

The maximum number of resources to return from the operation. Example: '$top=10'.

az lab environment show

Get the details for an environment of a lab.

az lab environment show --lab-name
                        --name
                        --resource-group
                        [--expand]
                        [--query-examples]
                        [--subscription]

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)'.

--query-examples

Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.