1. Packages
  2. Azure Native
  3. API Docs
  4. automanage
  5. Account
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.63.0 published on Tuesday, Sep 24, 2024 by Pulumi

azure-native.automanage.Account

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.63.0 published on Tuesday, Sep 24, 2024 by Pulumi

    Definition of the Automanage account. Azure REST API version: 2020-06-30-preview. Prior API version in Azure Native 1.x: 2020-06-30-preview.

    Example Usage

    Create or update Automanage account

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var account = new AzureNative.Automanage.Account("account", new()
        {
            AccountName = "account",
            Identity = new AzureNative.Automanage.Inputs.AccountIdentityArgs
            {
                Type = AzureNative.Automanage.ResourceIdentityType.SystemAssigned,
            },
            Location = "East US",
            ResourceGroupName = "resourceGroup",
            Tags = 
            {
                { "Organization", "Administration" },
            },
        });
    
    });
    
    package main
    
    import (
    	automanage "github.com/pulumi/pulumi-azure-native-sdk/automanage/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := automanage.NewAccount(ctx, "account", &automanage.AccountArgs{
    			AccountName: pulumi.String("account"),
    			Identity: &automanage.AccountIdentityArgs{
    				Type: automanage.ResourceIdentityTypeSystemAssigned,
    			},
    			Location:          pulumi.String("East US"),
    			ResourceGroupName: pulumi.String("resourceGroup"),
    			Tags: pulumi.StringMap{
    				"Organization": pulumi.String("Administration"),
    			},
    		})
    		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.automanage.Account;
    import com.pulumi.azurenative.automanage.AccountArgs;
    import com.pulumi.azurenative.automanage.inputs.AccountIdentityArgs;
    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("account")
                .identity(AccountIdentityArgs.builder()
                    .type("SystemAssigned")
                    .build())
                .location("East US")
                .resourceGroupName("resourceGroup")
                .tags(Map.of("Organization", "Administration"))
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    account = azure_native.automanage.Account("account",
        account_name="account",
        identity={
            "type": azure_native.automanage.ResourceIdentityType.SYSTEM_ASSIGNED,
        },
        location="East US",
        resource_group_name="resourceGroup",
        tags={
            "Organization": "Administration",
        })
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const account = new azure_native.automanage.Account("account", {
        accountName: "account",
        identity: {
            type: azure_native.automanage.ResourceIdentityType.SystemAssigned,
        },
        location: "East US",
        resourceGroupName: "resourceGroup",
        tags: {
            Organization: "Administration",
        },
    });
    
    resources:
      account:
        type: azure-native:automanage:Account
        properties:
          accountName: account
          identity:
            type: SystemAssigned
          location: East US
          resourceGroupName: resourceGroup
          tags:
            Organization: Administration
    

    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,
                identity: Optional[AccountIdentityArgs] = None,
                location: 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:automanage: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 accountResource = new AzureNative.Automanage.Account("accountResource", new()
    {
        ResourceGroupName = "string",
        AccountName = "string",
        Identity = new AzureNative.Automanage.Inputs.AccountIdentityArgs
        {
            Type = AzureNative.Automanage.ResourceIdentityType.SystemAssigned,
        },
        Location = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := automanage.NewAccount(ctx, "accountResource", &automanage.AccountArgs{
    	ResourceGroupName: pulumi.String("string"),
    	AccountName:       pulumi.String("string"),
    	Identity: &automanage.AccountIdentityArgs{
    		Type: automanage.ResourceIdentityTypeSystemAssigned,
    	},
    	Location: pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var accountResource = new Account("accountResource", AccountArgs.builder()
        .resourceGroupName("string")
        .accountName("string")
        .identity(AccountIdentityArgs.builder()
            .type("SystemAssigned")
            .build())
        .location("string")
        .tags(Map.of("string", "string"))
        .build());
    
    account_resource = azure_native.automanage.Account("accountResource",
        resource_group_name="string",
        account_name="string",
        identity={
            "type": azure_native.automanage.ResourceIdentityType.SYSTEM_ASSIGNED,
        },
        location="string",
        tags={
            "string": "string",
        })
    
    const accountResource = new azure_native.automanage.Account("accountResource", {
        resourceGroupName: "string",
        accountName: "string",
        identity: {
            type: azure_native.automanage.ResourceIdentityType.SystemAssigned,
        },
        location: "string",
        tags: {
            string: "string",
        },
    });
    
    type: azure-native:automanage:Account
    properties:
        accountName: string
        identity:
            type: SystemAssigned
        location: string
        resourceGroupName: 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
    The name of the resource group. The name is case insensitive.
    AccountName string
    Name of the Automanage account.
    Identity Pulumi.AzureNative.Automanage.Inputs.AccountIdentity
    The identity of the Automanage account.
    Location string
    The geo-location where the resource lives
    Tags Dictionary<string, string>
    Resource tags.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    AccountName string
    Name of the Automanage account.
    Identity AccountIdentityArgs
    The identity of the Automanage account.
    Location string
    The geo-location where the resource lives
    Tags map[string]string
    Resource tags.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    accountName String
    Name of the Automanage account.
    identity AccountIdentity
    The identity of the Automanage account.
    location String
    The geo-location where the resource lives
    tags Map<String,String>
    Resource tags.
    resourceGroupName string
    The name of the resource group. The name is case insensitive.
    accountName string
    Name of the Automanage account.
    identity AccountIdentity
    The identity of the Automanage account.
    location string
    The geo-location where the resource lives
    tags {[key: string]: string}
    Resource tags.
    resource_group_name str
    The name of the resource group. The name is case insensitive.
    account_name str
    Name of the Automanage account.
    identity AccountIdentityArgs
    The identity of the Automanage account.
    location str
    The geo-location where the resource lives
    tags Mapping[str, str]
    Resource tags.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    accountName String
    Name of the Automanage account.
    identity Property Map
    The identity of the Automanage account.
    location String
    The geo-location where the resource lives
    tags Map<String>
    Resource tags.

    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
    The name of the resource
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The name of the resource
    type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The name of the resource
    type str
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

    Supporting Types

    AccountIdentity, AccountIdentityArgs

    Type Pulumi.AzureNative.Automanage.ResourceIdentityType
    The type of identity used for the Automanage account. Currently, the only supported type is 'SystemAssigned', which implicitly creates an identity.
    Type ResourceIdentityType
    The type of identity used for the Automanage account. Currently, the only supported type is 'SystemAssigned', which implicitly creates an identity.
    type ResourceIdentityType
    The type of identity used for the Automanage account. Currently, the only supported type is 'SystemAssigned', which implicitly creates an identity.
    type ResourceIdentityType
    The type of identity used for the Automanage account. Currently, the only supported type is 'SystemAssigned', which implicitly creates an identity.
    type ResourceIdentityType
    The type of identity used for the Automanage account. Currently, the only supported type is 'SystemAssigned', which implicitly creates an identity.
    type "SystemAssigned" | "None"
    The type of identity used for the Automanage account. Currently, the only supported type is 'SystemAssigned', which implicitly creates an identity.

    AccountIdentityResponse, AccountIdentityResponseArgs

    PrincipalId string
    The principal id of Automanage account identity.
    TenantId string
    The tenant id associated with the Automanage account.
    Type string
    The type of identity used for the Automanage account. Currently, the only supported type is 'SystemAssigned', which implicitly creates an identity.
    PrincipalId string
    The principal id of Automanage account identity.
    TenantId string
    The tenant id associated with the Automanage account.
    Type string
    The type of identity used for the Automanage account. Currently, the only supported type is 'SystemAssigned', which implicitly creates an identity.
    principalId String
    The principal id of Automanage account identity.
    tenantId String
    The tenant id associated with the Automanage account.
    type String
    The type of identity used for the Automanage account. Currently, the only supported type is 'SystemAssigned', which implicitly creates an identity.
    principalId string
    The principal id of Automanage account identity.
    tenantId string
    The tenant id associated with the Automanage account.
    type string
    The type of identity used for the Automanage account. Currently, the only supported type is 'SystemAssigned', which implicitly creates an identity.
    principal_id str
    The principal id of Automanage account identity.
    tenant_id str
    The tenant id associated with the Automanage account.
    type str
    The type of identity used for the Automanage account. Currently, the only supported type is 'SystemAssigned', which implicitly creates an identity.
    principalId String
    The principal id of Automanage account identity.
    tenantId String
    The tenant id associated with the Automanage account.
    type String
    The type of identity used for the Automanage account. Currently, the only supported type is 'SystemAssigned', which implicitly creates an identity.

    ResourceIdentityType, ResourceIdentityTypeArgs

    SystemAssigned
    SystemAssigned
    None
    None
    ResourceIdentityTypeSystemAssigned
    SystemAssigned
    ResourceIdentityTypeNone
    None
    SystemAssigned
    SystemAssigned
    None
    None
    SystemAssigned
    SystemAssigned
    None
    None
    SYSTEM_ASSIGNED
    SystemAssigned
    NONE
    None
    "SystemAssigned"
    SystemAssigned
    "None"
    None

    Import

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

    $ pulumi import azure-native:automanage:Account account /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automanage/accounts/{accountName} 
    

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

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.63.0 published on Tuesday, Sep 24, 2024 by Pulumi