Account

An account data transfer object. API Version: 2020-09-01.

Example Usage

Accounts_Create

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var account = new AzureNative.DataShare.Account("account", new()
{
AccountName = "Account1",
Identity = new AzureNative.DataShare.Inputs.IdentityArgs
{
Type = "SystemAssigned",
},
Location = "West US 2",
ResourceGroupName = "SampleResourceGroup",
Tags =
{
{ "tag1", "Red" },
{ "tag2", "White" },
},
});
});
package main
import (
datashare "github.com/pulumi/pulumi-azure-native/sdk/go/azure/datashare"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := datashare.NewAccount(ctx, "account", &datashare.AccountArgs{
AccountName: pulumi.String("Account1"),
Identity: &datashare.IdentityArgs{
Type: pulumi.String("SystemAssigned"),
},
Location: pulumi.String("West US 2"),
ResourceGroupName: pulumi.String("SampleResourceGroup"),
Tags: pulumi.StringMap{
"tag1": pulumi.String("Red"),
"tag2": pulumi.String("White"),
},
})
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.datashare.Account;
import com.pulumi.azurenative.datashare.AccountArgs;
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 account = new Account("account", AccountArgs.builder()
.accountName("Account1")
.identity(Map.of("type", "SystemAssigned"))
.location("West US 2")
.resourceGroupName("SampleResourceGroup")
.tags(Map.ofEntries(
Map.entry("tag1", "Red"),
Map.entry("tag2", "White")
))
.build());
}
}

Import

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

$ pulumi import azure-native:datashare:Account Account1 /subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1

Properties

Link copied to clipboard
val createdAt: Output<String>

Time at which the account was created.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

Identity Info on the Account

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

Location of the azure resource.

Link copied to clipboard
val name: Output<String>

Name of the azure resource

Link copied to clipboard

Provisioning state of the Account

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

System Data of the Azure resource.

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

Tags on the azure resource.

Link copied to clipboard
val type: Output<String>

Type of the azure resource

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val userEmail: Output<String>

Email of the user who created the resource

Link copied to clipboard
val userName: Output<String>

Name of the user who created the resource