azure-native.labservices.Environment
Explore with Pulumi AI
Represents an environment instance Azure REST API version: 2018-10-15. Prior API version in Azure Native 1.x: 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 exampleenvironmentResourceResourceFromLabservices = new AzureNative.LabServices.Environment("exampleenvironmentResourceResourceFromLabservices", new()
{
EnvironmentSettingName = "string",
LabAccountName = "string",
LabName = "string",
ResourceGroupName = "string",
EnvironmentName = "string",
Location = "string",
ProvisioningState = "string",
ResourceSets = new AzureNative.LabServices.Inputs.ResourceSetArgs
{
ResourceSettingId = "string",
VmResourceId = "string",
},
Tags =
{
{ "string", "string" },
},
UniqueIdentifier = "string",
});
example, err := labservices.NewEnvironment(ctx, "exampleenvironmentResourceResourceFromLabservices", &labservices.EnvironmentArgs{
EnvironmentSettingName: pulumi.String("string"),
LabAccountName: pulumi.String("string"),
LabName: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
EnvironmentName: pulumi.String("string"),
Location: pulumi.String("string"),
ProvisioningState: pulumi.String("string"),
ResourceSets: &labservices.ResourceSetArgs{
ResourceSettingId: pulumi.String("string"),
VmResourceId: pulumi.String("string"),
},
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
UniqueIdentifier: pulumi.String("string"),
})
var exampleenvironmentResourceResourceFromLabservices = new Environment("exampleenvironmentResourceResourceFromLabservices", EnvironmentArgs.builder()
.environmentSettingName("string")
.labAccountName("string")
.labName("string")
.resourceGroupName("string")
.environmentName("string")
.location("string")
.provisioningState("string")
.resourceSets(ResourceSetArgs.builder()
.resourceSettingId("string")
.vmResourceId("string")
.build())
.tags(Map.of("string", "string"))
.uniqueIdentifier("string")
.build());
exampleenvironment_resource_resource_from_labservices = azure_native.labservices.Environment("exampleenvironmentResourceResourceFromLabservices",
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 exampleenvironmentResourceResourceFromLabservices = new azure_native.labservices.Environment("exampleenvironmentResourceResourceFromLabservices", {
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
The Environment resource accepts the following input properties:
- Environment
Setting stringName - The name of the environment Setting.
- Lab
Account stringName - The name of the lab Account.
- Lab
Name string - The name of the lab.
- Resource
Group stringName - The name of the resource group.
- Environment
Name string - The name of the environment.
- Location string
- The location of the resource.
- Provisioning
State string - The provisioning status of the resource.
- Resource
Sets 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.
- Unique
Identifier string - The unique immutable identifier of a resource (Guid).
- Environment
Setting stringName - The name of the environment Setting.
- Lab
Account stringName - The name of the lab Account.
- Lab
Name string - The name of the lab.
- Resource
Group stringName - The name of the resource group.
- Environment
Name string - The name of the environment.
- Location string
- The location of the resource.
- Provisioning
State string - The provisioning status of the resource.
- Resource
Sets ResourceSet Args - The set of a VM and the setting id it was created for
- map[string]string
- The tags of the resource.
- Unique
Identifier string - The unique immutable identifier of a resource (Guid).
- environment
Setting StringName - The name of the environment Setting.
- lab
Account StringName - The name of the lab Account.
- lab
Name String - The name of the lab.
- resource
Group StringName - The name of the resource group.
- environment
Name String - The name of the environment.
- location String
- The location of the resource.
- provisioning
State String - The provisioning status of the resource.
- resource
Sets ResourceSet - The set of a VM and the setting id it was created for
- Map<String,String>
- The tags of the resource.
- unique
Identifier String - The unique immutable identifier of a resource (Guid).
- environment
Setting stringName - The name of the environment Setting.
- lab
Account stringName - The name of the lab Account.
- lab
Name string - The name of the lab.
- resource
Group stringName - The name of the resource group.
- environment
Name string - The name of the environment.
- location string
- The location of the resource.
- provisioning
State string - The provisioning status of the resource.
- resource
Sets ResourceSet - The set of a VM and the setting id it was created for
- {[key: string]: string}
- The tags of the resource.
- unique
Identifier 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).
- environment
Setting StringName - The name of the environment Setting.
- lab
Account StringName - The name of the lab Account.
- lab
Name String - The name of the lab.
- resource
Group StringName - The name of the resource group.
- environment
Name String - The name of the environment.
- location String
- The location of the resource.
- provisioning
State String - The provisioning status of the resource.
- resource
Sets Property Map - The set of a VM and the setting id it was created for
- Map<String>
- The tags of the resource.
- unique
Identifier 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:
- Claimed
By stringUser Name - The name or email address of the user who has claimed the environment
- Claimed
By stringUser Object Id - The AAD object Id of the user who has claimed the environment
- Claimed
By 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.
- Is
Claimed bool - Is the environment claimed or not
- Last
Known stringPower State - Last known power state of the environment
- Latest
Operation 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.
- Network
Interface Pulumi.Azure Native. Lab Services. Outputs. Network Interface Response - Network details of the environment
- Password
Last stringReset - When the password was last reset on the environment.
- Total
Usage string - How long the environment has been used by a lab user
- Type string
- The type of the resource.
- Claimed
By stringUser Name - The name or email address of the user who has claimed the environment
- Claimed
By stringUser Object Id - The AAD object Id of the user who has claimed the environment
- Claimed
By 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.
- Is
Claimed bool - Is the environment claimed or not
- Last
Known stringPower State - Last known power state of the environment
- Latest
Operation LatestResult Operation Result Response - The details of the latest operation. ex: status, error
- Name string
- The name of the resource.
- Network
Interface NetworkInterface Response - Network details of the environment
- Password
Last stringReset - When the password was last reset on the environment.
- Total
Usage string - How long the environment has been used by a lab user
- Type string
- The type of the resource.
- claimed
By StringUser Name - The name or email address of the user who has claimed the environment
- claimed
By StringUser Object Id - The AAD object Id of the user who has claimed the environment
- claimed
By 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.
- is
Claimed Boolean - Is the environment claimed or not
- last
Known StringPower State - Last known power state of the environment
- latest
Operation LatestResult Operation Result Response - The details of the latest operation. ex: status, error
- name String
- The name of the resource.
- network
Interface NetworkInterface Response - Network details of the environment
- password
Last StringReset - When the password was last reset on the environment.
- total
Usage String - How long the environment has been used by a lab user
- type String
- The type of the resource.
- claimed
By stringUser Name - The name or email address of the user who has claimed the environment
- claimed
By stringUser Object Id - The AAD object Id of the user who has claimed the environment
- claimed
By 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.
- is
Claimed boolean - Is the environment claimed or not
- last
Known stringPower State - Last known power state of the environment
- latest
Operation LatestResult Operation Result Response - The details of the latest operation. ex: status, error
- name string
- The name of the resource.
- network
Interface NetworkInterface Response - Network details of the environment
- password
Last stringReset - When the password was last reset on the environment.
- total
Usage 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.
- claimed
By StringUser Name - The name or email address of the user who has claimed the environment
- claimed
By StringUser Object Id - The AAD object Id of the user who has claimed the environment
- claimed
By 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.
- is
Claimed Boolean - Is the environment claimed or not
- last
Known StringPower State - Last known power state of the environment
- latest
Operation Property MapResult - The details of the latest operation. ex: status, error
- name String
- The name of the resource.
- network
Interface Property Map - Network details of the environment
- password
Last StringReset - When the password was last reset on the environment.
- total
Usage String - How long the environment has been used by a lab user
- type String
- The type of the resource.
Supporting Types
LatestOperationResultResponse, LatestOperationResultResponseArgs
- Error
Code string - Error code on failure.
- Error
Message string - The error message.
- Http
Method string - The HttpMethod - PUT/POST/DELETE for the operation.
- Operation
Url string - The URL to use to check long-running operation status
- Request
Uri string - Request URI of the operation.
- Status string
- The current status of the operation.
- Error
Code string - Error code on failure.
- Error
Message string - The error message.
- Http
Method string - The HttpMethod - PUT/POST/DELETE for the operation.
- Operation
Url string - The URL to use to check long-running operation status
- Request
Uri string - Request URI of the operation.
- Status string
- The current status of the operation.
- error
Code String - Error code on failure.
- error
Message String - The error message.
- http
Method String - The HttpMethod - PUT/POST/DELETE for the operation.
- operation
Url String - The URL to use to check long-running operation status
- request
Uri String - Request URI of the operation.
- status String
- The current status of the operation.
- error
Code string - Error code on failure.
- error
Message string - The error message.
- http
Method string - The HttpMethod - PUT/POST/DELETE for the operation.
- operation
Url string - The URL to use to check long-running operation status
- request
Uri 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.
- error
Code String - Error code on failure.
- error
Message String - The error message.
- http
Method String - The HttpMethod - PUT/POST/DELETE for the operation.
- operation
Url String - The URL to use to check long-running operation status
- request
Uri String - Request URI of the operation.
- status String
- The current status of the operation.
NetworkInterfaceResponse, NetworkInterfaceResponseArgs
- Private
Ip 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 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 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 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
- private
Ip 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
- Resource
Setting stringId - resourceSettingId for the environment
- Vm
Resource stringId - VM resource Id for the environment
- Resource
Setting stringId - resourceSettingId for the environment
- Vm
Resource stringId - VM resource Id for the environment
- resource
Setting StringId - resourceSettingId for the environment
- vm
Resource StringId - VM resource Id for the environment
- resource
Setting stringId - resourceSettingId for the environment
- vm
Resource stringId - VM resource Id for the environment
- resource_
setting_ strid - resourceSettingId for the environment
- vm_
resource_ strid - VM resource Id for the environment
- resource
Setting StringId - resourceSettingId for the environment
- vm
Resource StringId - VM resource Id for the environment
ResourceSetResponse, ResourceSetResponseArgs
- Resource
Setting stringId - resourceSettingId for the environment
- Vm
Resource stringId - VM resource Id for the environment
- Resource
Setting stringId - resourceSettingId for the environment
- Vm
Resource stringId - VM resource Id for the environment
- resource
Setting StringId - resourceSettingId for the environment
- vm
Resource StringId - VM resource Id for the environment
- resource
Setting stringId - resourceSettingId for the environment
- vm
Resource stringId - VM resource Id for the environment
- resource_
setting_ strid - resourceSettingId for the environment
- vm_
resource_ strid - VM resource Id for the environment
- resource
Setting StringId - resourceSettingId for the environment
- vm
Resource StringId - VM resource Id for the environment
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0