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.34.0 published on Thursday, Mar 28, 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.34.0 published on Thursday, Mar 28, 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 (
    	"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=azure_native.automanage.AccountIdentityArgs(
            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

    new Account(name: string, args: AccountArgs, opts?: CustomResourceOptions);
    @overload
    def Account(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                account_name: Optional[str] = None,
                identity: Optional[AccountIdentityArgs] = None,
                location: Optional[str] = None,
                resource_group_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:automanage: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
    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} 
    

    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.34.0 published on Thursday, Mar 28, 2024 by Pulumi