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.
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
}
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.
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.
protocolsmustn't be filled with a single value then or a new value should be added.