azure-native.loadtestservice.LoadTest
Explore with Pulumi AI
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The LoadTest resource accepts the following input properties:
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Description string
- Description of the resource.
- Identity
Pulumi.
Azure Native. Load Test Service. Inputs. System Assigned Service Identity - The type of identity used for the resource.
- Load
Test stringName - Load Test resource name.
- Location string
- The geo-location where the resource lives
- Dictionary<string, string>
- Resource tags.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Description string
- Description of the resource.
- Identity
System
Assigned Service Identity Args - The type of identity used for the resource.
- Load
Test stringName - Load Test resource name.
- Location string
- The geo-location where the resource lives
- map[string]string
- Resource tags.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- description String
- Description of the resource.
- identity
System
Assigned Service Identity - The type of identity used for the resource.
- load
Test StringName - Load Test resource name.
- location String
- The geo-location where the resource lives
- Map<String,String>
- Resource tags.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- description string
- Description of the resource.
- identity
System
Assigned Service Identity - The type of identity used for the resource.
- load
Test stringName - Load Test resource name.
- location string
- The geo-location where the resource lives
- {[key: string]: string}
- Resource tags.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- description str
- Description of the resource.
- identity
System
Assigned Service Identity Args - The type of identity used for the resource.
- load_
test_ strname - Load Test resource name.
- location str
- The geo-location where the resource lives
- Mapping[str, str]
- Resource tags.
- resource
Group StringName - 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.
- load
Test StringName - Load Test resource name.
- location String
- The geo-location where the resource lives
- Map<String>
- Resource tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the LoadTest resource produces the following output properties:
- Data
Plane stringURI - Resource data plane URI.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- Provisioning
State string - Resource provisioning state.
- System
Data Pulumi.Azure Native. Load Test Service. Outputs. System Data Response - 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 stringURI - Resource data plane URI.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- Provisioning
State string - Resource provisioning state.
- System
Data SystemData Response - 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 StringURI - Resource data plane URI.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- provisioning
State String - Resource provisioning state.
- system
Data SystemData Response - 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 stringURI - Resource data plane URI.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource
- provisioning
State string - Resource provisioning state.
- system
Data SystemData Response - 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_ struri - 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 SystemData Response - 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"
- data
Plane StringURI - Resource data plane URI.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- provisioning
State String - Resource provisioning state.
- system
Data 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.
Azure Native. Load Test Service. System Assigned Service Identity Type - Type of managed service identity (either system assigned, or none).
- Type
string | System
Assigned Service Identity Type - Type of managed service identity (either system assigned, or none).
- type
String | System
Assigned Service Identity Type - Type of managed service identity (either system assigned, or none).
- type
string | System
Assigned Service Identity Type - Type of managed service identity (either system assigned, or none).
- type
str | System
Assigned Service Identity Type - Type of managed service identity (either system assigned, or none).
- type
String | "None" | "System
Assigned" - Type of managed service identity (either system assigned, or none).
SystemAssignedServiceIdentityResponse, SystemAssignedServiceIdentityResponseArgs
- Principal
Id string - The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.
- Tenant
Id 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 string - The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.
- Tenant
Id 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 String - The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.
- tenant
Id 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 string - The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.
- tenant
Id 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).
- principal
Id String - The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.
- tenant
Id 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
- System
Assigned - SystemAssigned
- System
Assigned Service Identity Type None - None
- System
Assigned Service Identity Type System Assigned - SystemAssigned
- None
- None
- System
Assigned - SystemAssigned
- None
- None
- System
Assigned - SystemAssigned
- NONE
- None
- SYSTEM_ASSIGNED
- SystemAssigned
- "None"
- None
- "System
Assigned" - SystemAssigned
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - 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_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - 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