-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Unable to import azurerm_pim_eligible_role_assignment resources #22678
Comments
Hi @MohnJadden thanks for filing this issue. as you description it seems the role assignment has not been created success and an timeout error raised. so the |
@wuxu92 I'd love to try it - pardon what may be a stupid question, but I don't do much operating in a devops world. Now that the PR is merged into main, do I need to wait for a new release of the azurerm provider or is there some method I should use to pick up the changes? |
@MohnJadden you can wait a new release and then use the newer version. if it is a urgent task, you can build the latest |
The new release appears to have fixed something - I was able to import successfully. It wasn't easy to do so since the provider documentation doesn't account for Windows escape characters, nor is it easy to find documentation on how to import resources into mapped variables. For anyone that's struggling, I was able to perform the import in Windows using the following format:
This accounts for Windows escape characters, pipes, etc. If the scope of the PIM assignment is a subscription and not resource groups, omit the resourceGroup/resourceGroupNameGoesHere from above. |
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. |
Is there an existing issue for this?
Community Note
Terraform Version
1.5.3
AzureRM Provider Version
3.65.0
Affected Resource(s)/Data Source(s)
azurerm_pim_eligible_role_assignment
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
Terraform should import the PIM eligible role assignment into the state with the map value specified in [brackets]
Actual Behaviour
Terraform prepares to import the resource but then throws the 404 error shown above
Steps to Reproduce
Important Factoids
No response
References
Issue #22588 covers the problem described in Steps to Reproduce 1 and 2
The text was updated successfully, but these errors were encountered: