azure-native.labservices.Environment
Explore with Pulumi AI
Represents an environment instance API Version: 2018-10-15.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:labservices:Environment myresource1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/environmentsettings/{environmentSettingName}/environments/{environmentName} 
Create Environment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Environment(name: string, args: EnvironmentArgs, opts?: CustomResourceOptions);@overload
def Environment(resource_name: str,
                args: EnvironmentArgs,
                opts: Optional[ResourceOptions] = None)
@overload
def Environment(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                environment_setting_name: Optional[str] = None,
                lab_account_name: Optional[str] = None,
                lab_name: Optional[str] = None,
                resource_group_name: Optional[str] = None,
                environment_name: Optional[str] = None,
                location: Optional[str] = None,
                provisioning_state: Optional[str] = None,
                resource_sets: Optional[ResourceSetArgs] = None,
                tags: Optional[Mapping[str, str]] = None,
                unique_identifier: Optional[str] = None)func NewEnvironment(ctx *Context, name string, args EnvironmentArgs, opts ...ResourceOption) (*Environment, error)public Environment(string name, EnvironmentArgs args, CustomResourceOptions? opts = null)
public Environment(String name, EnvironmentArgs args)
public Environment(String name, EnvironmentArgs args, CustomResourceOptions options)
type: azure-native:labservices:Environment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args EnvironmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args EnvironmentArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args EnvironmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EnvironmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args EnvironmentArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var azure_nativeEnvironmentResource = new AzureNative.Labservices.Environment("azure-nativeEnvironmentResource", new()
{
    EnvironmentSettingName = "string",
    LabAccountName = "string",
    LabName = "string",
    ResourceGroupName = "string",
    EnvironmentName = "string",
    Location = "string",
    ProvisioningState = "string",
    ResourceSets = 
    {
        { "resourceSettingId", "string" },
        { "vmResourceId", "string" },
    },
    Tags = 
    {
        { "string", "string" },
    },
    UniqueIdentifier = "string",
});
example, err := labservices.NewEnvironment(ctx, "azure-nativeEnvironmentResource", &labservices.EnvironmentArgs{
	EnvironmentSettingName: "string",
	LabAccountName:         "string",
	LabName:                "string",
	ResourceGroupName:      "string",
	EnvironmentName:        "string",
	Location:               "string",
	ProvisioningState:      "string",
	ResourceSets: map[string]interface{}{
		"resourceSettingId": "string",
		"vmResourceId":      "string",
	},
	Tags: map[string]interface{}{
		"string": "string",
	},
	UniqueIdentifier: "string",
})
var azure_nativeEnvironmentResource = new Environment("azure-nativeEnvironmentResource", EnvironmentArgs.builder()
    .environmentSettingName("string")
    .labAccountName("string")
    .labName("string")
    .resourceGroupName("string")
    .environmentName("string")
    .location("string")
    .provisioningState("string")
    .resourceSets(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
    .tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
    .uniqueIdentifier("string")
    .build());
azure_native_environment_resource = azure_native.labservices.Environment("azure-nativeEnvironmentResource",
    environment_setting_name=string,
    lab_account_name=string,
    lab_name=string,
    resource_group_name=string,
    environment_name=string,
    location=string,
    provisioning_state=string,
    resource_sets={
        resourceSettingId: string,
        vmResourceId: string,
    },
    tags={
        string: string,
    },
    unique_identifier=string)
const azure_nativeEnvironmentResource = new azure_native.labservices.Environment("azure-nativeEnvironmentResource", {
    environmentSettingName: "string",
    labAccountName: "string",
    labName: "string",
    resourceGroupName: "string",
    environmentName: "string",
    location: "string",
    provisioningState: "string",
    resourceSets: {
        resourceSettingId: "string",
        vmResourceId: "string",
    },
    tags: {
        string: "string",
    },
    uniqueIdentifier: "string",
});
type: azure-native:labservices:Environment
properties:
    environmentName: string
    environmentSettingName: string
    labAccountName: string
    labName: string
    location: string
    provisioningState: string
    resourceGroupName: string
    resourceSets:
        resourceSettingId: string
        vmResourceId: string
    tags:
        string: string
    uniqueIdentifier: string
Environment Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Environment resource accepts the following input properties:
- 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.
- EnvironmentName string
- The name of the environment.
- Location string
- The location of the resource.
- ProvisioningState string
- The provisioning status of the resource.
- ResourceSets Pulumi.Azure Native. Lab Services. Inputs. Resource Set 
- 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).
- 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.
- EnvironmentName string
- The name of the environment.
- Location string
- The location of the resource.
- ProvisioningState string
- The provisioning status of the resource.
- ResourceSets ResourceSet Args 
- 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).
- 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.
- environmentName String
- The name of the environment.
- location String
- The location of the resource.
- provisioningState String
- The provisioning status of the resource.
- resourceSets ResourceSet 
- 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).
- 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.
- environmentName string
- The name of the environment.
- location string
- The location of the resource.
- provisioningState string
- The provisioning status of the resource.
- resourceSets ResourceSet 
- 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).
- 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.
- environment_name str
- The name of the environment.
- location str
- The location of the resource.
- provisioning_state str
- The provisioning status of the resource.
- resource_sets ResourceSet Args 
- 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).
- 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.
- environmentName String
- The name of the environment.
- 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).
Outputs
All input properties are implicitly available as output properties. Additionally, the Environment resource produces the following output properties:
- 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 provider-assigned unique ID for this managed 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.
- 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 provider-assigned unique ID for this managed 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.
- 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 provider-assigned unique ID for this managed 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.
- 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 provider-assigned unique ID for this managed 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.
- 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 provider-assigned unique ID for this managed 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.
- 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 provider-assigned unique ID for this managed 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.
Supporting Types
LatestOperationResultResponse, LatestOperationResultResponseArgs        
- 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, NetworkInterfaceResponseArgs      
- 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
ResourceSet, ResourceSetArgs    
- 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
ResourceSetResponse, ResourceSetResponseArgs      
- 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