-
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: Unable to update snapshot policy #14694
Comments
@Lunik , thanks for raising this issue. After tested, seems I cannot repro this issue with below tf config. The Step1 to create one azurerm_netapp_snapshot_policy.test and apply it to azurerm_netapp_volume.test:
Step2 to create another new one azurerm_netapp_snapshot_policy.test2 and apply it to existing azurerm_netapp_volume.test:
|
I am running into the same error, but don't even have a |
@f35f0ef9d0e827dae86552d3899f78fc , thanks. I can repro it now. After checked, seems the root cause is service api doesn't identify what we set in previous run for the |
I got the same error with @f35f0ef9d0e827dae86552d3899f78fc . The changed from |
I'm looking into this. |
Issue identified and I'm working on the fixes. What is happening here is that the ANF module is using CreateOrUpdate method from ANF Go SDK instead of using the individual methods (Create and Update), translating to PUT requests being sent to ARM instead of PATCH with the potential to overwrite properties not yet supported by ANF terraform module or edge cases like the one described here. I'm testing a few scenarios including the one described in this thread and will be placing the PR with the fixes soon. |
Placed the following PR that fixes this issue: #15491 |
This functionality has been released in v2.97.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
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. |
Community Note
Terraform (and AzureRM Provider) Version
Affected Resource(s)
azurerm_netapp_volume
Terraform Configuration Files
Debug Output
Panic Output
Expected Behaviour
The volume snapshot policy should be updated
Actual Behaviour
The volume snapshot policy is not updated and Terraform throw an error
Steps to Reproduce
Important Factoids
References
#14230
The text was updated successfully, but these errors were encountered: