1. Packages
  2. Azure Classic
  3. API Docs
  4. netapp
  5. Account

We recommend using Azure Native.

Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
azure logo

We recommend using Azure Native.

Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi

    Manages a NetApp Account.

    NOTE: Azure allows only one active directory can be joined to a single subscription at a time for NetApp Account.

    NetApp Account Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
    const exampleAccount = new azure.netapp.Account("exampleAccount", {
        resourceGroupName: exampleResourceGroup.name,
        location: exampleResourceGroup.location,
        activeDirectory: {
            username: "aduser",
            password: "aduserpwd",
            smbServerName: "SMBSERVER",
            dnsServers: ["1.2.3.4"],
            domain: "westcentralus.com",
            organizationalUnit: "OU=FirstLevel",
        },
    });
    
    import pulumi
    import pulumi_azure as azure
    
    example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
    example_account = azure.netapp.Account("exampleAccount",
        resource_group_name=example_resource_group.name,
        location=example_resource_group.location,
        active_directory=azure.netapp.AccountActiveDirectoryArgs(
            username="aduser",
            password="aduserpwd",
            smb_server_name="SMBSERVER",
            dns_servers=["1.2.3.4"],
            domain="westcentralus.com",
            organizational_unit="OU=FirstLevel",
        ))
    
    using Pulumi;
    using Azure = Pulumi.Azure;
    
    class MyStack : Stack
    {
        public MyStack()
        {
            var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
            {
                Location = "West Europe",
            });
            var exampleAccount = new Azure.NetApp.Account("exampleAccount", new Azure.NetApp.AccountArgs
            {
                ResourceGroupName = exampleResourceGroup.Name,
                Location = exampleResourceGroup.Location,
                ActiveDirectory = new Azure.NetApp.Inputs.AccountActiveDirectoryArgs
                {
                    Username = "aduser",
                    Password = "aduserpwd",
                    SmbServerName = "SMBSERVER",
                    DnsServers = 
                    {
                        "1.2.3.4",
                    },
                    Domain = "westcentralus.com",
                    OrganizationalUnit = "OU=FirstLevel",
                },
            });
        }
    
    }
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/core"
    	"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/netapp"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
    			Location: pulumi.String("West Europe"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = netapp.NewAccount(ctx, "exampleAccount", &netapp.AccountArgs{
    			ResourceGroupName: exampleResourceGroup.Name,
    			Location:          exampleResourceGroup.Location,
    			ActiveDirectory: &netapp.AccountActiveDirectoryArgs{
    				Username:      pulumi.String("aduser"),
    				Password:      pulumi.String("aduserpwd"),
    				SmbServerName: pulumi.String("SMBSERVER"),
    				DnsServers: pulumi.StringArray{
    					pulumi.String("1.2.3.4"),
    				},
    				Domain:             pulumi.String("westcentralus.com"),
    				OrganizationalUnit: pulumi.String("OU=FirstLevel"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    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,
                active_directory: Optional[AccountActiveDirectoryArgs] = None,
                location: Optional[str] = None,
                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:netapp: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 exampleaccountResourceResourceFromNetappaccount = new Azure.NetApp.Account("exampleaccountResourceResourceFromNetappaccount", new()
    {
        ResourceGroupName = "string",
        ActiveDirectory = new Azure.NetApp.Inputs.AccountActiveDirectoryArgs
        {
            DnsServers = new[]
            {
                "string",
            },
            Domain = "string",
            Password = "string",
            SmbServerName = "string",
            Username = "string",
            OrganizationalUnit = "string",
        },
        Location = "string",
        Name = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := netapp.NewAccount(ctx, "exampleaccountResourceResourceFromNetappaccount", &netapp.AccountArgs{
    	ResourceGroupName: pulumi.String("string"),
    	ActiveDirectory: &netapp.AccountActiveDirectoryArgs{
    		DnsServers: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		Domain:             pulumi.String("string"),
    		Password:           pulumi.String("string"),
    		SmbServerName:      pulumi.String("string"),
    		Username:           pulumi.String("string"),
    		OrganizationalUnit: pulumi.String("string"),
    	},
    	Location: pulumi.String("string"),
    	Name:     pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var exampleaccountResourceResourceFromNetappaccount = new com.pulumi.azure.netapp.Account("exampleaccountResourceResourceFromNetappaccount", com.pulumi.azure.netapp.AccountArgs.builder()
        .resourceGroupName("string")
        .activeDirectory(AccountActiveDirectoryArgs.builder()
            .dnsServers("string")
            .domain("string")
            .password("string")
            .smbServerName("string")
            .username("string")
            .organizationalUnit("string")
            .build())
        .location("string")
        .name("string")
        .tags(Map.of("string", "string"))
        .build());
    
    exampleaccount_resource_resource_from_netappaccount = azure.netapp.Account("exampleaccountResourceResourceFromNetappaccount",
        resource_group_name="string",
        active_directory={
            "dns_servers": ["string"],
            "domain": "string",
            "password": "string",
            "smb_server_name": "string",
            "username": "string",
            "organizational_unit": "string",
        },
        location="string",
        name="string",
        tags={
            "string": "string",
        })
    
    const exampleaccountResourceResourceFromNetappaccount = new azure.netapp.Account("exampleaccountResourceResourceFromNetappaccount", {
        resourceGroupName: "string",
        activeDirectory: {
            dnsServers: ["string"],
            domain: "string",
            password: "string",
            smbServerName: "string",
            username: "string",
            organizationalUnit: "string",
        },
        location: "string",
        name: "string",
        tags: {
            string: "string",
        },
    });
    
    type: azure:netapp:Account
    properties:
        activeDirectory:
            dnsServers:
                - string
            domain: string
            organizationalUnit: string
            password: string
            smbServerName: string
            username: string
        location: string
        name: 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

    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 string
    The name of the resource group where the NetApp Account should be created. Changing this forces a new resource to be created.
    ActiveDirectory AccountActiveDirectory
    A active_directory block as defined below.
    Location string
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    Name string
    The name of the NetApp Account. Changing this forces a new resource to be created.
    Tags Dictionary<string, string>
    A mapping of tags to assign to the resource.
    ResourceGroupName string
    The name of the resource group where the NetApp Account should be created. Changing this forces a new resource to be created.
    ActiveDirectory AccountActiveDirectoryArgs
    A active_directory block as defined below.
    Location string
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    Name string
    The name of the NetApp Account. Changing this forces a new resource to be created.
    Tags map[string]string
    A mapping of tags to assign to the resource.
    resourceGroupName String
    The name of the resource group where the NetApp Account should be created. Changing this forces a new resource to be created.
    activeDirectory AccountActiveDirectory
    A active_directory block as defined below.
    location String
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    name String
    The name of the NetApp Account. Changing this forces a new resource to be created.
    tags Map<String,String>
    A mapping of tags to assign to the resource.
    resourceGroupName string
    The name of the resource group where the NetApp Account should be created. Changing this forces a new resource to be created.
    activeDirectory AccountActiveDirectory
    A active_directory block as defined below.
    location string
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    name string
    The name of the NetApp Account. Changing this forces a new resource to be created.
    tags {[key: string]: string}
    A mapping of tags to assign to the resource.
    resource_group_name str
    The name of the resource group where the NetApp Account should be created. Changing this forces a new resource to be created.
    active_directory AccountActiveDirectoryArgs
    A active_directory block as defined below.
    location str
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    name str
    The name of the NetApp Account. Changing this forces a new resource to be created.
    tags Mapping[str, str]
    A mapping of tags to assign to the resource.
    resourceGroupName String
    The name of the resource group where the NetApp Account should be created. Changing this forces a new resource to be created.
    activeDirectory Property Map
    A active_directory block as defined below.
    location String
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    name String
    The name of the NetApp Account. Changing this forces a new resource to be created.
    tags Map<String>
    A mapping of tags to assign to 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.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing Account Resource

    Get an existing Account resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: AccountState, opts?: CustomResourceOptions): Account
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            active_directory: Optional[AccountActiveDirectoryArgs] = None,
            location: Optional[str] = None,
            name: Optional[str] = None,
            resource_group_name: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None) -> Account
    func GetAccount(ctx *Context, name string, id IDInput, state *AccountState, opts ...ResourceOption) (*Account, error)
    public static Account Get(string name, Input<string> id, AccountState? state, CustomResourceOptions? opts = null)
    public static Account get(String name, Output<String> id, AccountState state, CustomResourceOptions options)
    resources:  _:    type: azure:netapp:Account    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    ActiveDirectory AccountActiveDirectory
    A active_directory block as defined below.
    Location string
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    Name string
    The name of the NetApp Account. Changing this forces a new resource to be created.
    ResourceGroupName string
    The name of the resource group where the NetApp Account should be created. Changing this forces a new resource to be created.
    Tags Dictionary<string, string>
    A mapping of tags to assign to the resource.
    ActiveDirectory AccountActiveDirectoryArgs
    A active_directory block as defined below.
    Location string
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    Name string
    The name of the NetApp Account. Changing this forces a new resource to be created.
    ResourceGroupName string
    The name of the resource group where the NetApp Account should be created. Changing this forces a new resource to be created.
    Tags map[string]string
    A mapping of tags to assign to the resource.
    activeDirectory AccountActiveDirectory
    A active_directory block as defined below.
    location String
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    name String
    The name of the NetApp Account. Changing this forces a new resource to be created.
    resourceGroupName String
    The name of the resource group where the NetApp Account should be created. Changing this forces a new resource to be created.
    tags Map<String,String>
    A mapping of tags to assign to the resource.
    activeDirectory AccountActiveDirectory
    A active_directory block as defined below.
    location string
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    name string
    The name of the NetApp Account. Changing this forces a new resource to be created.
    resourceGroupName string
    The name of the resource group where the NetApp Account should be created. Changing this forces a new resource to be created.
    tags {[key: string]: string}
    A mapping of tags to assign to the resource.
    active_directory AccountActiveDirectoryArgs
    A active_directory block as defined below.
    location str
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    name str
    The name of the NetApp Account. Changing this forces a new resource to be created.
    resource_group_name str
    The name of the resource group where the NetApp Account should be created. Changing this forces a new resource to be created.
    tags Mapping[str, str]
    A mapping of tags to assign to the resource.
    activeDirectory Property Map
    A active_directory block as defined below.
    location String
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    name String
    The name of the NetApp Account. Changing this forces a new resource to be created.
    resourceGroupName String
    The name of the resource group where the NetApp Account should be created. Changing this forces a new resource to be created.
    tags Map<String>
    A mapping of tags to assign to the resource.

    Supporting Types

    AccountActiveDirectory, AccountActiveDirectoryArgs

    DnsServers List<string>
    A list of DNS server IP addresses for the Active Directory domain. Only allows IPv4 address.
    Domain string
    The name of the Active Directory domain.
    Password string
    The password associated with the username.
    SmbServerName string
    The NetBIOS name which should be used for the NetApp SMB Server, which will be registered as a computer account in the AD and used to mount volumes.
    Username string
    The Username of Active Directory Domain Administrator.
    OrganizationalUnit string
    The Organizational Unit (OU) within the Active Directory Domain.
    DnsServers []string
    A list of DNS server IP addresses for the Active Directory domain. Only allows IPv4 address.
    Domain string
    The name of the Active Directory domain.
    Password string
    The password associated with the username.
    SmbServerName string
    The NetBIOS name which should be used for the NetApp SMB Server, which will be registered as a computer account in the AD and used to mount volumes.
    Username string
    The Username of Active Directory Domain Administrator.
    OrganizationalUnit string
    The Organizational Unit (OU) within the Active Directory Domain.
    dnsServers List<String>
    A list of DNS server IP addresses for the Active Directory domain. Only allows IPv4 address.
    domain String
    The name of the Active Directory domain.
    password String
    The password associated with the username.
    smbServerName String
    The NetBIOS name which should be used for the NetApp SMB Server, which will be registered as a computer account in the AD and used to mount volumes.
    username String
    The Username of Active Directory Domain Administrator.
    organizationalUnit String
    The Organizational Unit (OU) within the Active Directory Domain.
    dnsServers string[]
    A list of DNS server IP addresses for the Active Directory domain. Only allows IPv4 address.
    domain string
    The name of the Active Directory domain.
    password string
    The password associated with the username.
    smbServerName string
    The NetBIOS name which should be used for the NetApp SMB Server, which will be registered as a computer account in the AD and used to mount volumes.
    username string
    The Username of Active Directory Domain Administrator.
    organizationalUnit string
    The Organizational Unit (OU) within the Active Directory Domain.
    dns_servers Sequence[str]
    A list of DNS server IP addresses for the Active Directory domain. Only allows IPv4 address.
    domain str
    The name of the Active Directory domain.
    password str
    The password associated with the username.
    smb_server_name str
    The NetBIOS name which should be used for the NetApp SMB Server, which will be registered as a computer account in the AD and used to mount volumes.
    username str
    The Username of Active Directory Domain Administrator.
    organizational_unit str
    The Organizational Unit (OU) within the Active Directory Domain.
    dnsServers List<String>
    A list of DNS server IP addresses for the Active Directory domain. Only allows IPv4 address.
    domain String
    The name of the Active Directory domain.
    password String
    The password associated with the username.
    smbServerName String
    The NetBIOS name which should be used for the NetApp SMB Server, which will be registered as a computer account in the AD and used to mount volumes.
    username String
    The Username of Active Directory Domain Administrator.
    organizationalUnit String
    The Organizational Unit (OU) within the Active Directory Domain.

    Import

    NetApp Accounts can be imported using the resource id, e.g.

     $ pulumi import azure:netapp/account:Account example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.NetApp/netAppAccounts/account1
    

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

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Viewing docs for Azure v4.42.0 (Older version)
    published on Monday, Mar 9, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.