azurermNetappAccount
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
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as azurerm from "./.gen/providers/azurerm";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: azurerm.
For a more precise conversion please use the --provider flag in convert.*/
const azurermResourceGroupExample = new azurerm.resourceGroup.ResourceGroup(
this,
"example",
{
location: "West Europe",
name: "example-resources",
}
);
const azurermNetappAccountExample = new azurerm.netappAccount.NetappAccount(
this,
"example_1",
{
active_directory: [
{
dns_servers: ["1.2.3.4"],
domain: "westcentralus.com",
organizational_unit: "OU=FirstLevel",
password: "aduserpwd",
smb_server_name: "SMBSERVER",
username: "aduser",
},
],
location: azurermResourceGroupExample.location,
name: "example-netapp",
resource_group_name: azurermResourceGroupExample.name,
}
);
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
azurermNetappAccountExample.overrideLogicalId("example");
Argument Reference
The following arguments are supported:
-
name
- (Required) The name of the NetApp Account. Changing this forces a new resource to be created. -
resourceGroupName
- (Required) The name of the resource group where the NetApp Account should be created. Changing this forces a new resource to be created. -
location
- (Required) Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. -
activeDirectory
- (Optional) AactiveDirectory
block as defined below. -
tags
- (Optional) A mapping of tags to assign to the resource.
The activeDirectory
block supports the following:
-
dnsServers
- (Required) A list of DNS server IP addresses for the Active Directory domain. Only allowsiPv4
address. -
domain
- (Required) The name of the Active Directory domain. -
smbServerName
- (Required) 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
- (Required) The Username of Active Directory Domain Administrator. -
password
- (Required) The password associated with theusername
. -
organizationalUnit
- (Optional) The Organizational Unit (OU) within the Active Directory Domain.
Attributes Reference
The following attributes are exported:
id
- The ID of the NetApp Account.
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 30 minutes) Used when creating the NetApp Account.update
- (Defaults to 30 minutes) Used when updating the NetApp Account.read
- (Defaults to 5 minutes) Used when retrieving the NetApp Account.delete
- (Defaults to 30 minutes) Used when deleting the NetApp Account.
Import
NetApp Accounts can be imported using the resourceId
, e.g.