1. Packages
  2. Azure Native v2
  3. API Docs
  4. visualstudio
  5. Account
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

azure-native-v2.visualstudio.Account

Explore with Pulumi AI

These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

The response to an account resource GET request. Azure REST API version: 2017-11-01-preview. Prior API version in Azure Native 1.x: 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 = AzureNative.VisualStudio.AccountResourceRequestOperationType.Create,
        Properties = null,
        ResourceGroupName = "VS-Example-Group",
        ResourceName = "Example",
        Tags = null,
    });

});
Copy
package main

import (
	visualstudio "github.com/pulumi/pulumi-azure-native-sdk/visualstudio/v2"
	"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(visualstudio.AccountResourceRequestOperationTypeCreate),
			Properties:        pulumi.StringMap{},
			ResourceGroupName: pulumi.String("VS-Example-Group"),
			ResourceName:      pulumi.String("Example"),
			Tags:              pulumi.StringMap{},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
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());

    }
}
Copy
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: azure_native.visualstudio.AccountResourceRequestOperationType.Create,
    properties: {},
    resourceGroupName: "VS-Example-Group",
    resourceName: "Example",
    tags: {},
});
Copy
import pulumi
import pulumi_azure_native as azure_native

account = azure_native.visualstudio.Account("account",
    account_name="Example",
    location="Central US",
    operation_type=azure_native.visualstudio.AccountResourceRequestOperationType.CREATE,
    properties={},
    resource_group_name="VS-Example-Group",
    resource_name_="Example",
    tags={})
Copy
resources:
  account:
    type: azure-native:visualstudio:Account
    properties:
      accountName: Example
      location: Central US
      operationType: create
      properties: {}
      resourceGroupName: VS-Example-Group
      resourceName: Example
      tags: {}
Copy

Create Account Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new Account(name: string, args: AccountArgs, opts?: CustomResourceOptions);
@overload
def Account(resource_name: str,
            args: AccountArgs,
            opts: Optional[ResourceOptions] = None)

@overload
def Account(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            resource_group_name: Optional[str] = None,
            account_name: Optional[str] = None,
            location: Optional[str] = None,
            operation_type: Optional[Union[str, AccountResourceRequestOperationType]] = None,
            properties: Optional[Mapping[str, str]] = None,
            resource_name_: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = 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.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. AccountArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. AccountArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. AccountArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. AccountArgs
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 exampleaccountResourceResourceFromVisualstudio = new AzureNative.Visualstudio.Account("exampleaccountResourceResourceFromVisualstudio", new()
{
    ResourceGroupName = "string",
    AccountName = "string",
    Location = "string",
    OperationType = "string",
    Properties = 
    {
        { "string", "string" },
    },
    ResourceName = "string",
    Tags = 
    {
        { "string", "string" },
    },
});
Copy
example, err := visualstudio.NewAccount(ctx, "exampleaccountResourceResourceFromVisualstudio", &visualstudio.AccountArgs{
	ResourceGroupName: "string",
	AccountName:       "string",
	Location:          "string",
	OperationType:     "string",
	Properties: map[string]interface{}{
		"string": "string",
	},
	ResourceName: "string",
	Tags: map[string]interface{}{
		"string": "string",
	},
})
Copy
var exampleaccountResourceResourceFromVisualstudio = new Account("exampleaccountResourceResourceFromVisualstudio", AccountArgs.builder()
    .resourceGroupName("string")
    .accountName("string")
    .location("string")
    .operationType("string")
    .properties(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
    .resourceName("string")
    .tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
    .build());
Copy
exampleaccount_resource_resource_from_visualstudio = azure_native.visualstudio.Account("exampleaccountResourceResourceFromVisualstudio",
    resource_group_name=string,
    account_name=string,
    location=string,
    operation_type=string,
    properties={
        string: string,
    },
    resource_name_=string,
    tags={
        string: string,
    })
Copy
const exampleaccountResourceResourceFromVisualstudio = new azure_native.visualstudio.Account("exampleaccountResourceResourceFromVisualstudio", {
    resourceGroupName: "string",
    accountName: "string",
    location: "string",
    operationType: "string",
    properties: {
        string: "string",
    },
    resourceName: "string",
    tags: {
        string: "string",
    },
});
Copy
type: azure-native:visualstudio:Account
properties:
    accountName: string
    location: string
    operationType: string
    properties:
        string: string
    resourceGroupName: string
    resourceName: string
    tags:
        string: string
Copy

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

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The Account resource accepts the following input properties:

ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
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 Changes to this property will trigger replacement. string
Name of the resource.
Tags Dictionary<string, string>
The custom tags of the resource.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
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 Changes to this property will trigger replacement. string
Name of the resource.
Tags map[string]string
The custom tags of the resource.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
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 Changes to this property will trigger replacement. String
Name of the resource.
tags Map<String,String>
The custom tags of the resource.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
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 Changes to this property will trigger replacement. string
Name of the resource.
tags {[key: string]: string}
The custom tags of the resource.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
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 Changes to this property will trigger replacement. str
Name of the resource.
tags Mapping[str, str]
The custom tags of the resource.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
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 Changes to this property will trigger replacement. 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
, AccountResourceRequestOperationTypeArgs

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/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{resourceName} 
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
azure-native-v2 pulumi/pulumi-azure-native
License
Apache-2.0
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi