Skip to content

azurermNetappPool

Manages a Pool within a NetApp Account.

NetApp Pool 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",
  {
    location: azurermResourceGroupExample.location,
    name: "example-netappaccount",
    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");
const azurermNetappPoolExample = new azurerm.netappPool.NetappPool(
  this,
  "example_2",
  {
    account_name: azurermNetappAccountExample.name,
    location: azurermResourceGroupExample.location,
    name: "example-netapppool",
    resource_group_name: azurermResourceGroupExample.name,
    service_level: "Premium",
    size_in_tb: 4,
  }
);
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
azurermNetappPoolExample.overrideLogicalId("example");

Argument Reference

The following arguments are supported:

  • name - (Required) The name of the NetApp Pool. Changing this forces a new resource to be created.

  • resourceGroupName - (Required) The name of the resource group where the NetApp Pool should be created. Changing this forces a new resource to be created.

  • accountName - (Required) The name of the NetApp account in which the NetApp Pool 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.

  • serviceLevel - (Required) The service level of the file system. Valid values include premium, standard, or ultra. Changing this forces a new resource to be created.

  • sizeInTb - (Required) Provisioned size of the pool in TB. Value must be between 4 and 500.

  • qosType - (Optional) QoS Type of the pool. Valid values include auto or manual.

  • tags - (Optional) A mapping of tags to assign to the resource.


Attributes Reference

The following attributes are exported:

  • id - The ID of the NetApp Pool.

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

  • create - (Defaults to 30 minutes) Used when creating the NetApp Pool.
  • update - (Defaults to 30 minutes) Used when updating the NetApp Pool.
  • read - (Defaults to 5 minutes) Used when retrieving the NetApp Pool.
  • delete - (Defaults to 30 minutes) Used when deleting the NetApp Pool.

Import

NetApp Pool can be imported using the resourceId, e.g.

terraform import azurerm_netapp_pool.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1