Azure Native

Pulumi Official
Package maintained by Pulumi
v1.67.0 published on Tuesday, Jul 12, 2022 by Pulumi

Account

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

Example Usage

Create an account resource

using Pulumi;
using AzureNative = Pulumi.AzureNative;

class MyStack : Stack
{
    public MyStack()
    {
        var account = new AzureNative.VisualStudio.Account("account", new AzureNative.VisualStudio.AccountArgs
        {
            AccountName = "Example",
            Location = "Central US",
            OperationType = "create",
            Properties = ,
            ResourceGroupName = "VS-Example-Group",
            ResourceName = "Example",
            Tags = ,
        });
    }

}
package main

import (
	visualstudio "github.com/pulumi/pulumi-azure-native/sdk/go/azure/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 java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

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 pulumi
import pulumi_azure_native as azure_native

account = azure_native.visualstudio.Account("account",
    account_name="Example",
    location="Central US",
    operation_type="create",
    properties={},
    resource_group_name="VS-Example-Group",
    resource_name_="Example",
    tags={})
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const account = new azure_native.visualstudio.Account("account", {
    accountName: "Example",
    location: "Central US",
    operationType: "create",
    properties: {},
    resourceGroupName: "VS-Example-Group",
    resourceName: "Example",
    tags: {},
});
resources:
  account:
    type: azure-native:visualstudio:Account
    properties:
      accountName: Example
      location: Central US
      operationType: create
      properties: {}
      resourceGroupName: VS-Example-Group
      resourceName: Example
      tags: {}

Create a Account Resource

new Account(name: string, args: AccountArgs, opts?: CustomResourceOptions);
@overload
def Account(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            account_name: Optional[str] = None,
            location: Optional[str] = None,
            operation_type: Optional[Union[str, AccountResourceRequestOperationType]] = None,
            properties: Optional[Mapping[str, str]] = None,
            resource_group_name: Optional[str] = None,
            resource_name_: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None)
@overload
def Account(resource_name: str,
            args: AccountArgs,
            opts: Optional[ResourceOptions] = None)
func NewAccount(ctx *Context, name string, args AccountArgs, opts ...ResourceOption) (*Account, error)
public Account(string name, AccountArgs args, CustomResourceOptions? opts = null)
public Account(String name, AccountArgs args)
public Account(String name, AccountArgs args, CustomResourceOptions options)
type: azure-native:visualstudio:Account
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args AccountArgs
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 AccountArgs
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 AccountArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args AccountArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args AccountArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Account 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 Account resource accepts the following input properties:

ResourceGroupName string

Name of the resource group within the Azure subscription.

AccountName string

The account name.

Location string

The Azure instance location.

OperationType string | Pulumi.AzureNative.VisualStudio.AccountResourceRequestOperationType

The type of the operation.

Properties Dictionary<string, string>

The custom properties of the resource.

ResourceName string

Name of the resource.

Tags Dictionary<string, string>

The custom tags of the resource.

ResourceGroupName string

Name of the resource group within the Azure subscription.

AccountName string

The account name.

Location string

The Azure instance location.

OperationType string | AccountResourceRequestOperationType

The type of the operation.

Properties map[string]string

The custom properties of the resource.

ResourceName string

Name of the resource.

Tags map[string]string

The custom tags of the resource.

resourceGroupName String

Name of the resource group within the Azure subscription.

accountName String

The account name.

location String

The Azure instance location.

operationType String | AccountResourceRequestOperationType

The type of the operation.

properties Map<String,String>

The custom properties of the resource.

resourceName String

Name of the resource.

tags Map<String,String>

The custom tags of the resource.

resourceGroupName string

Name of the resource group within the Azure subscription.

accountName string

The account name.

location string

The Azure instance location.

operationType string | AccountResourceRequestOperationType

The type of the operation.

properties {[key: string]: string}

The custom properties of the resource.

resourceName string

Name of the resource.

tags {[key: string]: string}

The custom tags of the resource.

resource_group_name str

Name of the resource group within the Azure subscription.

account_name str

The account name.

location str

The Azure instance location.

operation_type str | AccountResourceRequestOperationType

The type of the operation.

properties Mapping[str, str]

The custom properties of the resource.

resource_name str

Name of the resource.

tags Mapping[str, str]

The custom tags of the resource.

resourceGroupName String

Name of the resource group within the Azure subscription.

accountName String

The account name.

location String

The Azure instance location.

operationType String | "unknown" | "create" | "update" | "link"

The type of the operation.

properties Map<String>

The custom properties of the resource.

resourceName String

Name of the resource.

tags Map<String>

The custom tags of the resource.

Outputs

All input properties are implicitly available as output properties. Additionally, the Account resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Name string

Resource name.

Type string

Resource type.

Id string

The provider-assigned unique ID for this managed resource.

Name string

Resource name.

Type string

Resource type.

id String

The provider-assigned unique ID for this managed resource.

name String

Resource name.

type String

Resource type.

id string

The provider-assigned unique ID for this managed resource.

name string

Resource name.

type string

Resource type.

id str

The provider-assigned unique ID for this managed resource.

name str

Resource name.

type str

Resource type.

id String

The provider-assigned unique ID for this managed resource.

name String

Resource name.

type String

Resource type.

Supporting Types

AccountResourceRequestOperationType

Unknown
unknown
Create
create
Update
update
Link
link
AccountResourceRequestOperationTypeUnknown
unknown
AccountResourceRequestOperationTypeCreate
create
AccountResourceRequestOperationTypeUpdate
update
AccountResourceRequestOperationTypeLink
link
Unknown
unknown
Create
create
Update
update
Link
link
Unknown
unknown
Create
create
Update
update
Link
link
UNKNOWN
unknown
CREATE
create
UPDATE
update
LINK
link
"unknown"
unknown
"create"
create
"update"
update
"link"
link

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 

Package Details

Repository
https://github.com/pulumi/pulumi-azure-native
License
Apache-2.0