hashicorp / terraform-provider-azurerm

Terraform provider for Azure Resource Manager
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs
Mozilla Public License 2.0
4.61k stars 4.65k forks source link

Support for [Azure NetApp Files - Dynamic Service Level Change ] #12102

Open razor5678 opened 3 years ago

razor5678 commented 3 years ago

Community Note

Description

Currently, we don't see an option to Dynamically change a service level of an ANF volume in Terraform.

https://docs.microsoft.com/en-us/azure/azure-netapp-files/dynamic-change-volume-service-level

New or Affected Resource(s)

azurerm_netapp_volume

Potential Terraform Configuration

# Copy-paste your Terraform configurations here - for large Terraform configs,
# please use a service like Dropbox and share a link to the ZIP file. For
# security, you can also encrypt the files using our GPG public key.

References

https://docs.microsoft.com/en-us/azure/azure-netapp-files/dynamic-change-volume-service-level

Lunik commented 3 years ago

The module should also support volume tier update without recreation if the feature is activated.

Actually :

# module.netapp.azurerm_netapp_volume.netapp["my-volume"] must be replaced
-/+ resource "azurerm_netapp_volume" "netapp" {
[...]
        name                             = "my-volume"
      ~ pool_name                        = "my-pool-01" -> "my-pool-02" # forces replacement
      ~ service_level                    = "Standard" -> "Premium" # forces replacement
[...]
    }

Expected :

# module.netapp.azurerm_netapp_volume.netapp["my-volume"] will be updated
~ resource "azurerm_netapp_volume" "netapp" {
[...]
        name                             = "my-volume"
      ~ pool_name                        = "my-pool-01" -> "my-pool-02"
      ~ service_level                    = "Standard" -> "Premium"
[...]
    }
praveenambati1233 commented 8 months ago

Is there any update on this issue ? we are having similar situation where we want to change the Standard to Ultra, but there is no support in terraform without re-creating of the resources. Is there any alternative solution/workaround ?