1. Packages
  2. Azure Native v1
  3. API Docs
  4. loadtestservice
  5. LoadTest
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

azure-native.loadtestservice.LoadTest

Explore with Pulumi AI

azure-native-v1 logo
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

    LoadTest details API Version: 2021-12-01-preview.

    Example Usage

    LoadTests_CreateOrUpdate

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var loadTest = new AzureNative.LoadTestService.LoadTest("loadTest", new()
        {
            Description = "This is new load test resource",
            Identity = new AzureNative.LoadTestService.Inputs.SystemAssignedServiceIdentityArgs
            {
                Type = "SystemAssigned",
            },
            LoadTestName = "myLoadTest",
            Location = "westus",
            ResourceGroupName = "dummyrg",
            Tags = 
            {
                { "Team", "Dev Exp" },
            },
        });
    
    });
    
    package main
    
    import (
    	loadtestservice "github.com/pulumi/pulumi-azure-native-sdk/loadtestservice"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := loadtestservice.NewLoadTest(ctx, "loadTest", &loadtestservice.LoadTestArgs{
    			Description: pulumi.String("This is new load test resource"),
    			Identity: &loadtestservice.SystemAssignedServiceIdentityArgs{
    				Type: pulumi.String("SystemAssigned"),
    			},
    			LoadTestName:      pulumi.String("myLoadTest"),
    			Location:          pulumi.String("westus"),
    			ResourceGroupName: pulumi.String("dummyrg"),
    			Tags: pulumi.StringMap{
    				"Team": pulumi.String("Dev Exp"),
    			},
    		})
    		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.azurenative.loadtestservice.LoadTest;
    import com.pulumi.azurenative.loadtestservice.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 loadTest = new LoadTest("loadTest", LoadTestArgs.builder()        
                .description("This is new load test resource")
                .identity(Map.of("type", "SystemAssigned"))
                .loadTestName("myLoadTest")
                .location("westus")
                .resourceGroupName("dummyrg")
                .tags(Map.of("Team", "Dev Exp"))
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    load_test = azure_native.loadtestservice.LoadTest("loadTest",
        description="This is new load test resource",
        identity=azure_native.loadtestservice.SystemAssignedServiceIdentityArgs(
            type="SystemAssigned",
        ),
        load_test_name="myLoadTest",
        location="westus",
        resource_group_name="dummyrg",
        tags={
            "Team": "Dev Exp",
        })
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const loadTest = new azure_native.loadtestservice.LoadTest("loadTest", {
        description: "This is new load test resource",
        identity: {
            type: "SystemAssigned",
        },
        loadTestName: "myLoadTest",
        location: "westus",
        resourceGroupName: "dummyrg",
        tags: {
            Team: "Dev Exp",
        },
    });
    
    resources:
      loadTest:
        type: azure-native:loadtestservice:LoadTest
        properties:
          description: This is new load test resource
          identity:
            type: SystemAssigned
          loadTestName: myLoadTest
          location: westus
          resourceGroupName: dummyrg
          tags:
            Team: Dev Exp
    

    Create LoadTest Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new LoadTest(name: string, args: LoadTestArgs, opts?: CustomResourceOptions);
    @overload
    def LoadTest(resource_name: str,
                 args: LoadTestArgs,
                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def LoadTest(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 resource_group_name: Optional[str] = None,
                 description: Optional[str] = None,
                 identity: Optional[SystemAssignedServiceIdentityArgs] = None,
                 load_test_name: Optional[str] = None,
                 location: Optional[str] = None,
                 tags: Optional[Mapping[str, str]] = 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-native:loadtestservice:LoadTest
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    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.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var loadTestResource = new AzureNative.Loadtestservice.LoadTest("loadTestResource", new()
    {
        ResourceGroupName = "string",
        Description = "string",
        Identity = 
        {
            { "type", "string" },
        },
        LoadTestName = "string",
        Location = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := loadtestservice.NewLoadTest(ctx, "loadTestResource", &loadtestservice.LoadTestArgs{
    	ResourceGroupName: "string",
    	Description:       "string",
    	Identity: map[string]interface{}{
    		"type": "string",
    	},
    	LoadTestName: "string",
    	Location:     "string",
    	Tags: map[string]interface{}{
    		"string": "string",
    	},
    })
    
    var loadTestResource = new LoadTest("loadTestResource", LoadTestArgs.builder()
        .resourceGroupName("string")
        .description("string")
        .identity(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .loadTestName("string")
        .location("string")
        .tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .build());
    
    load_test_resource = azure_native.loadtestservice.LoadTest("loadTestResource",
        resource_group_name=string,
        description=string,
        identity={
            type: string,
        },
        load_test_name=string,
        location=string,
        tags={
            string: string,
        })
    
    const loadTestResource = new azure_native.loadtestservice.LoadTest("loadTestResource", {
        resourceGroupName: "string",
        description: "string",
        identity: {
            type: "string",
        },
        loadTestName: "string",
        location: "string",
        tags: {
            string: "string",
        },
    });
    
    type: azure-native:loadtestservice:LoadTest
    properties:
        description: string
        identity:
            type: string
        loadTestName: string
        location: string
        resourceGroupName: string
        tags:
            string: string
    

    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
    The name of the resource group. The name is case insensitive.
    Description string
    Description of the resource.
    Identity Pulumi.AzureNative.LoadTestService.Inputs.SystemAssignedServiceIdentity
    The type of identity used for the resource.
    LoadTestName string
    Load Test resource name.
    Location string
    The geo-location where the resource lives
    Tags Dictionary<string, string>
    Resource tags.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    Description string
    Description of the resource.
    Identity SystemAssignedServiceIdentityArgs
    The type of identity used for the resource.
    LoadTestName string
    Load Test resource name.
    Location string
    The geo-location where the resource lives
    Tags map[string]string
    Resource tags.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    description String
    Description of the resource.
    identity SystemAssignedServiceIdentity
    The type of identity used for the resource.
    loadTestName String
    Load Test resource name.
    location String
    The geo-location where the resource lives
    tags Map<String,String>
    Resource tags.
    resourceGroupName string
    The name of the resource group. The name is case insensitive.
    description string
    Description of the resource.
    identity SystemAssignedServiceIdentity
    The type of identity used for the resource.
    loadTestName string
    Load Test resource name.
    location string
    The geo-location where the resource lives
    tags {[key: string]: string}
    Resource tags.
    resource_group_name str
    The name of the resource group. The name is case insensitive.
    description str
    Description of the resource.
    identity SystemAssignedServiceIdentityArgs
    The type of identity used for the resource.
    load_test_name str
    Load Test resource name.
    location str
    The geo-location where the resource lives
    tags Mapping[str, str]
    Resource tags.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    description String
    Description of the resource.
    identity Property Map
    The type of identity used for the resource.
    loadTestName String
    Load Test resource name.
    location String
    The geo-location where the resource lives
    tags Map<String>
    Resource tags.

    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.
    Name string
    The name of the resource
    ProvisioningState string
    Resource provisioning state.
    SystemData Pulumi.AzureNative.LoadTestService.Outputs.SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    DataPlaneURI string
    Resource data plane URI.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    ProvisioningState string
    Resource provisioning state.
    SystemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    dataPlaneURI String
    Resource data plane URI.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    provisioningState String
    Resource provisioning state.
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    dataPlaneURI string
    Resource data plane URI.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The name of the resource
    provisioningState string
    Resource provisioning state.
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    data_plane_uri str
    Resource data plane URI.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The name of the resource
    provisioning_state str
    Resource provisioning state.
    system_data SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type str
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    dataPlaneURI String
    Resource data plane URI.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    provisioningState String
    Resource provisioning state.
    systemData Property Map
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

    Supporting Types

    SystemAssignedServiceIdentity, SystemAssignedServiceIdentityArgs

    Type string | Pulumi.AzureNative.LoadTestService.SystemAssignedServiceIdentityType
    Type of managed service identity (either system assigned, or none).
    Type string | SystemAssignedServiceIdentityType
    Type of managed service identity (either system assigned, or none).
    type String | SystemAssignedServiceIdentityType
    Type of managed service identity (either system assigned, or none).
    type string | SystemAssignedServiceIdentityType
    Type of managed service identity (either system assigned, or none).
    type str | SystemAssignedServiceIdentityType
    Type of managed service identity (either system assigned, or none).
    type String | "None" | "SystemAssigned"
    Type of managed service identity (either system assigned, or none).

    SystemAssignedServiceIdentityResponse, SystemAssignedServiceIdentityResponseArgs

    PrincipalId string
    The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.
    TenantId string
    The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.
    Type string
    Type of managed service identity (either system assigned, or none).
    PrincipalId string
    The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.
    TenantId string
    The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.
    Type string
    Type of managed service identity (either system assigned, or none).
    principalId String
    The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.
    tenantId String
    The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.
    type String
    Type of managed service identity (either system assigned, or none).
    principalId string
    The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.
    tenantId string
    The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.
    type string
    Type of managed service identity (either system assigned, or none).
    principal_id str
    The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.
    tenant_id str
    The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.
    type str
    Type of managed service identity (either system assigned, or none).
    principalId String
    The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.
    tenantId String
    The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.
    type String
    Type of managed service identity (either system assigned, or none).

    SystemAssignedServiceIdentityType, SystemAssignedServiceIdentityTypeArgs

    None
    None
    SystemAssigned
    SystemAssigned
    SystemAssignedServiceIdentityTypeNone
    None
    SystemAssignedServiceIdentityTypeSystemAssigned
    SystemAssigned
    None
    None
    SystemAssigned
    SystemAssigned
    None
    None
    SystemAssigned
    SystemAssigned
    NONE
    None
    SYSTEM_ASSIGNED
    SystemAssigned
    "None"
    None
    "SystemAssigned"
    SystemAssigned

    SystemDataResponse, SystemDataResponseArgs

    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.
    createdAt string
    The timestamp of resource creation (UTC).
    createdBy string
    The identity that created the resource.
    createdByType string
    The type of identity that created the resource.
    lastModifiedAt string
    The timestamp of resource last modification (UTC)
    lastModifiedBy string
    The identity that last modified the resource.
    lastModifiedByType string
    The type of identity that last modified the resource.
    created_at str
    The timestamp of resource creation (UTC).
    created_by str
    The identity that created the resource.
    created_by_type str
    The type of identity that created the resource.
    last_modified_at str
    The timestamp of resource last modification (UTC)
    last_modified_by str
    The identity that last modified the resource.
    last_modified_by_type str
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.

    Import

    An existing resource can be imported using its type token, name, and identifier, e.g.

    $ pulumi import azure-native:loadtestservice:LoadTest myLoadTest /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.LoadTestService/loadTests/myLoadTest 
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    azure-native-v1 pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native-v1 logo
    These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
    Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi