We recommend using Azure Native.
azure.netapp.Account
Explore with Pulumi AI
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 System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new()
{
Location = "West Europe",
});
var exampleAccount = new Azure.NetApp.Account("exampleAccount", new()
{
ResourceGroupName = exampleResourceGroup.Name,
Location = exampleResourceGroup.Location,
ActiveDirectory = new Azure.NetApp.Inputs.AccountActiveDirectoryArgs
{
Username = "aduser",
Password = "aduserpwd",
SmbServerName = "SMBSERVER",
DnsServers = new[]
{
"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 com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.netapp.Account;
import com.pulumi.azure.netapp.AccountArgs;
import com.pulumi.azure.netapp.inputs.AccountActiveDirectoryArgs;
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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.activeDirectory(AccountActiveDirectoryArgs.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 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:
- Resource
Group stringName The name of the resource group where the NetApp Account should be created. Changing this forces a new resource to be created.
- Active
Directory AccountActive Directory 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.
- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Resource
Group stringName The name of the resource group where the NetApp Account should be created. Changing this forces a new resource to be created.
- Active
Directory AccountActive Directory Args 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.
- map[string]string
A mapping of tags to assign to the resource.
- resource
Group StringName The name of the resource group where the NetApp Account should be created. Changing this forces a new resource to be created.
- active
Directory AccountActive Directory 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.
- Map<String,String>
A mapping of tags to assign to the resource.
- resource
Group stringName The name of the resource group where the NetApp Account should be created. Changing this forces a new resource to be created.
- active
Directory AccountActive Directory 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.
- {[key: string]: string}
A mapping of tags to assign to the resource.
- resource_
group_ strname The name of the resource group where the NetApp Account should be created. Changing this forces a new resource to be created.
- active_
directory AccountActive Directory Args 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.
- Mapping[str, str]
A mapping of tags to assign to the resource.
- resource
Group StringName The name of the resource group where the NetApp Account should be created. Changing this forces a new resource to be created.
- active
Directory 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.
- 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)
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.
- Active
Directory AccountActive Directory 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.
- Resource
Group stringName The name of the resource group where the NetApp Account should be created. Changing this forces a new resource to be created.
- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Active
Directory AccountActive Directory Args 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.
- Resource
Group stringName The name of the resource group where the NetApp Account should be created. Changing this forces a new resource to be created.
- map[string]string
A mapping of tags to assign to the resource.
- active
Directory AccountActive Directory 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.
- resource
Group StringName The name of the resource group where the NetApp Account should be created. Changing this forces a new resource to be created.
- Map<String,String>
A mapping of tags to assign to the resource.
- active
Directory AccountActive Directory 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.
- resource
Group stringName The name of the resource group where the NetApp Account should be created. Changing this forces a new resource to be created.
- {[key: string]: string}
A mapping of tags to assign to the resource.
- active_
directory AccountActive Directory Args 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_ strname The name of the resource group where the NetApp Account should be created. Changing this forces a new resource to be created.
- Mapping[str, str]
A mapping of tags to assign to the resource.
- active
Directory 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.
- resource
Group StringName The name of the resource group where the NetApp Account should be created. Changing this forces a new resource to be created.
- Map<String>
A mapping of tags to assign to the resource.
Supporting Types
AccountActiveDirectory, AccountActiveDirectoryArgs
- Dns
Servers 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
.- Smb
Server stringName 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.
- Organizational
Unit string The Organizational Unit (OU) within the Active Directory Domain.
- Dns
Servers []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
.- Smb
Server stringName 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.
- Organizational
Unit string The Organizational Unit (OU) within the Active Directory Domain.
- dns
Servers 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
.- smb
Server StringName 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.
- organizational
Unit String The Organizational Unit (OU) within the Active Directory Domain.
- dns
Servers 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
.- smb
Server stringName 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.
- organizational
Unit 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_ strname 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.
- dns
Servers 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
.- smb
Server StringName 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.
- organizational
Unit 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
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
azurerm
Terraform Provider.