Share via


Microsoft.LoadTestService loadTests 2021-12-01-preview

Choose a deployment language

Bicep resource definition

The loadTests resource type can be deployed to:

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

Resource format

To create a Microsoft.LoadTestService/loadTests resource, add the following Bicep to your template.

resource symbolicname 'Microsoft.LoadTestService/loadTests@2021-12-01-preview' = {
  name: 'string'
  location: 'string'
  tags: {
    tagName1: 'tagValue1'
    tagName2: 'tagValue2'
  }
  identity: {
    type: 'string'
  }
  properties: {
    description: 'string'
  }
}

Property values

loadTests

Name Description Value
name The resource name string (required)

Character limit: 1-64

Valid characters:
Can't use:
<>*&@:?+/\,;=.| []" or space.

Can't start with underscore, hyphen, or number. Can't end with underscore or hyphen.

Resource name must be unique across Azure.
location The geo-location where the resource lives string (required)
tags Resource tags. Dictionary of tag names and values. See Tags in templates
identity The type of identity used for the resource. SystemAssignedServiceIdentity
properties Load Test resource properties LoadTestProperties

SystemAssignedServiceIdentity

Name Description Value
type Type of managed service identity (either system assigned, or none). 'None'
'SystemAssigned' (required)

LoadTestProperties

Name Description Value
description Description of the resource. string

ARM template resource definition

The loadTests resource type can be deployed to:

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

Resource format

To create a Microsoft.LoadTestService/loadTests resource, add the following JSON to your template.

{
  "type": "Microsoft.LoadTestService/loadTests",
  "apiVersion": "2021-12-01-preview",
  "name": "string",
  "location": "string",
  "tags": {
    "tagName1": "tagValue1",
    "tagName2": "tagValue2"
  },
  "identity": {
    "type": "string"
  },
  "properties": {
    "description": "string"
  }
}

Property values

loadTests

Name Description Value
type The resource type 'Microsoft.LoadTestService/loadTests'
apiVersion The resource api version '2021-12-01-preview'
name The resource name string (required)

Character limit: 1-64

Valid characters:
Can't use:
<>*&@:?+/\,;=.| []" or space.

Can't start with underscore, hyphen, or number. Can't end with underscore or hyphen.

Resource name must be unique across Azure.
location The geo-location where the resource lives string (required)
tags Resource tags. Dictionary of tag names and values. See Tags in templates
identity The type of identity used for the resource. SystemAssignedServiceIdentity
properties Load Test resource properties LoadTestProperties

SystemAssignedServiceIdentity

Name Description Value
type Type of managed service identity (either system assigned, or none). 'None'
'SystemAssigned' (required)

LoadTestProperties

Name Description Value
description Description of the resource. string

Terraform (AzAPI provider) resource definition

The loadTests resource type can be deployed to:

  • Resource groups

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

Resource format

To create a Microsoft.LoadTestService/loadTests resource, add the following Terraform to your template.

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.LoadTestService/loadTests@2021-12-01-preview"
  name = "string"
  location = "string"
  parent_id = "string"
  tags = {
    tagName1 = "tagValue1"
    tagName2 = "tagValue2"
  }
  identity {
    type =  "SystemAssigned"
  }
  body = jsonencode({
    properties = {
      description = "string"
    }
  })
}

Property values

loadTests

Name Description Value
type The resource type "Microsoft.LoadTestService/loadTests@2021-12-01-preview"
name The resource name string (required)

Character limit: 1-64

Valid characters:
Can't use:
<>*&@:?+/\,;=.| []" or space.

Can't start with underscore, hyphen, or number. Can't end with underscore or hyphen.

Resource name must be unique across Azure.
location The geo-location where the resource lives string (required)
parent_id To deploy to a resource group, use the ID of that resource group. string (required)
tags Resource tags. Dictionary of tag names and values.
identity The type of identity used for the resource. SystemAssignedServiceIdentity
properties Load Test resource properties LoadTestProperties

SystemAssignedServiceIdentity

Name Description Value
type Type of managed service identity (either system assigned, or none). "SystemAssigned" (required)

LoadTestProperties

Name Description Value
description Description of the resource. string