Azure NetApp Pool

This page shows how to write Terraform and Azure Resource Manager for NetApp Pool and write them securely.

azurerm_netapp_pool (Terraform)

The Pool in NetApp can be configured in Terraform with the resource name azurerm_netapp_pool. The following sections describe 10 examples of how to use the resource and its parameters.

Example Usage from GitHub

main.tf#L1
resource "azurerm_netapp_pool" "netapp_pool" {
  name                = var.netapp_pool_name
  account_name        = var.account_name
  resource_group_name = var.resource_group_name
  location            = var.location
  service_level       = var.service_level
pool.tf#L1
resource "azurerm_netapp_pool" "pool" {
  # The capacity pool name must be unique for each NetApp account
  name                = var.settings.name
  account_name        = var.account_name
  resource_group_name = var.resource_group_name
  location            = var.location
anf.tf#L25
resource "azurerm_netapp_pool" "example" {
  name                = "example-netapppool"
  location            = azurerm_resource_group.example.location
  resource_group_name = azurerm_resource_group.example.name
  account_name        = azurerm_netapp_account.example.name
  service_level       = "Premium"
pool.tf#L1
resource "azurerm_netapp_pool" "pool" {
  # The capacity pool name must be unique for each NetApp account
  name                = var.settings.name
  account_name        = var.account_name
  resource_group_name = var.resource_group_name
  location            = var.location
netappstorage.tf#L35
resource "azurerm_netapp_pool" "netapp_pool" {
  name                = var.netapp_pool_name
  location            = var.deploy_location
  resource_group_name = var.rg_name
  account_name        = var.netapp_acct_name
  service_level       = "Standard"
storage.tf#L27
resource "azurerm_netapp_pool" "NetApp_pool" {
  name                = var.NetApp_pool_name
  location            = var.deploylocation
  resource_group_name = var.rgname
  account_name        = var.NetApp_acct_name
  service_level       = "Standard"
main.tf#L7
resource "azurerm_netapp_pool" "this" {
  account_name        = var.account_name
  location            = var.location
  name                = var.name
  resource_group_name = var.resource_group_name
  service_level       = var.service_level
netapp.tf#L25
resource "azurerm_netapp_pool" "example" {
  name                = var.netapp-pool-name
  account_name        = azurerm_netapp_account.example.name
  location            = azurerm_resource_group.example.location
  resource_group_name = azurerm_resource_group.example.name
  service_level       = var.netapp-pool-service_level
main.tf#L7
resource "azurerm_netapp_pool" "this" {
  account_name        = var.account_name
  location            = var.location
  name                = var.name
  resource_group_name = var.resource_group_name
  service_level       = var.service_level
pool.tf#L12
resource "azurerm_netapp_pool" "pool" {
  # The capacity pool name must be unique for each NetApp account
  name                = var.settings.name
  account_name        = var.account_name
  resource_group_name = var.resource_group_name
  location            = var.location

Review your Terraform file for Azure best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).

Parameters

Explanation in Terraform Registry

Manages a Pool within a NetApp Account.

Microsoft.NetApp/netAppAccounts/capacityPools (Azure Resource Manager)

The netAppAccounts/capacityPools in Microsoft.NetApp can be configured in Azure Resource Manager with the resource name Microsoft.NetApp/netAppAccounts/capacityPools. The following sections describe how to use the resource and its parameters.

Example Usage from GitHub

template.json
{
  "contentVersion": "1.0.0.0",
  "parameters": {
    "workbookDisplayName": {
      "type": "string",
template.json
{
  "contentVersion": "1.0.0.0",
  "parameters": {
    "workbookDisplayName": {
      "type": "string",
template.json
{
  "contentVersion": "1.0.0.0",
  "parameters": {
    "workbookDisplayName": {
      "type": "string",
template.json
{
  "contentVersion": "1.0.0.0",
  "parameters": {
    "workbookDisplayName": {
      "type": "string",

Parameters

  • apiVersion required - string
  • location required - string

    Resource location

  • name required - string

    The name of the capacity pool

  • properties required
      • coolAccess optional - boolean

        If enabled (true) the pool can contain cool Access enabled volumes.

      • encryptionType optional - string

        Encryption type of the capacity pool, set encryption type for data at rest for this pool and all volumes in it. This value can only be set when creating new pool.

      • qosType optional - string

        The qos type of the pool.

      • serviceLevel required - string
      • size required - integer

        Provisioned size of the pool (in bytes). Allowed values are in 4TiB chunks (value must be multiply of 4398046511104).

  • tags optional - string

    Tags are a list of key-value pairs that describe the resource

  • type required - string

Frequently asked questions

What is Azure NetApp Pool?

Azure NetApp Pool is a resource for NetApp of Microsoft Azure. Settings can be wrote in Terraform.

Where can I find the example code for the Azure NetApp Pool?

For Terraform, the BartoszDopke/terraform-azurerm_netapp_files, anmoltoppo/Terraform and hyundonk/aztf-anf-demo source code examples are useful. See the Terraform Example section for further details.

For Azure Resource Manager, the HasanIftakher/Azure-Monitor, tulpy/Azure and lbournwhs/AzureMonitorCommunity source code examples are useful. See the Azure Resource Manager Example section for further details.