LoadTestArgs

data class LoadTestArgs(val description: Output<String>? = null, val identity: Output<LoadTestIdentityArgs>? = null, val location: Output<String>? = null, val name: Output<String>? = null, val resourceGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<LoadTestArgs>

Manages a Load Test Service.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.authorization.UserAssignedIdentity;
import com.pulumi.azure.authorization.UserAssignedIdentityArgs;
import com.pulumi.azure.loadtest.LoadTest;
import com.pulumi.azure.loadtest.LoadTestArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleUserAssignedIdentity = new UserAssignedIdentity("exampleUserAssignedIdentity", UserAssignedIdentityArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.build());
var exampleLoadTest = new LoadTest("exampleLoadTest", LoadTestArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.build());
}
}

Blocks Reference

identity Block

The identity block supports the following arguments:

  • type - (Required) Specifies the type of Managed Identity that should be assigned to this Load Test. Possible values are SystemAssigned, SystemAssigned, UserAssigned and UserAssigned.

  • identity_ids - (Optional) A list of the User Assigned Identity IDs that should be assigned to this Load Test. In addition to the arguments defined above, the identity block exports the following attributes:

  • principal_id - The Principal ID for the System-Assigned Managed Identity assigned to this Load Test.

  • tenant_id - The Tenant ID for the System-Assigned Managed Identity assigned to this Load Test.

Import

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

$ pulumi import azure:loadtest/loadTest:LoadTest 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 12345678-1234-9876-4563-123456789012. * Where {resourceGroupName} is the name of Resource Group where this Load Test exists. For example example-resource-group. * Where {loadTestName} is the name of the Load Test. For example loadTestValue.

Constructors

Link copied to clipboard
fun LoadTestArgs(description: Output<String>? = null, identity: Output<LoadTestIdentityArgs>? = null, location: Output<String>? = null, name: Output<String>? = null, resourceGroupName: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Functions

Link copied to clipboard
open override fun toJava(): LoadTestArgs

Properties

Link copied to clipboard
val description: Output<String>? = null

Description of the resource. Changing this forces a new Load Test to be created.

Link copied to clipboard
val identity: Output<LoadTestIdentityArgs>? = null

An identity block as defined below. Specifies the Managed Identity which should be assigned to this Load Test.

Link copied to clipboard
val location: Output<String>? = null

The Azure Region where the Load Test should exist. Changing this forces a new Load Test to be created.

Link copied to clipboard
val name: Output<String>? = null

Specifies the name of this Load Test. Changing this forces a new Load Test to be created.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

Specifies the name of the Resource Group within which this Load Test should exist. Changing this forces a new Load Test to be created.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

A mapping of tags which should be assigned to the Load Test.