1. Packages
  2. Azure Native v1
  3. API Docs
  4. visualstudio
  5. Account
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

azure-native.visualstudio.Account

Explore with Pulumi AI

azure-native-v1 logo
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

    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 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 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: "string",
    	AccountName:       "string",
    	Location:          "string",
    	OperationType:     "string",
    	Properties: map[string]interface{}{
    		"string": "string",
    	},
    	ResourceName: "string",
    	Tags: map[string]interface{}{
    		"string": "string",
    	},
    })
    
    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());
    
    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

    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, 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/0de7f055-dbea-498d-8e9e-da287eedca90/resourceGroups/VS-Example-Group/providers/Microsoft.VisualStudio/account/Example 
    

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

    Package Details

    Repository
    azure-native-v1 pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native-v1 logo
    These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
    Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi