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 deprecation migration note is not correct. #28911

Open
1 task done
sheeeng opened this issue Feb 28, 2025 · 0 comments
Open
1 task done

azurerm_storage_container deprecation migration note is not correct. #28911

sheeeng opened this issue Feb 28, 2025 · 0 comments

Comments

@sheeeng
Copy link
Contributor

sheeeng commented Feb 28, 2025

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.

See https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/storage_container.

Terraform Version

1.10.5

AzureRM Provider Version

2.20.0

Affected Resource(s)/Data Source(s)

azurerm_storage_container

Terraform Configuration Files

resource "azurerm_storage_account" "example" {
  # ...
}

resource "azurerm_role_assignment" "example" {
  scope                = "/subscriptions/${local.subscription_id}/resourceGroups/${local.resource_group_name}/providers/Microsoft.Storage/storageAccounts/${local.storage_account_name}/blobServices/default/containers/${local.storage_container_name}"
  role_definition_name = "Storage Blob Data Contributor"
  principal_id         = data.azurerm_client_config.current.object_id
}

Debug Output/Panic Output

Warning: Deprecated attribute

The attribute "resource_manager_id" is deprecated. Refer to the provider documentation for details.

Expected Behaviour

Understood that azurerm_storage_account.example.resource_manager_id is being deprecated. But recommendedazurerm_storage_account.example.id returns invalid URL-formatted string value.

The recommended in documentation is not working as the id property is returning a wrong URL-formatted (https://storage-account-name.blob.core.windows.net/storage-container-name) value, not the correct fully qualified resource manager id.

The documentation claim that Migrating from the deprecated storage_account_name to storage_account_id is supported without recreation. is incorrect.

Actual Behaviour

No response

Steps to Reproduce

No response

Important Factoids

No response

References

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant