GetLab

Use this data source to access information about an existing Dev Test Lab.

Example Usage

using Pulumi;
using Azure = Pulumi.Azure;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(Azure.DevTest.GetLab.InvokeAsync(new Azure.DevTest.GetLabArgs
        {
            Name = "example-lab",
            ResourceGroupName = "example-resources",
        }));
        this.UniqueIdentifier = example.Apply(example => example.UniqueIdentifier);
    }

    [Output("uniqueIdentifier")]
    public Output<string> UniqueIdentifier { get; set; }
}
package main

import (
    "github.com/pulumi/pulumi-azure/sdk/v3/go/azure/devtest"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        example, err := devtest.LookupLab(ctx, &devtest.LookupLabArgs{
            Name:              "example-lab",
            ResourceGroupName: "example-resources",
        }, nil)
        if err != nil {
            return err
        }
        ctx.Export("uniqueIdentifier", example.UniqueIdentifier)
        return nil
    })
}
import pulumi
import pulumi_azure as azure

example = azure.devtest.get_lab(name="example-lab",
    resource_group_name="example-resources")
pulumi.export("uniqueIdentifier", example.unique_identifier)
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const example = azure.devtest.getLab({
    name: "example-lab",
    resourceGroupName: "example-resources",
});
export const uniqueIdentifier = example.then(example => example.uniqueIdentifier);

Using GetLab

function getLab(args: GetLabArgs, opts?: InvokeOptions): Promise<GetLabResult>
function  get_lab(name=None, resource_group_name=None, opts=None)
func LookupLab(ctx *Context, args *LookupLabArgs, opts ...InvokeOption) (*LookupLabResult, error)

Note: This function is named LookupLab in the Go SDK.

public static class GetLab {
    public static Task<GetLabResult> InvokeAsync(GetLabArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Name string

The name of the Dev Test Lab.

ResourceGroupName string

The Name of the Resource Group where the Dev Test Lab exists.

Name string

The name of the Dev Test Lab.

ResourceGroupName string

The Name of the Resource Group where the Dev Test Lab exists.

name string

The name of the Dev Test Lab.

resourceGroupName string

The Name of the Resource Group where the Dev Test Lab exists.

name str

The name of the Dev Test Lab.

resource_group_name str

The Name of the Resource Group where the Dev Test Lab exists.

GetLab Result

The following output properties are available:

ArtifactsStorageAccountId string

The ID of the Storage Account used for Artifact Storage.

DefaultPremiumStorageAccountId string

The ID of the Default Premium Storage Account for this Dev Test Lab.

DefaultStorageAccountId string

The ID of the Default Storage Account for this Dev Test Lab.

Id string

The provider-assigned unique ID for this managed resource.

KeyVaultId string

The ID of the Key used for this Dev Test Lab.

Location string

The Azure location where the Dev Test Lab exists.

Name string
PremiumDataDiskStorageAccountId string

The ID of the Storage Account used for Storage of Premium Data Disk.

ResourceGroupName string
StorageType string

The type of storage used by the Dev Test Lab.

Tags Dictionary<string, string>

A mapping of tags to assign to the resource.

UniqueIdentifier string

The unique immutable identifier of the Dev Test Lab.

ArtifactsStorageAccountId string

The ID of the Storage Account used for Artifact Storage.

DefaultPremiumStorageAccountId string

The ID of the Default Premium Storage Account for this Dev Test Lab.

DefaultStorageAccountId string

The ID of the Default Storage Account for this Dev Test Lab.

Id string

The provider-assigned unique ID for this managed resource.

KeyVaultId string

The ID of the Key used for this Dev Test Lab.

Location string

The Azure location where the Dev Test Lab exists.

Name string
PremiumDataDiskStorageAccountId string

The ID of the Storage Account used for Storage of Premium Data Disk.

ResourceGroupName string
StorageType string

The type of storage used by the Dev Test Lab.

Tags map[string]string

A mapping of tags to assign to the resource.

UniqueIdentifier string

The unique immutable identifier of the Dev Test Lab.

artifactsStorageAccountId string

The ID of the Storage Account used for Artifact Storage.

defaultPremiumStorageAccountId string

The ID of the Default Premium Storage Account for this Dev Test Lab.

defaultStorageAccountId string

The ID of the Default Storage Account for this Dev Test Lab.

id string

The provider-assigned unique ID for this managed resource.

keyVaultId string

The ID of the Key used for this Dev Test Lab.

location string

The Azure location where the Dev Test Lab exists.

name string
premiumDataDiskStorageAccountId string

The ID of the Storage Account used for Storage of Premium Data Disk.

resourceGroupName string
storageType string

The type of storage used by the Dev Test Lab.

tags {[key: string]: string}

A mapping of tags to assign to the resource.

uniqueIdentifier string

The unique immutable identifier of the Dev Test Lab.

artifacts_storage_account_id str

The ID of the Storage Account used for Artifact Storage.

default_premium_storage_account_id str

The ID of the Default Premium Storage Account for this Dev Test Lab.

default_storage_account_id str

The ID of the Default Storage Account for this Dev Test Lab.

id str

The provider-assigned unique ID for this managed resource.

key_vault_id str

The ID of the Key used for this Dev Test Lab.

location str

The Azure location where the Dev Test Lab exists.

name str
premium_data_disk_storage_account_id str

The ID of the Storage Account used for Storage of Premium Data Disk.

resource_group_name str
storage_type str

The type of storage used by the Dev Test Lab.

tags Dict[str, str]

A mapping of tags to assign to the resource.

unique_identifier str

The unique immutable identifier of the Dev Test Lab.

Package Details

Repository
https://github.com/pulumi/pulumi-azure
License
Apache-2.0
Notes
This Pulumi package is based on the azurerm Terraform Provider.