Skip to content

azurermLoadTest

Manages a Load Test Service.

Example Usage

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as azurerm from "./.gen/providers/azurerm";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: azurerm.
For a more precise conversion please use the --provider flag in convert.*/
new azurerm.loadTest.LoadTest(this, "example", {
  location: "${azurerm_resource_group.example.location}",
  name: "example",
  resource_group_name: "${azurerm_resource_group.example.name}",
});

Arguments Reference

The following arguments are supported:

  • location - (Required) The Azure Region where the Load Test should exist. Changing this forces a new Load Test to be created.

  • name - (Required) Specifies the name of this Load Test. Changing this forces a new Load Test to be created.

  • resourceGroupName - (Required) Specifies the name of the Resource Group within which this Load Test should exist. Changing this forces a new Load Test to be created.

  • description - (Optional) Description of the resource. Changing this forces a new Load Test to be created.

  • identity - (Optional) Specifies the Managed Identity which should be assigned to this Load Test.

  • tags - (Optional) A mapping of tags which should be assigned to the Load Test.

Attributes Reference

The following attributes are exported:

  • id - The ID of the Load Test.

  • dataPlaneUri - Resource data plane URI.


Timeouts

The timeouts block allows you to specify timeouts for certain actions:

  • create - (Defaults to 30 minutes) Used when creating this Load Test.
  • delete - (Defaults to 30 minutes) Used when deleting this Load Test.
  • read - (Defaults to 5 minutes) Used when retrieving this Load Test.
  • update - (Defaults to 30 minutes) Used when updating this Load Test.

Import

An existing Load Test can be imported into Terraform using the resourceId, e.g.

terraform import azurerm_load_test.example /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/loadTests/{loadTestName}
  • Where {subscriptionId} is the ID of the Azure Subscription where the Load Test exists. For example 12345678123498764563123456789012.
  • Where {resourceGroupName} is the name of Resource Group where this Load Test exists. For example exampleResourceGroup.
  • Where {loadTestName} is the name of the Load Test. For example loadTestValue.