1. Packages
  2. Azure Classic
  3. API Docs
  4. loadtest
  5. get

We recommend using Azure Native.

Azure v6.22.0 published on Tuesday, Apr 1, 2025 by Pulumi

azure.loadtest.get

Explore with Pulumi AI

We recommend using Azure Native.

Azure v6.22.0 published on Tuesday, Apr 1, 2025 by Pulumi

Use this data source to access information about a Load Test Service.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const example = azure.loadtest.get({
    resourceGroupName: "example-resources",
    name: "example-load-test",
});
export const loadTestId = example.then(example => example.id);
Copy
import pulumi
import pulumi_azure as azure

example = azure.loadtest.get(resource_group_name="example-resources",
    name="example-load-test")
pulumi.export("loadTestId", example.id)
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := loadtest.Get(ctx, &loadtest.GetArgs{
			ResourceGroupName: "example-resources",
			Name:              "example-load-test",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("loadTestId", example.Id)
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;

return await Deployment.RunAsync(() => 
{
    var example = Azure.LoadTest.Get.Invoke(new()
    {
        ResourceGroupName = "example-resources",
        Name = "example-load-test",
    });

    return new Dictionary<string, object?>
    {
        ["loadTestId"] = example.Apply(getResult => getResult.Id),
    };
});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.loadtest.LoadtestFunctions;
import com.pulumi.azure.loadtest.inputs.GetArgs;
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) {
        final var example = LoadtestFunctions.get(GetArgs.builder()
            .resourceGroupName("example-resources")
            .name("example-load-test")
            .build());

        ctx.export("loadTestId", example.applyValue(getResult -> getResult.id()));
    }
}
Copy
variables:
  example:
    fn::invoke:
      function: azure:loadtest:get
      arguments:
        resourceGroupName: example-resources
        name: example-load-test
outputs:
  loadTestId: ${example.id}
Copy

Using get

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function get(args: GetArgs, opts?: InvokeOptions): Promise<GetResult>
function getOutput(args: GetOutputArgs, opts?: InvokeOptions): Output<GetResult>
Copy
def get(name: Optional[str] = None,
        resource_group_name: Optional[str] = None,
        opts: Optional[InvokeOptions] = None) -> GetResult
def get_output(name: Optional[pulumi.Input[str]] = None,
        resource_group_name: Optional[pulumi.Input[str]] = None,
        opts: Optional[InvokeOptions] = None) -> Output[GetResult]
Copy
func Get(ctx *Context, args *GetArgs, opts ...InvokeOption) (*GetResult, error)
func GetOutput(ctx *Context, args *GetOutputArgs, opts ...InvokeOption) GetResultOutput
Copy

> Note: This function is named Get in the Go SDK.

public static class Get 
{
    public static Task<GetResult> InvokeAsync(GetArgs args, InvokeOptions? opts = null)
    public static Output<GetResult> Invoke(GetInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetResult> get(GetArgs args, InvokeOptions options)
public static Output<GetResult> get(GetArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azure:loadtest/get:get
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Name This property is required. string
The name of the Load Test Service.
ResourceGroupName This property is required. string
The name of the Resource Group in which the Load Test Service exists.
Name This property is required. string
The name of the Load Test Service.
ResourceGroupName This property is required. string
The name of the Resource Group in which the Load Test Service exists.
name This property is required. String
The name of the Load Test Service.
resourceGroupName This property is required. String
The name of the Resource Group in which the Load Test Service exists.
name This property is required. string
The name of the Load Test Service.
resourceGroupName This property is required. string
The name of the Resource Group in which the Load Test Service exists.
name This property is required. str
The name of the Load Test Service.
resource_group_name This property is required. str
The name of the Resource Group in which the Load Test Service exists.
name This property is required. String
The name of the Load Test Service.
resourceGroupName This property is required. String
The name of the Resource Group in which the Load Test Service exists.

get Result

The following output properties are available:

DataPlaneUri string
Resource data plane URI.
Description string
Description of the resource.
Encryptions List<GetEncryption>
An encryption block as defined below.
Id string
The provider-assigned unique ID for this managed resource.
Identities List<GetIdentity>
An identity block as defined below.
Location string
The Azure Region where the Load Test exists.
Name string
ResourceGroupName string
Tags Dictionary<string, string>
A mapping of tags assigned to the Load Test Service.
DataPlaneUri string
Resource data plane URI.
Description string
Description of the resource.
Encryptions []GetEncryption
An encryption block as defined below.
Id string
The provider-assigned unique ID for this managed resource.
Identities []GetIdentity
An identity block as defined below.
Location string
The Azure Region where the Load Test exists.
Name string
ResourceGroupName string
Tags map[string]string
A mapping of tags assigned to the Load Test Service.
dataPlaneUri String
Resource data plane URI.
description String
Description of the resource.
encryptions List<GetEncryption>
An encryption block as defined below.
id String
The provider-assigned unique ID for this managed resource.
identities List<GetIdentity>
An identity block as defined below.
location String
The Azure Region where the Load Test exists.
name String
resourceGroupName String
tags Map<String,String>
A mapping of tags assigned to the Load Test Service.
dataPlaneUri string
Resource data plane URI.
description string
Description of the resource.
encryptions GetEncryption[]
An encryption block as defined below.
id string
The provider-assigned unique ID for this managed resource.
identities GetIdentity[]
An identity block as defined below.
location string
The Azure Region where the Load Test exists.
name string
resourceGroupName string
tags {[key: string]: string}
A mapping of tags assigned to the Load Test Service.
data_plane_uri str
Resource data plane URI.
description str
Description of the resource.
encryptions Sequence[GetEncryption]
An encryption block as defined below.
id str
The provider-assigned unique ID for this managed resource.
identities Sequence[GetIdentity]
An identity block as defined below.
location str
The Azure Region where the Load Test exists.
name str
resource_group_name str
tags Mapping[str, str]
A mapping of tags assigned to the Load Test Service.
dataPlaneUri String
Resource data plane URI.
description String
Description of the resource.
encryptions List<Property Map>
An encryption block as defined below.
id String
The provider-assigned unique ID for this managed resource.
identities List<Property Map>
An identity block as defined below.
location String
The Azure Region where the Load Test exists.
name String
resourceGroupName String
tags Map<String>
A mapping of tags assigned to the Load Test Service.

Supporting Types

GetEncryption

Identities This property is required. List<GetEncryptionIdentity>
An identity block as defined below.
KeyUrl This property is required. string
The URI specifying the Key vault and key to be used to encrypt data in this resource.
Identities This property is required. []GetEncryptionIdentity
An identity block as defined below.
KeyUrl This property is required. string
The URI specifying the Key vault and key to be used to encrypt data in this resource.
identities This property is required. List<GetEncryptionIdentity>
An identity block as defined below.
keyUrl This property is required. String
The URI specifying the Key vault and key to be used to encrypt data in this resource.
identities This property is required. GetEncryptionIdentity[]
An identity block as defined below.
keyUrl This property is required. string
The URI specifying the Key vault and key to be used to encrypt data in this resource.
identities This property is required. Sequence[GetEncryptionIdentity]
An identity block as defined below.
key_url This property is required. str
The URI specifying the Key vault and key to be used to encrypt data in this resource.
identities This property is required. List<Property Map>
An identity block as defined below.
keyUrl This property is required. String
The URI specifying the Key vault and key to be used to encrypt data in this resource.

GetEncryptionIdentity

IdentityId This property is required. string
The User Assigned Identity ID that is assigned to this Load Test Encryption.
Type This property is required. string
Type of Managed Service Identity that is assigned to this Load Test Encryption.
IdentityId This property is required. string
The User Assigned Identity ID that is assigned to this Load Test Encryption.
Type This property is required. string
Type of Managed Service Identity that is assigned to this Load Test Encryption.
identityId This property is required. String
The User Assigned Identity ID that is assigned to this Load Test Encryption.
type This property is required. String
Type of Managed Service Identity that is assigned to this Load Test Encryption.
identityId This property is required. string
The User Assigned Identity ID that is assigned to this Load Test Encryption.
type This property is required. string
Type of Managed Service Identity that is assigned to this Load Test Encryption.
identity_id This property is required. str
The User Assigned Identity ID that is assigned to this Load Test Encryption.
type This property is required. str
Type of Managed Service Identity that is assigned to this Load Test Encryption.
identityId This property is required. String
The User Assigned Identity ID that is assigned to this Load Test Encryption.
type This property is required. String
Type of Managed Service Identity that is assigned to this Load Test Encryption.

GetIdentity

IdentityIds This property is required. List<string>
The list of the User Assigned Identity IDs that is assigned to this Load Test Service.
PrincipalId This property is required. string
The Principal ID for the System-Assigned Managed Identity assigned to this Load Test Service.
TenantId This property is required. string
The Tenant ID for the System-Assigned Managed Identity assigned to this Load Test Service.
Type This property is required. string
Type of Managed Service Identity that is assigned to this Load Test Encryption.
IdentityIds This property is required. []string
The list of the User Assigned Identity IDs that is assigned to this Load Test Service.
PrincipalId This property is required. string
The Principal ID for the System-Assigned Managed Identity assigned to this Load Test Service.
TenantId This property is required. string
The Tenant ID for the System-Assigned Managed Identity assigned to this Load Test Service.
Type This property is required. string
Type of Managed Service Identity that is assigned to this Load Test Encryption.
identityIds This property is required. List<String>
The list of the User Assigned Identity IDs that is assigned to this Load Test Service.
principalId This property is required. String
The Principal ID for the System-Assigned Managed Identity assigned to this Load Test Service.
tenantId This property is required. String
The Tenant ID for the System-Assigned Managed Identity assigned to this Load Test Service.
type This property is required. String
Type of Managed Service Identity that is assigned to this Load Test Encryption.
identityIds This property is required. string[]
The list of the User Assigned Identity IDs that is assigned to this Load Test Service.
principalId This property is required. string
The Principal ID for the System-Assigned Managed Identity assigned to this Load Test Service.
tenantId This property is required. string
The Tenant ID for the System-Assigned Managed Identity assigned to this Load Test Service.
type This property is required. string
Type of Managed Service Identity that is assigned to this Load Test Encryption.
identity_ids This property is required. Sequence[str]
The list of the User Assigned Identity IDs that is assigned to this Load Test Service.
principal_id This property is required. str
The Principal ID for the System-Assigned Managed Identity assigned to this Load Test Service.
tenant_id This property is required. str
The Tenant ID for the System-Assigned Managed Identity assigned to this Load Test Service.
type This property is required. str
Type of Managed Service Identity that is assigned to this Load Test Encryption.
identityIds This property is required. List<String>
The list of the User Assigned Identity IDs that is assigned to this Load Test Service.
principalId This property is required. String
The Principal ID for the System-Assigned Managed Identity assigned to this Load Test Service.
tenantId This property is required. String
The Tenant ID for the System-Assigned Managed Identity assigned to this Load Test Service.
type This property is required. String
Type of Managed Service Identity that is assigned to this Load Test Encryption.

Package Details

Repository
Azure Classic pulumi/pulumi-azure
License
Apache-2.0
Notes
This Pulumi package is based on the azurerm Terraform Provider.

We recommend using Azure Native.

Azure v6.22.0 published on Tuesday, Apr 1, 2025 by Pulumi