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
The Storage Container resource is provisioned using the Storage Data Plane API rather than the Resource Manager API which most other resources use; as such the ID for this resource is intentionally using the ID required to access this in the Data Plane API.
Whilst it's now possible to access Storage Containers via the Resource Manager API - unfortunately this only works when using Azure AD for authentication to Storage Accounts (which is being tracked in #3651) however it appears that Azure AD Authentication only works for certain kinds of Storage Resources (and in particular, accounts with "Contributor" roles to the subscription don't automatically have the associated "Storage" permissions, which has confused users when we attempted to switch to this previously) - as such at this time I'm not sure how feasible switching over to those new API's is in the short-term.
The information needed to build up the Resource Manager ID isn't currently available through the Data Plane API - as such whilst it might be possible to rectify this in the future as part of some larger changes (for example by switching this resource to use the storage_account_id rather than the storage_account_name - which I've opened #4442 to track); unfortunately this isn't something we plan to expose in the short-term; as such I'm going to close this issue for the moment in favour of #4442.
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!
ghost
locked and limited conversation to collaborators
Mar 29, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Community Note
Terraform (and AzureRM Provider) Version
Terraform: 0.12.8
AzureRM Provider: 1.33.1
Affected Resource(s)
azurerm_storage_container
Terraform Configuration Files
Example only
Expected Behavior
The principal is granted contributor rights to the storage container (not the storage account).
Actual Behavior
The URL of the container is entered into the scope field instead of the correct scope of
This is inconsistent with the formatting of the ID attribute on other resources.
Example output plan:
The text was updated successfully, but these errors were encountered: