azure-native.labservices.User
Explore with Pulumi AI
The User registered to a lab 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:User myresource1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/users/{userName} 
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,
         lab_account_name: Optional[str] = None,
         lab_name: Optional[str] = None,
         resource_group_name: Optional[str] = None,
         location: Optional[str] = None,
         provisioning_state: Optional[str] = None,
         tags: Optional[Mapping[str, str]] = None,
         unique_identifier: 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()
{
    LabAccountName = "string",
    LabName = "string",
    ResourceGroupName = "string",
    Location = "string",
    ProvisioningState = "string",
    Tags = 
    {
        { "string", "string" },
    },
    UniqueIdentifier = "string",
    UserName = "string",
});
example, err := labservices.NewUser(ctx, "exampleuserResourceResourceFromLabservices", &labservices.UserArgs{
	LabAccountName:    "string",
	LabName:           "string",
	ResourceGroupName: "string",
	Location:          "string",
	ProvisioningState: "string",
	Tags: map[string]interface{}{
		"string": "string",
	},
	UniqueIdentifier: "string",
	UserName:         "string",
})
var exampleuserResourceResourceFromLabservices = new User("exampleuserResourceResourceFromLabservices", UserArgs.builder()
    .labAccountName("string")
    .labName("string")
    .resourceGroupName("string")
    .location("string")
    .provisioningState("string")
    .tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
    .uniqueIdentifier("string")
    .userName("string")
    .build());
exampleuser_resource_resource_from_labservices = azure_native.labservices.User("exampleuserResourceResourceFromLabservices",
    lab_account_name=string,
    lab_name=string,
    resource_group_name=string,
    location=string,
    provisioning_state=string,
    tags={
        string: string,
    },
    unique_identifier=string,
    user_name=string)
const exampleuserResourceResourceFromLabservices = new azure_native.labservices.User("exampleuserResourceResourceFromLabservices", {
    labAccountName: "string",
    labName: "string",
    resourceGroupName: "string",
    location: "string",
    provisioningState: "string",
    tags: {
        string: "string",
    },
    uniqueIdentifier: "string",
    userName: "string",
});
type: azure-native:labservices:User
properties:
    labAccountName: string
    labName: string
    location: string
    provisioningState: string
    resourceGroupName: string
    tags:
        string: string
    uniqueIdentifier: 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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The User resource accepts the following input properties:
- LabAccount stringName 
- The name of the lab Account.
- LabName string
- The name of the lab.
- ResourceGroup stringName 
- The name of the resource group.
- Location string
- The location of the resource.
- ProvisioningState string
- The provisioning status of the resource.
- Dictionary<string, string>
- The tags of the resource.
- UniqueIdentifier string
- The unique immutable identifier of a resource (Guid).
- UserName string
- The name of the user.
- LabAccount stringName 
- The name of the lab Account.
- LabName string
- The name of the lab.
- ResourceGroup stringName 
- The name of the resource group.
- Location string
- The location of the resource.
- ProvisioningState string
- The provisioning status of the resource.
- map[string]string
- The tags of the resource.
- UniqueIdentifier string
- The unique immutable identifier of a resource (Guid).
- UserName string
- The name of the user.
- labAccount StringName 
- The name of the lab Account.
- labName String
- The name of the lab.
- resourceGroup StringName 
- The name of the resource group.
- location String
- The location of the resource.
- provisioningState String
- The provisioning status of the resource.
- Map<String,String>
- The tags of the resource.
- uniqueIdentifier String
- The unique immutable identifier of a resource (Guid).
- userName String
- The name of the user.
- labAccount stringName 
- The name of the lab Account.
- labName string
- The name of the lab.
- resourceGroup stringName 
- The name of the resource group.
- location string
- The location of the resource.
- provisioningState string
- The provisioning status of the resource.
- {[key: string]: string}
- The tags of the resource.
- uniqueIdentifier string
- The unique immutable identifier of a resource (Guid).
- userName string
- The name of the user.
- 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.
- location str
- The location of the resource.
- provisioning_state str
- The provisioning status of the resource.
- Mapping[str, str]
- The tags of the resource.
- unique_identifier str
- The unique immutable identifier of a resource (Guid).
- user_name str
- The name of the user.
- labAccount StringName 
- The name of the lab Account.
- labName String
- The name of the lab.
- resourceGroup StringName 
- The name of the resource group.
- location String
- The location of the resource.
- provisioningState String
- The provisioning status of the resource.
- Map<String>
- The tags of the resource.
- uniqueIdentifier String
- The unique immutable identifier of a resource (Guid).
- userName String
- The name of the user.
Outputs
All input properties are implicitly available as output properties. Additionally, the User resource produces the following output properties:
- Email string
- The user email address, as it was specified during registration.
- FamilyName string
- The user family name, as it was specified during registration.
- GivenName string
- The user given name, as it was specified during registration.
- Id string
- The provider-assigned unique ID for this managed resource.
- 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.
- TenantId string
- The user tenant ID, as it was specified during registration.
- TotalUsage string
- How long the user has used his VMs in this lab
- Type string
- The type of the resource.
- Email string
- The user email address, as it was specified during registration.
- FamilyName string
- The user family name, as it was specified during registration.
- GivenName string
- The user given name, as it was specified during registration.
- Id string
- The provider-assigned unique ID for this managed resource.
- LatestOperation LatestResult Operation Result Response 
- The details of the latest operation. ex: status, error
- Name string
- The name of the resource.
- TenantId string
- The user tenant ID, as it was specified during registration.
- TotalUsage string
- How long the user has used his VMs in this lab
- Type string
- The type of the resource.
- email String
- The user email address, as it was specified during registration.
- familyName String
- The user family name, as it was specified during registration.
- givenName String
- The user given name, as it was specified during registration.
- id String
- The provider-assigned unique ID for this managed resource.
- latestOperation LatestResult Operation Result Response 
- The details of the latest operation. ex: status, error
- name String
- The name of the resource.
- tenantId String
- The user tenant ID, as it was specified during registration.
- totalUsage String
- How long the user has used his VMs in this lab
- type String
- The type of the resource.
- email string
- The user email address, as it was specified during registration.
- familyName string
- The user family name, as it was specified during registration.
- givenName string
- The user given name, as it was specified during registration.
- id string
- The provider-assigned unique ID for this managed resource.
- latestOperation LatestResult Operation Result Response 
- The details of the latest operation. ex: status, error
- name string
- The name of the resource.
- tenantId string
- The user tenant ID, as it was specified during registration.
- totalUsage string
- How long the user has used his VMs in this lab
- type string
- The type of the resource.
- email str
- The user email address, as it was specified during registration.
- family_name str
- The user family name, as it was specified during registration.
- given_name str
- The user given name, as it was specified during registration.
- id str
- The provider-assigned unique ID for this managed resource.
- latest_operation_ Latestresult Operation Result Response 
- The details of the latest operation. ex: status, error
- name str
- The name of the resource.
- tenant_id str
- The user tenant ID, as it was specified during registration.
- total_usage str
- How long the user has used his VMs in this lab
- type str
- The type of the resource.
- email String
- The user email address, as it was specified during registration.
- familyName String
- The user family name, as it was specified during registration.
- givenName String
- The user given name, as it was specified during registration.
- id String
- The provider-assigned unique ID for this managed resource.
- latestOperation Property MapResult 
- The details of the latest operation. ex: status, error
- name String
- The name of the resource.
- tenantId String
- The user tenant ID, as it was specified during registration.
- totalUsage String
- How long the user has used his VMs in this lab
- 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.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0