Skip to content
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_storage_container - storage_account_name deprecated but cannot migrate to storage_account_id #28053

Closed
1 task done
dkirrane opened this issue Nov 18, 2024 · 3 comments

Comments

@dkirrane
Copy link

dkirrane commented Nov 18, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Community Note

  • 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 comments along the lines of "+1", "me too" or "any updates", 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 and review the contribution guide to help.

Terraform Version

1.9.8

AzureRM Provider Version

4.9.0

Affected Resource(s)/Data Source(s)

azurerm_storage_container

Terraform Configuration Files

resource "azurerm_storage_container" "example" {
  name                  = "vhds"
  storage_account_name  = azurerm_storage_account.this.name
  storage_account_id    = azurerm_storage_account.this.id
  container_access_type = "private"
}

Debug Output/Panic Output

The Terraform Plan shows Forces replacement of the container when I add storage_account_id and remove the deprecated storage_account_name

If it add both storage_account_id and storage_account_name I get only one of storage_account_id,storage_account_name can be specified

Expected Behaviour

I should be able to migrate from storage_account_id and storage_account_name
There should be a migration path called out in https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/guides/4.0-overview

Actual Behaviour

Cannot remove deprecated storage_account_name.

Steps to Reproduce

  1. Create an azurerm_storage_container with storage_account_name
  2. Try change it to using storage_account_id. Terraform Plan shows Forces replacement

Important Factoids

No response

References

  • azurerm_storage_container - support for the storage_account_id property (#27733)
@mybayern1974
Copy link
Collaborator

Duplicate with #27942

@rcskosir
Copy link
Contributor

Thanks for taking the time to submit this issue. It looks like this is a duplicate of #27942. We like to try to keep discussions consolidated, so we’re going to close this new issue in favor of #27942.

@rcskosir rcskosir closed this as not planned Won't fix, can't repro, duplicate, stale Nov 19, 2024
Copy link

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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants