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
LookupLabin 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.
- Resource
Group stringName The Name of the Resource Group where the Dev Test Lab exists.
- Name string
The name of the Dev Test Lab.
- Resource
Group stringName The Name of the Resource Group where the Dev Test Lab exists.
- name string
The name of the Dev Test Lab.
- resource
Group stringName The Name of the Resource Group where the Dev Test Lab exists.
- name str
The name of the Dev Test Lab.
- resource_
group_ strname The Name of the Resource Group where the Dev Test Lab exists.
GetLab Result
The following output properties are available:
- Artifacts
Storage stringAccount Id The ID of the Storage Account used for Artifact Storage.
- string
The ID of the Default Premium Storage Account for this Dev Test Lab.
- Default
Storage stringAccount Id The ID of the Default Storage Account for this Dev Test Lab.
- Id string
The provider-assigned unique ID for this managed resource.
- Key
Vault stringId The ID of the Key used for this Dev Test Lab.
- Location string
The Azure location where the Dev Test Lab exists.
- Name string
- string
The ID of the Storage Account used for Storage of Premium Data Disk.
- Resource
Group stringName - Storage
Type string The type of storage used by the Dev Test Lab.
- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Unique
Identifier string The unique immutable identifier of the Dev Test Lab.
- Artifacts
Storage stringAccount Id The ID of the Storage Account used for Artifact Storage.
- string
The ID of the Default Premium Storage Account for this Dev Test Lab.
- Default
Storage stringAccount Id The ID of the Default Storage Account for this Dev Test Lab.
- Id string
The provider-assigned unique ID for this managed resource.
- Key
Vault stringId The ID of the Key used for this Dev Test Lab.
- Location string
The Azure location where the Dev Test Lab exists.
- Name string
- string
The ID of the Storage Account used for Storage of Premium Data Disk.
- Resource
Group stringName - Storage
Type string The type of storage used by the Dev Test Lab.
- map[string]string
A mapping of tags to assign to the resource.
- Unique
Identifier string The unique immutable identifier of the Dev Test Lab.
- artifacts
Storage stringAccount Id The ID of the Storage Account used for Artifact Storage.
- string
The ID of the Default Premium Storage Account for this Dev Test Lab.
- default
Storage stringAccount Id The ID of the Default Storage Account for this Dev Test Lab.
- id string
The provider-assigned unique ID for this managed resource.
- key
Vault stringId The ID of the Key used for this Dev Test Lab.
- location string
The Azure location where the Dev Test Lab exists.
- name string
- string
The ID of the Storage Account used for Storage of Premium Data Disk.
- resource
Group stringName - storage
Type string The type of storage used by the Dev Test Lab.
- {[key: string]: string}
A mapping of tags to assign to the resource.
- unique
Identifier string The unique immutable identifier of the Dev Test Lab.
- artifacts_
storage_ straccount_ id The ID of the Storage Account used for Artifact Storage.
- str
The ID of the Default Premium Storage Account for this Dev Test Lab.
- default_
storage_ straccount_ id 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_ strid The ID of the Key used for this Dev Test Lab.
- location str
The Azure location where the Dev Test Lab exists.
- name str
- str
The ID of the Storage Account used for Storage of Premium Data Disk.
- resource_
group_ strname - storage_
type str The type of storage used by the Dev Test Lab.
- 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
azurermTerraform Provider.