azure logo
Azure Classic v5.37.0, Mar 15 23

azure.loadtest.LoadTest

Manages a Load Test Service.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Azure = Pulumi.Azure;

return await Deployment.RunAsync(() => 
{
    var example = new Azure.LoadTest.LoadTest("example", new()
    {
        Location = azurerm_resource_group.Example.Location,
        ResourceGroupName = azurerm_resource_group.Example.Name,
    });

});
package main

import (
	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/loadtest"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := loadtest.NewLoadTest(ctx, "example", &loadtest.LoadTestArgs{
			Location:          pulumi.Any(azurerm_resource_group.Example.Location),
			ResourceGroupName: pulumi.Any(azurerm_resource_group.Example.Name),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
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 example = new LoadTest("example", LoadTestArgs.builder()        
            .location(azurerm_resource_group.example().location())
            .resourceGroupName(azurerm_resource_group.example().name())
            .build());

    }
}
import pulumi
import pulumi_azure as azure

example = azure.loadtest.LoadTest("example",
    location=azurerm_resource_group["example"]["location"],
    resource_group_name=azurerm_resource_group["example"]["name"])
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const example = new azure.loadtest.LoadTest("example", {
    location: azurerm_resource_group.example.location,
    resourceGroupName: azurerm_resource_group.example.name,
});
resources:
  example:
    type: azure:loadtest:LoadTest
    properties:
      location: ${azurerm_resource_group.example.location}
      resourceGroupName: ${azurerm_resource_group.example.name}

Create LoadTest Resource

new LoadTest(name: string, args: LoadTestArgs, opts?: CustomResourceOptions);
@overload
def LoadTest(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             description: Optional[str] = None,
             identity: Optional[LoadTestIdentityArgs] = None,
             location: Optional[str] = None,
             name: Optional[str] = None,
             resource_group_name: Optional[str] = None,
             tags: Optional[Mapping[str, str]] = None)
@overload
def LoadTest(resource_name: str,
             args: LoadTestArgs,
             opts: Optional[ResourceOptions] = None)
func NewLoadTest(ctx *Context, name string, args LoadTestArgs, opts ...ResourceOption) (*LoadTest, error)
public LoadTest(string name, LoadTestArgs args, CustomResourceOptions? opts = null)
public LoadTest(String name, LoadTestArgs args)
public LoadTest(String name, LoadTestArgs args, CustomResourceOptions options)
type: azure:loadtest:LoadTest
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args LoadTestArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args LoadTestArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args LoadTestArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args LoadTestArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args LoadTestArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

LoadTest Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The LoadTest resource accepts the following input properties:

ResourceGroupName string

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 string

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

Identity LoadTestIdentityArgs

Specifies the Managed Identity which should be assigned to this Load Test.

Location string

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

Name string

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

Tags Dictionary<string, string>

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

ResourceGroupName string

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 string

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

Identity LoadTestIdentityArgs

Specifies the Managed Identity which should be assigned to this Load Test.

Location string

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

Name string

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

Tags map[string]string

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

resourceGroupName String

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 String

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

identity LoadTestIdentityArgs

Specifies the Managed Identity which should be assigned to this Load Test.

location String

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

name String

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

tags Map<String,String>

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

resourceGroupName string

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 string

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

identity LoadTestIdentityArgs

Specifies the Managed Identity which should be assigned to this Load Test.

location string

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

name string

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

tags {[key: string]: string}

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

resource_group_name str

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 str

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

identity LoadTestIdentityArgs

Specifies the Managed Identity which should be assigned to this Load Test.

location str

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

name str

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

tags Mapping[str, str]

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

resourceGroupName String

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 String

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

identity Property Map

Specifies the Managed Identity which should be assigned to this Load Test.

location String

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

name String

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

tags Map<String>

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

Outputs

All input properties are implicitly available as output properties. Additionally, the LoadTest resource produces the following output properties:

DataPlaneUri string

Resource data plane URI.

Id string

The provider-assigned unique ID for this managed resource.

DataPlaneUri string

Resource data plane URI.

Id string

The provider-assigned unique ID for this managed resource.

dataPlaneUri String

Resource data plane URI.

id String

The provider-assigned unique ID for this managed resource.

dataPlaneUri string

Resource data plane URI.

id string

The provider-assigned unique ID for this managed resource.

data_plane_uri str

Resource data plane URI.

id str

The provider-assigned unique ID for this managed resource.

dataPlaneUri String

Resource data plane URI.

id String

The provider-assigned unique ID for this managed resource.

Look up Existing LoadTest Resource

Get an existing LoadTest resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: LoadTestState, opts?: CustomResourceOptions): LoadTest
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        data_plane_uri: Optional[str] = None,
        description: Optional[str] = None,
        identity: Optional[LoadTestIdentityArgs] = None,
        location: Optional[str] = None,
        name: Optional[str] = None,
        resource_group_name: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None) -> LoadTest
func GetLoadTest(ctx *Context, name string, id IDInput, state *LoadTestState, opts ...ResourceOption) (*LoadTest, error)
public static LoadTest Get(string name, Input<string> id, LoadTestState? state, CustomResourceOptions? opts = null)
public static LoadTest get(String name, Output<String> id, LoadTestState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
DataPlaneUri string

Resource data plane URI.

Description string

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

Identity LoadTestIdentityArgs

Specifies the Managed Identity which should be assigned to this Load Test.

Location string

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

Name string

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

ResourceGroupName string

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

Tags Dictionary<string, string>

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

DataPlaneUri string

Resource data plane URI.

Description string

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

Identity LoadTestIdentityArgs

Specifies the Managed Identity which should be assigned to this Load Test.

Location string

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

Name string

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

ResourceGroupName string

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

Tags map[string]string

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

dataPlaneUri String

Resource data plane URI.

description String

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

identity LoadTestIdentityArgs

Specifies the Managed Identity which should be assigned to this Load Test.

location String

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

name String

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

resourceGroupName String

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

tags Map<String,String>

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

dataPlaneUri string

Resource data plane URI.

description string

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

identity LoadTestIdentityArgs

Specifies the Managed Identity which should be assigned to this Load Test.

location string

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

name string

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

resourceGroupName string

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

tags {[key: string]: string}

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

data_plane_uri str

Resource data plane URI.

description str

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

identity LoadTestIdentityArgs

Specifies the Managed Identity which should be assigned to this Load Test.

location str

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

name str

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

resource_group_name str

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

tags Mapping[str, str]

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

dataPlaneUri String

Resource data plane URI.

description String

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

identity Property Map

Specifies the Managed Identity which should be assigned to this Load Test.

location String

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

name String

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

resourceGroupName String

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

tags Map<String>

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

Supporting Types

LoadTestIdentity

Type string
PrincipalId string
TenantId string
Type string
PrincipalId string
TenantId string
type String
principalId String
tenantId String
type string
principalId string
tenantId string
type String
principalId String
tenantId String

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.

Package Details

Repository
Azure Classic pulumi/pulumi-azure
License
Apache-2.0
Notes

This Pulumi package is based on the azurerm Terraform Provider.