AccountArgs

data class AccountArgs(val accountName: Output<String>? = null, val location: Output<String>? = null, val operationType: Output<Either<String, AccountResourceRequestOperationType>>? = null, val properties: Output<Map<String, String>>? = null, val resourceGroupName: Output<String>? = null, val resourceName: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<AccountArgs>

The response to an account resource GET request. API Version: 2014-04-01-preview.

Example Usage

Create an account resource

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var account = new AzureNative.VisualStudio.Account("account", new()
{
AccountName = "Example",
Location = "Central US",
OperationType = "create",
Properties = null,
ResourceGroupName = "VS-Example-Group",
ResourceName = "Example",
Tags = null,
});
});
package main
import (
visualstudio "github.com/pulumi/pulumi-azure-native-sdk/visualstudio"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := visualstudio.NewAccount(ctx, "account", &visualstudio.AccountArgs{
AccountName: pulumi.String("Example"),
Location: pulumi.String("Central US"),
OperationType: pulumi.String("create"),
Properties: nil,
ResourceGroupName: pulumi.String("VS-Example-Group"),
ResourceName: pulumi.String("Example"),
Tags: nil,
})
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.visualstudio.Account;
import com.pulumi.azurenative.visualstudio.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("Example")
.location("Central US")
.operationType("create")
.properties()
.resourceGroupName("VS-Example-Group")
.resourceName("Example")
.tags()
.build());
}
}

Import

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

$ pulumi import azure-native:visualstudio:Account VS-Example-Group /subscriptions/0de7f055-dbea-498d-8e9e-da287eedca90/resourceGroups/VS-Example-Group/providers/Microsoft.VisualStudio/account/Example

Constructors

Link copied to clipboard
constructor(accountName: Output<String>? = null, location: Output<String>? = null, operationType: Output<Either<String, AccountResourceRequestOperationType>>? = null, properties: Output<Map<String, String>>? = null, resourceGroupName: Output<String>? = null, resourceName: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

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

The account name.

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

The Azure instance location.

Link copied to clipboard

The type of the operation.

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

The custom properties of the resource.

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

Name of the resource group within the Azure subscription.

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

Name of the resource.

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

The custom tags of the resource.

Functions

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