-
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
Error loading Role Assignment for import on shared image gallery #12071
Comments
This one is not exactly related to #12060. What you are missing is the role assignment part of your ID, if you know that by any change and postfix it you'd be fine, like: You could use data "azurerm_role_definition" "byname" {
name = "Owner"
} |
@ost-chouse - this might have been fixed in v2.62.1, can you check and confirm this is still an issue? thanks! |
Closing this out since we've not heard back here. |
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. |
Community Note
Terraform (and AzureRM Provider) Version
Terraform v0.13.5
Affected Resource(s)
azurerm_shared_image_gallery
azurerm_role_assignment
Terraform Configuration Files
Expected Behaviour
Role assignments are already present in Azure Portal.
Not sure if similar bug related to 2.61 (#12060), but role assignments should have imported successfully. Ultimately they should not have been removed from state during previous apply with 2.61.
Actual Behaviour
Have tried azurerm versions back to 2.58 with same result.
Steps to Reproduce
Import an existing role assignment for a shared image gallery and after azurerm 2.61 has removed it erroneously from state.
References
The text was updated successfully, but these errors were encountered: