-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
azurerm_netapp_volume does not allow smb volumes to be created #5871
Comments
To accommodate potential future enhancements of ANF I suggest adding a List(String) instead of a simple String to the configuration:
Potentially related to #5485 |
@seb-brack, yes, you're correct, this property is being exposed in the PR you just referenced. |
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. This should be added, too. |
Hi, I would like to see this implememented as well as the multi protocol volumes. |
This is already supported since the time we enabled an array as protocol types, worth it to notice that the supported dual protocol scenario is CIFS+NFSv3. I'll update the documentation to point that out and provide a sample on how to do it, for now here is the snippet that I used to test it: azurerm_netapp_accountresource "azurerm_netapp_account" "example" {
name = "${var.prefix}-netappaccount"
location = azurerm_resource_group.example.location
resource_group_name = azurerm_resource_group.example.name
active_directory {
username = "pmcadmin"
password = var.password
smb_server_name = "SMBSERVER"
dns_servers = ["10.2.0.4"]
domain = "anf.local"
}
} azurerm_netapp_volumeresource "azurerm_netapp_volume" "example" {
lifecycle {
prevent_destroy = true
}
name = "${var.prefix}-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 = "${var.prefix}-netappvolume"
service_level = "Standard"
protocols = ["CIFS","NFSv3"]
subnet_id = var.subnet_id
storage_quota_in_gb = 100
export_policy_rule {
rule_index = 1
allowed_clients = ["0.0.0.0/0"]
cifs_enabled = true
nfsv3_enabled = true
nfsv4_enabled = false
unix_read_write = true
}
} |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
Community Note
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.
Potential Terraform Configuration
References
The text was updated successfully, but these errors were encountered: