UserArgs

data class UserArgs(val identity: Output<UserIdentityArgs>? = null, val labName: Output<String>? = null, val location: Output<String>? = null, val name: Output<String>? = null, val resourceGroupName: Output<String>? = null, val secretStore: Output<UserSecretStoreArgs>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<UserArgs>

Profile of a lab user. Uses Azure REST API version 2018-09-15. In version 2.x of the Azure Native provider, it used API version 2018-09-15.

Example Usage

Users_CreateOrUpdate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var user = new AzureNative.DevTestLab.User("user", new()
{
Identity = new AzureNative.DevTestLab.Inputs.UserIdentityArgs
{
AppId = "{appId}",
ObjectId = "{objectId}",
PrincipalId = "{principalId}",
PrincipalName = "{principalName}",
TenantId = "{tenantId}",
},
LabName = "{devtestlabName}",
Location = "{location}",
Name = "{userName}",
ResourceGroupName = "resourceGroupName",
SecretStore = new AzureNative.DevTestLab.Inputs.UserSecretStoreArgs
{
KeyVaultId = "{keyVaultId}",
KeyVaultUri = "{keyVaultUri}",
},
Tags =
{
{ "tagName1", "tagValue1" },
},
});
});
package main
import (
devtestlab "github.com/pulumi/pulumi-azure-native-sdk/devtestlab/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := devtestlab.NewUser(ctx, "user", &devtestlab.UserArgs{
Identity: &devtestlab.UserIdentityArgs{
AppId: pulumi.String("{appId}"),
ObjectId: pulumi.String("{objectId}"),
PrincipalId: pulumi.String("{principalId}"),
PrincipalName: pulumi.String("{principalName}"),
TenantId: pulumi.String("{tenantId}"),
},
LabName: pulumi.String("{devtestlabName}"),
Location: pulumi.String("{location}"),
Name: pulumi.String("{userName}"),
ResourceGroupName: pulumi.String("resourceGroupName"),
SecretStore: &devtestlab.UserSecretStoreArgs{
KeyVaultId: pulumi.String("{keyVaultId}"),
KeyVaultUri: pulumi.String("{keyVaultUri}"),
},
Tags: pulumi.StringMap{
"tagName1": pulumi.String("tagValue1"),
},
})
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.devtestlab.User;
import com.pulumi.azurenative.devtestlab.UserArgs;
import com.pulumi.azurenative.devtestlab.inputs.UserIdentityArgs;
import com.pulumi.azurenative.devtestlab.inputs.UserSecretStoreArgs;
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()
.identity(UserIdentityArgs.builder()
.appId("{appId}")
.objectId("{objectId}")
.principalId("{principalId}")
.principalName("{principalName}")
.tenantId("{tenantId}")
.build())
.labName("{devtestlabName}")
.location("{location}")
.name("{userName}")
.resourceGroupName("resourceGroupName")
.secretStore(UserSecretStoreArgs.builder()
.keyVaultId("{keyVaultId}")
.keyVaultUri("{keyVaultUri}")
.build())
.tags(Map.of("tagName1", "tagValue1"))
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:devtestlab:User {userName} /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{name}

Constructors

Link copied to clipboard
constructor(identity: Output<UserIdentityArgs>? = null, labName: Output<String>? = null, location: Output<String>? = null, name: Output<String>? = null, resourceGroupName: Output<String>? = null, secretStore: Output<UserSecretStoreArgs>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val identity: Output<UserIdentityArgs>? = null

The identity of the user.

Link copied to clipboard
val labName: Output<String>? = null

The name of the lab.

Link copied to clipboard
val location: Output<String>? = null

The location of the resource.

Link copied to clipboard
val name: Output<String>? = null

The name of the user profile.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group.

Link copied to clipboard
val secretStore: Output<UserSecretStoreArgs>? = null

The secret store of the user.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

The tags of the resource.

Functions

Link copied to clipboard
open override fun toJava(): UserArgs