Terraform-provider-azurerm: azurerm_netapp_volume does not allow smb volumes to be created

Created on 24 Feb 2020  路  8Comments  路  Source: terraform-providers/terraform-provider-azurerm

Community Note

  • Please vote on this issue by adding a 馃憤 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

When creating a new volume, there is no option to create an SMB volume. The volume always defaults to NFSv3 and it cannot be changed. I think we need a protocol option on the azurerm_netapp_volume resource.

  • azurerm_netapp_volume

Potential Terraform Configuration

resource "azurerm_netapp_volume" "example" {
  name                = "example-netappvolume"
  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        = "my-unique-file-path"
  service_level        = "Premium"
  subnet_id             = azurerm_subnet.example.id
  **protocol                = smb**
  storage_quota_in_gb = 100
}

References

  • 0000

  • enhancement servicnetapp

    Most helpful comment

    Recently ANF was extended to create multi-protocol volumes.
    https://docs.microsoft.com/en-us/azure/azure-netapp-files/create-volumes-dual-protocol

    This should be added, too. protocols mustn't be filled with a single value then or a new value should be added.

    All 8 comments

    To accommodate potential future enhancements of ANF I suggest adding a List(String) instead of a simple String to the configuration:

    protocols = ["smb"]

    Potentially related to #5485

    @seb-brack, yes, you're correct, this property is being exposed in the PR you just referenced.

    @seb-brack, yes, you're correct, this property is being exposed in the PR you just referenced.

    @paulomarquesc

    PR 5485 looks like it references NFS though. Can that same property be used to specify that it should be an SMB volume?

    It is for all available protocols, CIFS, NFSv3 and NFSv4.1.

    hi @jknash and @seb-brack just an update here, the PR #5485 that enables this among NFSv4,1 support got merged.

    @tracypholmes, is this closed when the fix is released on v2.1 or can it be closed as soon as it got merged?

    Recently ANF was extended to create multi-protocol volumes.
    https://docs.microsoft.com/en-us/azure/azure-netapp-files/create-volumes-dual-protocol

    This should be added, too. protocols mustn't be filled with a single value then or a new value should be added.

    Hi, I would like to see this implememented as well as the multi protocol volumes.

    Was this page helpful?
    0 / 5 - 0 ratings