This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi
azure-native.devtestlab.getLab
Explore with Pulumi AI
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi
Get lab. Azure REST API version: 2018-09-15.
Using getLab
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 getLab(args: GetLabArgs, opts?: InvokeOptions): Promise<GetLabResult>
function getLabOutput(args: GetLabOutputArgs, opts?: InvokeOptions): Output<GetLabResult>def get_lab(expand: Optional[str] = None,
            name: Optional[str] = None,
            resource_group_name: Optional[str] = None,
            opts: Optional[InvokeOptions] = None) -> GetLabResult
def get_lab_output(expand: Optional[pulumi.Input[str]] = None,
            name: Optional[pulumi.Input[str]] = None,
            resource_group_name: Optional[pulumi.Input[str]] = None,
            opts: Optional[InvokeOptions] = None) -> Output[GetLabResult]func LookupLab(ctx *Context, args *LookupLabArgs, opts ...InvokeOption) (*LookupLabResult, error)
func LookupLabOutput(ctx *Context, args *LookupLabOutputArgs, opts ...InvokeOption) LookupLabResultOutput> Note: This function is named LookupLab in the Go SDK.
public static class GetLab 
{
    public static Task<GetLabResult> InvokeAsync(GetLabArgs args, InvokeOptions? opts = null)
    public static Output<GetLabResult> Invoke(GetLabInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetLabResult> getLab(GetLabArgs args, InvokeOptions options)
public static Output<GetLabResult> getLab(GetLabArgs args, InvokeOptions options)
fn::invoke:
  function: azure-native:devtestlab:getLab
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Name string
- The name of the lab.
- ResourceGroup stringName 
- The name of the resource group.
- Expand string
- Specify the $expand query. Example: 'properties($select=defaultStorageAccount)'
- Name string
- The name of the lab.
- ResourceGroup stringName 
- The name of the resource group.
- Expand string
- Specify the $expand query. Example: 'properties($select=defaultStorageAccount)'
- name String
- The name of the lab.
- resourceGroup StringName 
- The name of the resource group.
- expand String
- Specify the $expand query. Example: 'properties($select=defaultStorageAccount)'
- name string
- The name of the lab.
- resourceGroup stringName 
- The name of the resource group.
- expand string
- Specify the $expand query. Example: 'properties($select=defaultStorageAccount)'
- name str
- The name of the lab.
- resource_group_ strname 
- The name of the resource group.
- expand str
- Specify the $expand query. Example: 'properties($select=defaultStorageAccount)'
- name String
- The name of the lab.
- resourceGroup StringName 
- The name of the resource group.
- expand String
- Specify the $expand query. Example: 'properties($select=defaultStorageAccount)'
getLab Result
The following output properties are available:
- ArtifactsStorage stringAccount 
- The lab's artifact storage account.
- CreatedDate string
- The creation date of the lab.
- string
- The lab's default premium storage account.
- DefaultStorage stringAccount 
- The lab's default storage account.
- Id string
- The identifier of the resource.
- LoadBalancer stringId 
- The load balancer used to for lab VMs that use shared IP address.
- Name string
- The name of the resource.
- NetworkSecurity stringGroup Id 
- The Network Security Group attached to the lab VMs Network interfaces to restrict open ports.
- string
- The lab's premium data disk storage account.
- ProvisioningState string
- The provisioning status of the resource.
- PublicIp stringId 
- The public IP address for the lab's load balancer.
- Type string
- The type of the resource.
- UniqueIdentifier string
- The unique immutable identifier of a resource (Guid).
- VaultName string
- The lab's Key vault.
- VmCreation stringResource Group 
- The resource group in which all new lab virtual machines will be created. To let DevTest Labs manage resource group creation, set this value to null.
- Announcement
Pulumi.Azure Native. Dev Test Lab. Outputs. Lab Announcement Properties Response 
- The properties of any lab announcement associated with this lab
- EnvironmentPermission string
- The access rights to be granted to the user when provisioning an environment
- ExtendedProperties Dictionary<string, string>
- Extended properties of the lab used for experimental features
- LabStorage stringType 
- Type of storage used by the lab. It can be either Premium or Standard. Default is Premium.
- Location string
- The location of the resource.
- MandatoryArtifacts List<string>Resource Ids Linux 
- The ordered list of artifact resource IDs that should be applied on all Linux VM creations by default, prior to the artifacts specified by the user.
- MandatoryArtifacts List<string>Resource Ids Windows 
- The ordered list of artifact resource IDs that should be applied on all Windows VM creations by default, prior to the artifacts specified by the user.
- string
- The setting to enable usage of premium data disks. When its value is 'Enabled', creation of standard or premium data disks is allowed. When its value is 'Disabled', only creation of standard data disks is allowed.
- Support
Pulumi.Azure Native. Dev Test Lab. Outputs. Lab Support Properties Response 
- The properties of any lab support message associated with this lab
- Dictionary<string, string>
- The tags of the resource.
- ArtifactsStorage stringAccount 
- The lab's artifact storage account.
- CreatedDate string
- The creation date of the lab.
- string
- The lab's default premium storage account.
- DefaultStorage stringAccount 
- The lab's default storage account.
- Id string
- The identifier of the resource.
- LoadBalancer stringId 
- The load balancer used to for lab VMs that use shared IP address.
- Name string
- The name of the resource.
- NetworkSecurity stringGroup Id 
- The Network Security Group attached to the lab VMs Network interfaces to restrict open ports.
- string
- The lab's premium data disk storage account.
- ProvisioningState string
- The provisioning status of the resource.
- PublicIp stringId 
- The public IP address for the lab's load balancer.
- Type string
- The type of the resource.
- UniqueIdentifier string
- The unique immutable identifier of a resource (Guid).
- VaultName string
- The lab's Key vault.
- VmCreation stringResource Group 
- The resource group in which all new lab virtual machines will be created. To let DevTest Labs manage resource group creation, set this value to null.
- Announcement
LabAnnouncement Properties Response 
- The properties of any lab announcement associated with this lab
- EnvironmentPermission string
- The access rights to be granted to the user when provisioning an environment
- ExtendedProperties map[string]string
- Extended properties of the lab used for experimental features
- LabStorage stringType 
- Type of storage used by the lab. It can be either Premium or Standard. Default is Premium.
- Location string
- The location of the resource.
- MandatoryArtifacts []stringResource Ids Linux 
- The ordered list of artifact resource IDs that should be applied on all Linux VM creations by default, prior to the artifacts specified by the user.
- MandatoryArtifacts []stringResource Ids Windows 
- The ordered list of artifact resource IDs that should be applied on all Windows VM creations by default, prior to the artifacts specified by the user.
- string
- The setting to enable usage of premium data disks. When its value is 'Enabled', creation of standard or premium data disks is allowed. When its value is 'Disabled', only creation of standard data disks is allowed.
- Support
LabSupport Properties Response 
- The properties of any lab support message associated with this lab
- map[string]string
- The tags of the resource.
- artifactsStorage StringAccount 
- The lab's artifact storage account.
- createdDate String
- The creation date of the lab.
- String
- The lab's default premium storage account.
- defaultStorage StringAccount 
- The lab's default storage account.
- id String
- The identifier of the resource.
- loadBalancer StringId 
- The load balancer used to for lab VMs that use shared IP address.
- name String
- The name of the resource.
- networkSecurity StringGroup Id 
- The Network Security Group attached to the lab VMs Network interfaces to restrict open ports.
- String
- The lab's premium data disk storage account.
- provisioningState String
- The provisioning status of the resource.
- publicIp StringId 
- The public IP address for the lab's load balancer.
- type String
- The type of the resource.
- uniqueIdentifier String
- The unique immutable identifier of a resource (Guid).
- vaultName String
- The lab's Key vault.
- vmCreation StringResource Group 
- The resource group in which all new lab virtual machines will be created. To let DevTest Labs manage resource group creation, set this value to null.
- announcement
LabAnnouncement Properties Response 
- The properties of any lab announcement associated with this lab
- environmentPermission String
- The access rights to be granted to the user when provisioning an environment
- extendedProperties Map<String,String>
- Extended properties of the lab used for experimental features
- labStorage StringType 
- Type of storage used by the lab. It can be either Premium or Standard. Default is Premium.
- location String
- The location of the resource.
- mandatoryArtifacts List<String>Resource Ids Linux 
- The ordered list of artifact resource IDs that should be applied on all Linux VM creations by default, prior to the artifacts specified by the user.
- mandatoryArtifacts List<String>Resource Ids Windows 
- The ordered list of artifact resource IDs that should be applied on all Windows VM creations by default, prior to the artifacts specified by the user.
- String
- The setting to enable usage of premium data disks. When its value is 'Enabled', creation of standard or premium data disks is allowed. When its value is 'Disabled', only creation of standard data disks is allowed.
- support
LabSupport Properties Response 
- The properties of any lab support message associated with this lab
- Map<String,String>
- The tags of the resource.
- artifactsStorage stringAccount 
- The lab's artifact storage account.
- createdDate string
- The creation date of the lab.
- string
- The lab's default premium storage account.
- defaultStorage stringAccount 
- The lab's default storage account.
- id string
- The identifier of the resource.
- loadBalancer stringId 
- The load balancer used to for lab VMs that use shared IP address.
- name string
- The name of the resource.
- networkSecurity stringGroup Id 
- The Network Security Group attached to the lab VMs Network interfaces to restrict open ports.
- string
- The lab's premium data disk storage account.
- provisioningState string
- The provisioning status of the resource.
- publicIp stringId 
- The public IP address for the lab's load balancer.
- type string
- The type of the resource.
- uniqueIdentifier string
- The unique immutable identifier of a resource (Guid).
- vaultName string
- The lab's Key vault.
- vmCreation stringResource Group 
- The resource group in which all new lab virtual machines will be created. To let DevTest Labs manage resource group creation, set this value to null.
- announcement
LabAnnouncement Properties Response 
- The properties of any lab announcement associated with this lab
- environmentPermission string
- The access rights to be granted to the user when provisioning an environment
- extendedProperties {[key: string]: string}
- Extended properties of the lab used for experimental features
- labStorage stringType 
- Type of storage used by the lab. It can be either Premium or Standard. Default is Premium.
- location string
- The location of the resource.
- mandatoryArtifacts string[]Resource Ids Linux 
- The ordered list of artifact resource IDs that should be applied on all Linux VM creations by default, prior to the artifacts specified by the user.
- mandatoryArtifacts string[]Resource Ids Windows 
- The ordered list of artifact resource IDs that should be applied on all Windows VM creations by default, prior to the artifacts specified by the user.
- string
- The setting to enable usage of premium data disks. When its value is 'Enabled', creation of standard or premium data disks is allowed. When its value is 'Disabled', only creation of standard data disks is allowed.
- support
LabSupport Properties Response 
- The properties of any lab support message associated with this lab
- {[key: string]: string}
- The tags of the resource.
- artifacts_storage_ straccount 
- The lab's artifact storage account.
- created_date str
- The creation date of the lab.
- str
- The lab's default premium storage account.
- default_storage_ straccount 
- The lab's default storage account.
- id str
- The identifier of the resource.
- load_balancer_ strid 
- The load balancer used to for lab VMs that use shared IP address.
- name str
- The name of the resource.
- network_security_ strgroup_ id 
- The Network Security Group attached to the lab VMs Network interfaces to restrict open ports.
- str
- The lab's premium data disk storage account.
- provisioning_state str
- The provisioning status of the resource.
- public_ip_ strid 
- The public IP address for the lab's load balancer.
- type str
- The type of the resource.
- unique_identifier str
- The unique immutable identifier of a resource (Guid).
- vault_name str
- The lab's Key vault.
- vm_creation_ strresource_ group 
- The resource group in which all new lab virtual machines will be created. To let DevTest Labs manage resource group creation, set this value to null.
- announcement
LabAnnouncement Properties Response 
- The properties of any lab announcement associated with this lab
- environment_permission str
- The access rights to be granted to the user when provisioning an environment
- extended_properties Mapping[str, str]
- Extended properties of the lab used for experimental features
- lab_storage_ strtype 
- Type of storage used by the lab. It can be either Premium or Standard. Default is Premium.
- location str
- The location of the resource.
- mandatory_artifacts_ Sequence[str]resource_ ids_ linux 
- The ordered list of artifact resource IDs that should be applied on all Linux VM creations by default, prior to the artifacts specified by the user.
- mandatory_artifacts_ Sequence[str]resource_ ids_ windows 
- The ordered list of artifact resource IDs that should be applied on all Windows VM creations by default, prior to the artifacts specified by the user.
- str
- The setting to enable usage of premium data disks. When its value is 'Enabled', creation of standard or premium data disks is allowed. When its value is 'Disabled', only creation of standard data disks is allowed.
- support
LabSupport Properties Response 
- The properties of any lab support message associated with this lab
- Mapping[str, str]
- The tags of the resource.
- artifactsStorage StringAccount 
- The lab's artifact storage account.
- createdDate String
- The creation date of the lab.
- String
- The lab's default premium storage account.
- defaultStorage StringAccount 
- The lab's default storage account.
- id String
- The identifier of the resource.
- loadBalancer StringId 
- The load balancer used to for lab VMs that use shared IP address.
- name String
- The name of the resource.
- networkSecurity StringGroup Id 
- The Network Security Group attached to the lab VMs Network interfaces to restrict open ports.
- String
- The lab's premium data disk storage account.
- provisioningState String
- The provisioning status of the resource.
- publicIp StringId 
- The public IP address for the lab's load balancer.
- type String
- The type of the resource.
- uniqueIdentifier String
- The unique immutable identifier of a resource (Guid).
- vaultName String
- The lab's Key vault.
- vmCreation StringResource Group 
- The resource group in which all new lab virtual machines will be created. To let DevTest Labs manage resource group creation, set this value to null.
- announcement Property Map
- The properties of any lab announcement associated with this lab
- environmentPermission String
- The access rights to be granted to the user when provisioning an environment
- extendedProperties Map<String>
- Extended properties of the lab used for experimental features
- labStorage StringType 
- Type of storage used by the lab. It can be either Premium or Standard. Default is Premium.
- location String
- The location of the resource.
- mandatoryArtifacts List<String>Resource Ids Linux 
- The ordered list of artifact resource IDs that should be applied on all Linux VM creations by default, prior to the artifacts specified by the user.
- mandatoryArtifacts List<String>Resource Ids Windows 
- The ordered list of artifact resource IDs that should be applied on all Windows VM creations by default, prior to the artifacts specified by the user.
- String
- The setting to enable usage of premium data disks. When its value is 'Enabled', creation of standard or premium data disks is allowed. When its value is 'Disabled', only creation of standard data disks is allowed.
- support Property Map
- The properties of any lab support message associated with this lab
- Map<String>
- The tags of the resource.
Supporting Types
LabAnnouncementPropertiesResponse   
- ProvisioningState string
- The provisioning status of the resource.
- UniqueIdentifier string
- The unique immutable identifier of a resource (Guid).
- Enabled string
- Is the lab announcement active/enabled at this time?
- ExpirationDate string
- The time at which the announcement expires (null for never)
- Expired bool
- Has this announcement expired?
- Markdown string
- The markdown text (if any) that this lab displays in the UI. If left empty/null, nothing will be shown.
- Title string
- The plain text title for the lab announcement
- ProvisioningState string
- The provisioning status of the resource.
- UniqueIdentifier string
- The unique immutable identifier of a resource (Guid).
- Enabled string
- Is the lab announcement active/enabled at this time?
- ExpirationDate string
- The time at which the announcement expires (null for never)
- Expired bool
- Has this announcement expired?
- Markdown string
- The markdown text (if any) that this lab displays in the UI. If left empty/null, nothing will be shown.
- Title string
- The plain text title for the lab announcement
- provisioningState String
- The provisioning status of the resource.
- uniqueIdentifier String
- The unique immutable identifier of a resource (Guid).
- enabled String
- Is the lab announcement active/enabled at this time?
- expirationDate String
- The time at which the announcement expires (null for never)
- expired Boolean
- Has this announcement expired?
- markdown String
- The markdown text (if any) that this lab displays in the UI. If left empty/null, nothing will be shown.
- title String
- The plain text title for the lab announcement
- provisioningState string
- The provisioning status of the resource.
- uniqueIdentifier string
- The unique immutable identifier of a resource (Guid).
- enabled string
- Is the lab announcement active/enabled at this time?
- expirationDate string
- The time at which the announcement expires (null for never)
- expired boolean
- Has this announcement expired?
- markdown string
- The markdown text (if any) that this lab displays in the UI. If left empty/null, nothing will be shown.
- title string
- The plain text title for the lab announcement
- provisioning_state str
- The provisioning status of the resource.
- unique_identifier str
- The unique immutable identifier of a resource (Guid).
- enabled str
- Is the lab announcement active/enabled at this time?
- expiration_date str
- The time at which the announcement expires (null for never)
- expired bool
- Has this announcement expired?
- markdown str
- The markdown text (if any) that this lab displays in the UI. If left empty/null, nothing will be shown.
- title str
- The plain text title for the lab announcement
- provisioningState String
- The provisioning status of the resource.
- uniqueIdentifier String
- The unique immutable identifier of a resource (Guid).
- enabled String
- Is the lab announcement active/enabled at this time?
- expirationDate String
- The time at which the announcement expires (null for never)
- expired Boolean
- Has this announcement expired?
- markdown String
- The markdown text (if any) that this lab displays in the UI. If left empty/null, nothing will be shown.
- title String
- The plain text title for the lab announcement
LabSupportPropertiesResponse   
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi