Skip to content

Instantly share code, notes, and snippets.

@weeyin83
Created April 29, 2025 09:21
Show Gist options
  • Save weeyin83/65d3b9484ef5b6b97d28f8b964f59052 to your computer and use it in GitHub Desktop.
Save weeyin83/65d3b9484ef5b6b97d28f8b964f59052 to your computer and use it in GitHub Desktop.
resource "azurerm_netapp_account" "example" {
name = "example-netapp-account"
location = azurerm_resource_group.example.location
resource_group_name = azurerm_resource_group.example.name
}
resource "azurerm_netapp_pool" "example" {
name = "example-netapp-pool"
location = azurerm_resource_group.example.location
resource_group_name = azurerm_resource_group.example.name
account_name = azurerm_netapp_account.example.name
service_level = "Premium"
size_in_tb = 4
depends_on = [azurerm_netapp_account.example]
}
resource "azurerm_netapp_volume" "example" {
name = "example-netapp-volume"
location = azurerm_resource_group.example.location
resource_group_name = azurerm_resource_group.example.name
account_name = azurerm_netapp_account.example.name
pool_name = azurerm_netapp_pool.example.name
volume_path = "examplevolume"
service_level = "Premium"
subnet_id = azurerm_subnet.example.id
protocol = "NFSv4.1"
depends_on = [
azurerm_netapp_account.example,
azurerm_netapp_pool.example
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment