Azure Classic

Pulumi Official
Package maintained by Pulumi
v5.6.0 published on Friday, May 20, 2022 by Pulumi

Account

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/v5/go/azure/core"
	"github.com/pulumi/pulumi-azure/sdk/v5/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
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()        
            .location("West Europe")
            .build());

        var exampleAccount = new Account("exampleAccount", AccountArgs.builder()        
            .resourceGroupName(exampleResourceGroup.getName())
            .location(exampleResourceGroup.getLocation())
            .activeDirectory(AccountActiveDirectory.builder()
                .username("aduser")
                .password("aduserpwd")
                .smbServerName("SMBSERVER")
                .dnsServers("1.2.3.4")
                .domain("westcentralus.com")
                .organizationalUnit("OU=FirstLevel")
                .build())
            .build());

        }
}
resources:
  exampleResourceGroup:
    type: azure:core:ResourceGroup
    properties:
      location: West Europe
  exampleAccount:
    type: azure:netapp:Account
    properties:
      resourceGroupName: ${exampleResourceGroup.name}
      location: ${exampleResourceGroup.location}
      activeDirectory:
        username: aduser
        password: aduserpwd
        smbServerName: SMBSERVER
        dnsServers:
          - 1.2.3.4
        domain: westcentralus.com
        organizationalUnit: OU=FirstLevel

Create a Account Resource

new Account(name: string, args: AccountArgs, opts?: CustomResourceOptions);
@overload
def Account(resource_name: 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)
@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:netapp: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 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 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 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

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 {[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

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 an 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)
Resource lookup is not supported in YAML
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 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 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 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

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 {[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

A mapping of tags to assign to the resource.

Supporting Types

AccountActiveDirectory

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

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

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

Package Details

Repository
https://github.com/pulumi/pulumi-azure
License
Apache-2.0
Notes

This Pulumi package is based on the azurerm Terraform Provider.