These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi
azure-native.labservices.getEnvironment
Explore with Pulumi AI
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi
Get environment API Version: 2018-10-15.
Using getEnvironment
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 getEnvironment(args: GetEnvironmentArgs, opts?: InvokeOptions): Promise<GetEnvironmentResult>
function getEnvironmentOutput(args: GetEnvironmentOutputArgs, opts?: InvokeOptions): Output<GetEnvironmentResult>def get_environment(environment_name: Optional[str] = None,
                    environment_setting_name: Optional[str] = None,
                    expand: Optional[str] = None,
                    lab_account_name: Optional[str] = None,
                    lab_name: Optional[str] = None,
                    resource_group_name: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetEnvironmentResult
def get_environment_output(environment_name: Optional[pulumi.Input[str]] = None,
                    environment_setting_name: Optional[pulumi.Input[str]] = None,
                    expand: Optional[pulumi.Input[str]] = None,
                    lab_account_name: Optional[pulumi.Input[str]] = None,
                    lab_name: Optional[pulumi.Input[str]] = None,
                    resource_group_name: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetEnvironmentResult]func LookupEnvironment(ctx *Context, args *LookupEnvironmentArgs, opts ...InvokeOption) (*LookupEnvironmentResult, error)
func LookupEnvironmentOutput(ctx *Context, args *LookupEnvironmentOutputArgs, opts ...InvokeOption) LookupEnvironmentResultOutput> Note: This function is named LookupEnvironment in the Go SDK.
public static class GetEnvironment 
{
    public static Task<GetEnvironmentResult> InvokeAsync(GetEnvironmentArgs args, InvokeOptions? opts = null)
    public static Output<GetEnvironmentResult> Invoke(GetEnvironmentInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetEnvironmentResult> getEnvironment(GetEnvironmentArgs args, InvokeOptions options)
public static Output<GetEnvironmentResult> getEnvironment(GetEnvironmentArgs args, InvokeOptions options)
fn::invoke:
  function: azure-native:labservices:getEnvironment
  arguments:
    # arguments dictionaryThe following arguments are supported:
- EnvironmentName string
- The name of the environment.
- EnvironmentSetting stringName 
- The name of the environment Setting.
- LabAccount stringName 
- The name of the lab Account.
- LabName string
- The name of the lab.
- ResourceGroup stringName 
- The name of the resource group.
- Expand string
- Specify the $expand query. Example: 'properties($expand=networkInterface)'
- EnvironmentName string
- The name of the environment.
- EnvironmentSetting stringName 
- The name of the environment Setting.
- LabAccount stringName 
- The name of the lab Account.
- LabName string
- The name of the lab.
- ResourceGroup stringName 
- The name of the resource group.
- Expand string
- Specify the $expand query. Example: 'properties($expand=networkInterface)'
- environmentName String
- The name of the environment.
- environmentSetting StringName 
- The name of the environment Setting.
- labAccount StringName 
- The name of the lab Account.
- labName String
- The name of the lab.
- resourceGroup StringName 
- The name of the resource group.
- expand String
- Specify the $expand query. Example: 'properties($expand=networkInterface)'
- environmentName string
- The name of the environment.
- environmentSetting stringName 
- The name of the environment Setting.
- labAccount stringName 
- The name of the lab Account.
- labName string
- The name of the lab.
- resourceGroup stringName 
- The name of the resource group.
- expand string
- Specify the $expand query. Example: 'properties($expand=networkInterface)'
- environment_name str
- The name of the environment.
- environment_setting_ strname 
- The name of the environment Setting.
- lab_account_ strname 
- The name of the lab Account.
- lab_name str
- The name of the lab.
- resource_group_ strname 
- The name of the resource group.
- expand str
- Specify the $expand query. Example: 'properties($expand=networkInterface)'
- environmentName String
- The name of the environment.
- environmentSetting StringName 
- The name of the environment Setting.
- labAccount StringName 
- The name of the lab Account.
- labName String
- The name of the lab.
- resourceGroup StringName 
- The name of the resource group.
- expand String
- Specify the $expand query. Example: 'properties($expand=networkInterface)'
getEnvironment Result
The following output properties are available:
- ClaimedBy stringUser Name 
- The name or email address of the user who has claimed the environment
- ClaimedBy stringUser Object Id 
- The AAD object Id of the user who has claimed the environment
- ClaimedBy stringUser Principal Id 
- The user principal Id of the user who has claimed the environment
- Id string
- The identifier of the resource.
- IsClaimed bool
- Is the environment claimed or not
- LastKnown stringPower State 
- Last known power state of the environment
- LatestOperation Pulumi.Result Azure Native. Lab Services. Outputs. Latest Operation Result Response 
- The details of the latest operation. ex: status, error
- Name string
- The name of the resource.
- NetworkInterface Pulumi.Azure Native. Lab Services. Outputs. Network Interface Response 
- Network details of the environment
- PasswordLast stringReset 
- When the password was last reset on the environment.
- TotalUsage string
- How long the environment has been used by a lab user
- Type string
- The type of the resource.
- Location string
- The location of the resource.
- ProvisioningState string
- The provisioning status of the resource.
- ResourceSets Pulumi.Azure Native. Lab Services. Outputs. Resource Set Response 
- The set of a VM and the setting id it was created for
- Dictionary<string, string>
- The tags of the resource.
- UniqueIdentifier string
- The unique immutable identifier of a resource (Guid).
- ClaimedBy stringUser Name 
- The name or email address of the user who has claimed the environment
- ClaimedBy stringUser Object Id 
- The AAD object Id of the user who has claimed the environment
- ClaimedBy stringUser Principal Id 
- The user principal Id of the user who has claimed the environment
- Id string
- The identifier of the resource.
- IsClaimed bool
- Is the environment claimed or not
- LastKnown stringPower State 
- Last known power state of the environment
- LatestOperation LatestResult Operation Result Response 
- The details of the latest operation. ex: status, error
- Name string
- The name of the resource.
- NetworkInterface NetworkInterface Response 
- Network details of the environment
- PasswordLast stringReset 
- When the password was last reset on the environment.
- TotalUsage string
- How long the environment has been used by a lab user
- Type string
- The type of the resource.
- Location string
- The location of the resource.
- ProvisioningState string
- The provisioning status of the resource.
- ResourceSets ResourceSet Response 
- The set of a VM and the setting id it was created for
- map[string]string
- The tags of the resource.
- UniqueIdentifier string
- The unique immutable identifier of a resource (Guid).
- claimedBy StringUser Name 
- The name or email address of the user who has claimed the environment
- claimedBy StringUser Object Id 
- The AAD object Id of the user who has claimed the environment
- claimedBy StringUser Principal Id 
- The user principal Id of the user who has claimed the environment
- id String
- The identifier of the resource.
- isClaimed Boolean
- Is the environment claimed or not
- lastKnown StringPower State 
- Last known power state of the environment
- latestOperation LatestResult Operation Result Response 
- The details of the latest operation. ex: status, error
- name String
- The name of the resource.
- networkInterface NetworkInterface Response 
- Network details of the environment
- passwordLast StringReset 
- When the password was last reset on the environment.
- totalUsage String
- How long the environment has been used by a lab user
- type String
- The type of the resource.
- location String
- The location of the resource.
- provisioningState String
- The provisioning status of the resource.
- resourceSets ResourceSet Response 
- The set of a VM and the setting id it was created for
- Map<String,String>
- The tags of the resource.
- uniqueIdentifier String
- The unique immutable identifier of a resource (Guid).
- claimedBy stringUser Name 
- The name or email address of the user who has claimed the environment
- claimedBy stringUser Object Id 
- The AAD object Id of the user who has claimed the environment
- claimedBy stringUser Principal Id 
- The user principal Id of the user who has claimed the environment
- id string
- The identifier of the resource.
- isClaimed boolean
- Is the environment claimed or not
- lastKnown stringPower State 
- Last known power state of the environment
- latestOperation LatestResult Operation Result Response 
- The details of the latest operation. ex: status, error
- name string
- The name of the resource.
- networkInterface NetworkInterface Response 
- Network details of the environment
- passwordLast stringReset 
- When the password was last reset on the environment.
- totalUsage string
- How long the environment has been used by a lab user
- type string
- The type of the resource.
- location string
- The location of the resource.
- provisioningState string
- The provisioning status of the resource.
- resourceSets ResourceSet Response 
- The set of a VM and the setting id it was created for
- {[key: string]: string}
- The tags of the resource.
- uniqueIdentifier string
- The unique immutable identifier of a resource (Guid).
- claimed_by_ struser_ name 
- The name or email address of the user who has claimed the environment
- claimed_by_ struser_ object_ id 
- The AAD object Id of the user who has claimed the environment
- claimed_by_ struser_ principal_ id 
- The user principal Id of the user who has claimed the environment
- id str
- The identifier of the resource.
- is_claimed bool
- Is the environment claimed or not
- last_known_ strpower_ state 
- Last known power state of the environment
- latest_operation_ Latestresult Operation Result Response 
- The details of the latest operation. ex: status, error
- name str
- The name of the resource.
- network_interface NetworkInterface Response 
- Network details of the environment
- password_last_ strreset 
- When the password was last reset on the environment.
- total_usage str
- How long the environment has been used by a lab user
- type str
- The type of the resource.
- location str
- The location of the resource.
- provisioning_state str
- The provisioning status of the resource.
- resource_sets ResourceSet Response 
- The set of a VM and the setting id it was created for
- Mapping[str, str]
- The tags of the resource.
- unique_identifier str
- The unique immutable identifier of a resource (Guid).
- claimedBy StringUser Name 
- The name or email address of the user who has claimed the environment
- claimedBy StringUser Object Id 
- The AAD object Id of the user who has claimed the environment
- claimedBy StringUser Principal Id 
- The user principal Id of the user who has claimed the environment
- id String
- The identifier of the resource.
- isClaimed Boolean
- Is the environment claimed or not
- lastKnown StringPower State 
- Last known power state of the environment
- latestOperation Property MapResult 
- The details of the latest operation. ex: status, error
- name String
- The name of the resource.
- networkInterface Property Map
- Network details of the environment
- passwordLast StringReset 
- When the password was last reset on the environment.
- totalUsage String
- How long the environment has been used by a lab user
- type String
- The type of the resource.
- location String
- The location of the resource.
- provisioningState String
- The provisioning status of the resource.
- resourceSets Property Map
- The set of a VM and the setting id it was created for
- Map<String>
- The tags of the resource.
- uniqueIdentifier String
- The unique immutable identifier of a resource (Guid).
Supporting Types
LatestOperationResultResponse   
- ErrorCode string
- Error code on failure.
- ErrorMessage string
- The error message.
- HttpMethod string
- The HttpMethod - PUT/POST/DELETE for the operation.
- OperationUrl string
- The URL to use to check long-running operation status
- RequestUri string
- Request URI of the operation.
- Status string
- The current status of the operation.
- ErrorCode string
- Error code on failure.
- ErrorMessage string
- The error message.
- HttpMethod string
- The HttpMethod - PUT/POST/DELETE for the operation.
- OperationUrl string
- The URL to use to check long-running operation status
- RequestUri string
- Request URI of the operation.
- Status string
- The current status of the operation.
- errorCode String
- Error code on failure.
- errorMessage String
- The error message.
- httpMethod String
- The HttpMethod - PUT/POST/DELETE for the operation.
- operationUrl String
- The URL to use to check long-running operation status
- requestUri String
- Request URI of the operation.
- status String
- The current status of the operation.
- errorCode string
- Error code on failure.
- errorMessage string
- The error message.
- httpMethod string
- The HttpMethod - PUT/POST/DELETE for the operation.
- operationUrl string
- The URL to use to check long-running operation status
- requestUri string
- Request URI of the operation.
- status string
- The current status of the operation.
- error_code str
- Error code on failure.
- error_message str
- The error message.
- http_method str
- The HttpMethod - PUT/POST/DELETE for the operation.
- operation_url str
- The URL to use to check long-running operation status
- request_uri str
- Request URI of the operation.
- status str
- The current status of the operation.
- errorCode String
- Error code on failure.
- errorMessage String
- The error message.
- httpMethod String
- The HttpMethod - PUT/POST/DELETE for the operation.
- operationUrl String
- The URL to use to check long-running operation status
- requestUri String
- Request URI of the operation.
- status String
- The current status of the operation.
NetworkInterfaceResponse  
- PrivateIp stringAddress 
- PrivateIp address of the Compute VM
- string
- Connection information for Windows
- string
- Connection information for Linux
- Username string
- Username of the VM
- PrivateIp stringAddress 
- PrivateIp address of the Compute VM
- string
- Connection information for Windows
- string
- Connection information for Linux
- Username string
- Username of the VM
- privateIp StringAddress 
- PrivateIp address of the Compute VM
- String
- Connection information for Windows
- String
- Connection information for Linux
- username String
- Username of the VM
- privateIp stringAddress 
- PrivateIp address of the Compute VM
- string
- Connection information for Windows
- string
- Connection information for Linux
- username string
- Username of the VM
- private_ip_ straddress 
- PrivateIp address of the Compute VM
- str
- Connection information for Windows
- str
- Connection information for Linux
- username str
- Username of the VM
- privateIp StringAddress 
- PrivateIp address of the Compute VM
- String
- Connection information for Windows
- String
- Connection information for Linux
- username String
- Username of the VM
ResourceSetResponse  
- ResourceSetting stringId 
- resourceSettingId for the environment
- VmResource stringId 
- VM resource Id for the environment
- ResourceSetting stringId 
- resourceSettingId for the environment
- VmResource stringId 
- VM resource Id for the environment
- resourceSetting StringId 
- resourceSettingId for the environment
- vmResource StringId 
- VM resource Id for the environment
- resourceSetting stringId 
- resourceSettingId for the environment
- vmResource stringId 
- VM resource Id for the environment
- resource_setting_ strid 
- resourceSettingId for the environment
- vm_resource_ strid 
- VM resource Id for the environment
- resourceSetting StringId 
- resourceSettingId for the environment
- vmResource StringId 
- VM resource Id for the environment
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi