-
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
DELETE azurerm_storage_share Unable to delete share because one or more share snapshots have active leases #26408
Comments
@mpjtaylor Thank you for submitting this issue! I've created a PR to update the underlying SDK. Once it's merged, we shall be able to delete the share with the include-leased parameter for x-ms-delete-snapshots. |
@magodo May I know when will this be merged and closed? I saw this has been in open state for few months. Currently I am facing the similar issue. |
bump! @magodo any updates on when the related PR will be merged? |
@pc-learning-j : were you able to workaround this somehow? |
@aneeraj There is one typo in the previous PR, and I've submitted one more PR to fix that. This is to support the functionality via the data plane API. Since currently there is a major change in the storage share, which changes it to use mgmt plane API: #27733. I've tried to dig into how its delete API supports this use case. Unfortunately, I've met some issue using it. I've created an MSFT internal issue to ask for clarification. |
Thanks for letting me know, @magodo. Appreciate it :) |
Is there an existing issue for this?
Community Note
Terraform Version
1.8.1
AzureRM Provider Version
3.106.1
Affected Resource(s)/Data Source(s)
azurerm_storage_share
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
File share should be deleted into soft delete state,
Actual Behaviour
Azure errors cannot perform delete operation because following scope(s) are locked.
This is relatively new issue as we have been using this for along time
Steps to Reproduce
terraform apply
terraform destroy
Important Factoids
Storage account is backed up by Backup Vault
References
No response
The text was updated successfully, but these errors were encountered: