azure-native.labservices.User
Explore with Pulumi AI
User of a lab that can register for and use virtual machines within the lab. Azure REST API version: 2022-08-01. Prior API version in Azure Native 1.x: 2018-10-15.
Other available API versions: 2018-10-15, 2023-06-07.
Example Usage
putUser
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var user = new AzureNative.LabServices.User("user", new()
{
AdditionalUsageQuota = "PT10H",
Email = "testuser@contoso.com",
LabName = "testlab",
ResourceGroupName = "testrg123",
UserName = "testuser",
});
});
package main
import (
labservices "github.com/pulumi/pulumi-azure-native-sdk/labservices/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := labservices.NewUser(ctx, "user", &labservices.UserArgs{
AdditionalUsageQuota: pulumi.String("PT10H"),
Email: pulumi.String("testuser@contoso.com"),
LabName: pulumi.String("testlab"),
ResourceGroupName: pulumi.String("testrg123"),
UserName: pulumi.String("testuser"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.labservices.User;
import com.pulumi.azurenative.labservices.UserArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var user = new User("user", UserArgs.builder()
.additionalUsageQuota("PT10H")
.email("testuser@contoso.com")
.labName("testlab")
.resourceGroupName("testrg123")
.userName("testuser")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
user = azure_native.labservices.User("user",
additional_usage_quota="PT10H",
email="testuser@contoso.com",
lab_name="testlab",
resource_group_name="testrg123",
user_name="testuser")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const user = new azure_native.labservices.User("user", {
additionalUsageQuota: "PT10H",
email: "testuser@contoso.com",
labName: "testlab",
resourceGroupName: "testrg123",
userName: "testuser",
});
resources:
user:
type: azure-native:labservices:User
properties:
additionalUsageQuota: PT10H
email: testuser@contoso.com
labName: testlab
resourceGroupName: testrg123
userName: testuser
Create User Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new User(name: string, args: UserArgs, opts?: CustomResourceOptions);
@overload
def User(resource_name: str,
args: UserArgs,
opts: Optional[ResourceOptions] = None)
@overload
def User(resource_name: str,
opts: Optional[ResourceOptions] = None,
email: Optional[str] = None,
lab_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
additional_usage_quota: Optional[str] = None,
user_name: Optional[str] = None)
func NewUser(ctx *Context, name string, args UserArgs, opts ...ResourceOption) (*User, error)
public User(string name, UserArgs args, CustomResourceOptions? opts = null)
type: azure-native:labservices:User
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 UserArgs
- 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 UserArgs
- 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 UserArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args UserArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args UserArgs
- 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 exampleuserResourceResourceFromLabservices = new AzureNative.LabServices.User("exampleuserResourceResourceFromLabservices", new()
{
Email = "string",
LabName = "string",
ResourceGroupName = "string",
AdditionalUsageQuota = "string",
UserName = "string",
});
example, err := labservices.NewUser(ctx, "exampleuserResourceResourceFromLabservices", &labservices.UserArgs{
Email: pulumi.String("string"),
LabName: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
AdditionalUsageQuota: pulumi.String("string"),
UserName: pulumi.String("string"),
})
var exampleuserResourceResourceFromLabservices = new User("exampleuserResourceResourceFromLabservices", UserArgs.builder()
.email("string")
.labName("string")
.resourceGroupName("string")
.additionalUsageQuota("string")
.userName("string")
.build());
exampleuser_resource_resource_from_labservices = azure_native.labservices.User("exampleuserResourceResourceFromLabservices",
email="string",
lab_name="string",
resource_group_name="string",
additional_usage_quota="string",
user_name="string")
const exampleuserResourceResourceFromLabservices = new azure_native.labservices.User("exampleuserResourceResourceFromLabservices", {
email: "string",
labName: "string",
resourceGroupName: "string",
additionalUsageQuota: "string",
userName: "string",
});
type: azure-native:labservices:User
properties:
additionalUsageQuota: string
email: string
labName: string
resourceGroupName: string
userName: string
User 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 User resource accepts the following input properties:
- Email string
- Email address of the user.
- Lab
Name string - The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Additional
Usage stringQuota - The amount of usage quota time the user gets in addition to the lab usage quota.
- User
Name string - The name of the user that uniquely identifies it within containing lab. Used in resource URIs.
- Email string
- Email address of the user.
- Lab
Name string - The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Additional
Usage stringQuota - The amount of usage quota time the user gets in addition to the lab usage quota.
- User
Name string - The name of the user that uniquely identifies it within containing lab. Used in resource URIs.
- email String
- Email address of the user.
- lab
Name String - The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- additional
Usage StringQuota - The amount of usage quota time the user gets in addition to the lab usage quota.
- user
Name String - The name of the user that uniquely identifies it within containing lab. Used in resource URIs.
- email string
- Email address of the user.
- lab
Name string - The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- additional
Usage stringQuota - The amount of usage quota time the user gets in addition to the lab usage quota.
- user
Name string - The name of the user that uniquely identifies it within containing lab. Used in resource URIs.
- email str
- Email address of the user.
- lab_
name str - The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- additional_
usage_ strquota - The amount of usage quota time the user gets in addition to the lab usage quota.
- user_
name str - The name of the user that uniquely identifies it within containing lab. Used in resource URIs.
- email String
- Email address of the user.
- lab
Name String - The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- additional
Usage StringQuota - The amount of usage quota time the user gets in addition to the lab usage quota.
- user
Name String - The name of the user that uniquely identifies it within containing lab. Used in resource URIs.
Outputs
All input properties are implicitly available as output properties. Additionally, the User resource produces the following output properties:
- Display
Name string - Display name of the user, for example user's full name.
- Id string
- The provider-assigned unique ID for this managed resource.
- Invitation
Sent string - Date and time when the invitation message was sent to the user.
- Invitation
State string - State of the invitation message for the user.
- Name string
- The name of the resource
- Provisioning
State string - Current provisioning state of the user resource.
- Registration
State string - State of the user's registration within the lab.
- System
Data Pulumi.Azure Native. Lab Services. Outputs. System Data Response - Metadata pertaining to creation and last modification of the user resource.
- Total
Usage string - How long the user has used their virtual machines in this lab.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Display
Name string - Display name of the user, for example user's full name.
- Id string
- The provider-assigned unique ID for this managed resource.
- Invitation
Sent string - Date and time when the invitation message was sent to the user.
- Invitation
State string - State of the invitation message for the user.
- Name string
- The name of the resource
- Provisioning
State string - Current provisioning state of the user resource.
- Registration
State string - State of the user's registration within the lab.
- System
Data SystemData Response - Metadata pertaining to creation and last modification of the user resource.
- Total
Usage string - How long the user has used their virtual machines in this lab.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- display
Name String - Display name of the user, for example user's full name.
- id String
- The provider-assigned unique ID for this managed resource.
- invitation
Sent String - Date and time when the invitation message was sent to the user.
- invitation
State String - State of the invitation message for the user.
- name String
- The name of the resource
- provisioning
State String - Current provisioning state of the user resource.
- registration
State String - State of the user's registration within the lab.
- system
Data SystemData Response - Metadata pertaining to creation and last modification of the user resource.
- total
Usage String - How long the user has used their virtual machines in this lab.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- display
Name string - Display name of the user, for example user's full name.
- id string
- The provider-assigned unique ID for this managed resource.
- invitation
Sent string - Date and time when the invitation message was sent to the user.
- invitation
State string - State of the invitation message for the user.
- name string
- The name of the resource
- provisioning
State string - Current provisioning state of the user resource.
- registration
State string - State of the user's registration within the lab.
- system
Data SystemData Response - Metadata pertaining to creation and last modification of the user resource.
- total
Usage string - How long the user has used their virtual machines in this lab.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- display_
name str - Display name of the user, for example user's full name.
- id str
- The provider-assigned unique ID for this managed resource.
- invitation_
sent str - Date and time when the invitation message was sent to the user.
- invitation_
state str - State of the invitation message for the user.
- name str
- The name of the resource
- provisioning_
state str - Current provisioning state of the user resource.
- registration_
state str - State of the user's registration within the lab.
- system_
data SystemData Response - Metadata pertaining to creation and last modification of the user resource.
- total_
usage str - How long the user has used their virtual machines in this lab.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- display
Name String - Display name of the user, for example user's full name.
- id String
- The provider-assigned unique ID for this managed resource.
- invitation
Sent String - Date and time when the invitation message was sent to the user.
- invitation
State String - State of the invitation message for the user.
- name String
- The name of the resource
- provisioning
State String - Current provisioning state of the user resource.
- registration
State String - State of the user's registration within the lab.
- system
Data Property Map - Metadata pertaining to creation and last modification of the user resource.
- total
Usage String - How long the user has used their virtual machines in this lab.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Supporting Types
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:labservices:User default /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/users/{userName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0