azure-native.visualstudio.Account
Explore with Pulumi AI
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,
});
});
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
})
}
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 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={})
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: {},
});
resources:
account:
type: azure-native:visualstudio:Account
properties:
accountName: Example
location: Central US
operationType: create
properties: {}
resourceGroupName: VS-Example-Group
resourceName: Example
tags: {}
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 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.
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" },
},
});
example, err := visualstudio.NewAccount(ctx, "exampleaccountResourceResourceFromVisualstudio", &visualstudio.AccountArgs{
ResourceGroupName: pulumi.String("string"),
AccountName: pulumi.String("string"),
Location: pulumi.String("string"),
OperationType: pulumi.String("string"),
Properties: pulumi.StringMap{
"string": pulumi.String("string"),
},
ResourceName: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var exampleaccountResourceResourceFromVisualstudio = new Account("exampleaccountResourceResourceFromVisualstudio", AccountArgs.builder()
.resourceGroupName("string")
.accountName("string")
.location("string")
.operationType("string")
.properties(Map.of("string", "string"))
.resourceName("string")
.tags(Map.of("string", "string"))
.build());
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",
})
const exampleaccountResourceResourceFromVisualstudio = new azure_native.visualstudio.Account("exampleaccountResourceResourceFromVisualstudio", {
resourceGroupName: "string",
accountName: "string",
location: "string",
operationType: "string",
properties: {
string: "string",
},
resourceName: "string",
tags: {
string: "string",
},
});
type: azure-native:visualstudio:Account
properties:
accountName: string
location: string
operationType: string
properties:
string: string
resourceGroupName: string
resourceName: string
tags:
string: string
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:
- Resource
Group stringName - Name of the resource group within the Azure subscription.
- Account
Name string - The account name.
- Location string
- The Azure instance location.
- Operation
Type string | Pulumi.Azure Native. Visual Studio. Account Resource Request Operation Type - The type of the operation.
- Properties Dictionary<string, string>
- The custom properties of the resource.
- Resource
Name string - Name of the resource.
- Dictionary<string, string>
- The custom tags of the resource.
- Resource
Group stringName - Name of the resource group within the Azure subscription.
- Account
Name string - The account name.
- Location string
- The Azure instance location.
- Operation
Type string | AccountResource Request Operation Type - The type of the operation.
- Properties map[string]string
- The custom properties of the resource.
- Resource
Name string - Name of the resource.
- map[string]string
- The custom tags of the resource.
- resource
Group StringName - Name of the resource group within the Azure subscription.
- account
Name String - The account name.
- location String
- The Azure instance location.
- operation
Type String | AccountResource Request Operation Type - The type of the operation.
- properties Map<String,String>
- The custom properties of the resource.
- resource
Name String - Name of the resource.
- Map<String,String>
- The custom tags of the resource.
- resource
Group stringName - Name of the resource group within the Azure subscription.
- account
Name string - The account name.
- location string
- The Azure instance location.
- operation
Type string | AccountResource Request Operation Type - The type of the operation.
- properties {[key: string]: string}
- The custom properties of the resource.
- resource
Name string - Name of the resource.
- {[key: string]: string}
- The custom tags of the resource.
- resource_
group_ strname - Name of the resource group within the Azure subscription.
- account_
name str - The account name.
- location str
- The Azure instance location.
- operation_
type str | AccountResource Request Operation Type - The type of the operation.
- properties Mapping[str, str]
- The custom properties of the resource.
- resource_
name str - Name of the resource.
- Mapping[str, str]
- The custom tags of the resource.
- resource
Group StringName - Name of the resource group within the Azure subscription.
- account
Name String - The account name.
- location String
- The Azure instance location.
- operation
Type String | "unknown" | "create" | "update" | "link" - The type of the operation.
- properties Map<String>
- The custom properties of the resource.
- resource
Name String - Name of the resource.
- 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:
Supporting Types
AccountResourceRequestOperationType, AccountResourceRequestOperationTypeArgs
- Unknown
- unknown
- Create
- create
- Update
- update
- Link
- link
- Account
Resource Request Operation Type Unknown - unknown
- Account
Resource Request Operation Type Create - create
- Account
Resource Request Operation Type Update - update
- Account
Resource Request Operation Type 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
- "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}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0