Share via


Microsoft.LabServices labaccounts/labs

Choose a deployment language

Bicep resource definition

The labaccounts/labs resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.LabServices/labaccounts/labs resource, add the following Bicep to your template.

resource symbolicname 'Microsoft.LabServices/labaccounts/labs@2018-10-15' = {
  parent: resourceSymbolicName
  location: 'string'
  name: 'string'
  properties: {
    maxUsersInLab: int
    provisioningState: 'string'
    uniqueIdentifier: 'string'
    usageQuota: 'string'
    userAccessMode: 'string'
  }
  tags: {
    {customized property}: 'string'
  }
}

Property Values

LabProperties

Name Description Value
maxUsersInLab Maximum number of users allowed in the lab. int
provisioningState The provisioning status of the resource. string
uniqueIdentifier The unique immutable identifier of a resource (Guid). string
usageQuota Maximum duration a user can use an environment for in the lab. string
userAccessMode Lab user access mode (open to all vs. restricted to those listed on the lab). 'Open'
'Restricted'

Microsoft.LabServices/labaccounts/labs

Name Description Value
location The location of the resource. string
name The resource name string (required)
parent In Bicep, you can specify the parent resource for a child resource. You only need to add this property when the child resource is declared outside of the parent resource.

For more information, see Child resource outside parent resource.
Symbolic name for resource of type: labaccounts
properties The properties of the resource. LabProperties
tags Resource tags Dictionary of tag names and values. See Tags in templates

ResourceTags

Name Description Value

ARM template resource definition

The labaccounts/labs resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.LabServices/labaccounts/labs resource, add the following JSON to your template.

{
  "type": "Microsoft.LabServices/labaccounts/labs",
  "apiVersion": "2018-10-15",
  "name": "string",
  "location": "string",
  "properties": {
    "maxUsersInLab": "int",
    "provisioningState": "string",
    "uniqueIdentifier": "string",
    "usageQuota": "string",
    "userAccessMode": "string"
  },
  "tags": {
    "{customized property}": "string"
  }
}

Property Values

LabProperties

Name Description Value
maxUsersInLab Maximum number of users allowed in the lab. int
provisioningState The provisioning status of the resource. string
uniqueIdentifier The unique immutable identifier of a resource (Guid). string
usageQuota Maximum duration a user can use an environment for in the lab. string
userAccessMode Lab user access mode (open to all vs. restricted to those listed on the lab). 'Open'
'Restricted'

Microsoft.LabServices/labaccounts/labs

Name Description Value
apiVersion The api version '2018-10-15'
location The location of the resource. string
name The resource name string (required)
properties The properties of the resource. LabProperties
tags Resource tags Dictionary of tag names and values. See Tags in templates
type The resource type 'Microsoft.LabServices/labaccounts/labs'

ResourceTags

Name Description Value

Usage Examples

Terraform (AzAPI provider) resource definition

The labaccounts/labs resource type can be deployed with operations that target:

  • Resource groups

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.LabServices/labaccounts/labs resource, add the following Terraform to your template.

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.LabServices/labaccounts/labs@2018-10-15"
  name = "string"
  location = "string"
  tags = {
    {customized property} = "string"
  }
  body = {
    properties = {
      maxUsersInLab = int
      provisioningState = "string"
      uniqueIdentifier = "string"
      usageQuota = "string"
      userAccessMode = "string"
    }
  }
}

Property Values

LabProperties

Name Description Value
maxUsersInLab Maximum number of users allowed in the lab. int
provisioningState The provisioning status of the resource. string
uniqueIdentifier The unique immutable identifier of a resource (Guid). string
usageQuota Maximum duration a user can use an environment for in the lab. string
userAccessMode Lab user access mode (open to all vs. restricted to those listed on the lab). 'Open'
'Restricted'

Microsoft.LabServices/labaccounts/labs

Name Description Value
location The location of the resource. string
name The resource name string (required)
parent_id The ID of the resource that is the parent for this resource. ID for resource of type: labaccounts
properties The properties of the resource. LabProperties
tags Resource tags Dictionary of tag names and values.
type The resource type "Microsoft.LabServices/labaccounts/labs@2018-10-15"

ResourceTags

Name Description Value