You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
Terraform Version
3.18.0
AzureRM Provider Version
3.18.0
Affected Resource(s)/Data Source(s)
azurerm_management_lock
Terraform Configuration Files
resource"azurerm_management_lock""container_delete_lock" {
for_each=var.containersname="delete-lock-${each.key}"lock_level="CanNotDelete"notes="Prevent accidental deletion of container ${each.key}"scope=azurerm_storage_container.container[each.key].id
}
Debug Output/Panic Output
Error: creating Scoped Lock (Scope: ""
│ Lock Name: "delete-lock-eu-devops-dev-scripts-temp"): managementlocks.ManagementLocksClient#CreateOrUpdateByScope: Failure responding to request: StatusCode=404 -- Original Error: autorest/azure: Service returned an error. Status=404 Code="MissingSubscription" Message="The request did not have a subscription or a valid tenant level resource provider."
with azurerm_management_lock.container_delete_lock["eu-devops-dev-scripts-temp"],
│ on main.tf line 91, in resource "azurerm_management_lock""container_delete_lock":
│ 91: resource "azurerm_management_lock""container_delete_lock" {
Expected Behaviour
when i try to create lock for storage account level its working fine and we are unable to delete storage account , but when i try to delete container within same storage account it is providing an overide option to remove lock and delete container ,so then iam trying to create lock for container level but iam getting above error ,how i can reslove this issue?
Actual Behaviour
how to apply lock for container without providing override option when we try to delete container
Steps to Reproduce
terraform apply
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered:
### Is there an existing issue for this?
Community Note
Terraform Version
3.18.0
AzureRM Provider Version
3.18.0
Affected Resource(s)/Data Source(s)
azurerm_management_lock
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
when i try to create lock for storage account level its working fine and we are unable to delete storage account , but when i try to delete container within same storage account it is providing an overide option to remove lock and delete container ,so then iam trying to create lock for container level but iam getting above error ,how i can reslove this issue?
Actual Behaviour
how to apply lock for container without providing override option when we try to delete container
Steps to Reproduce
terraform apply
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: