-
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
azurerm_pim_eligible_role_assignment waiting for Role Management Policy to become ready: couldn't find resource #23775
Comments
Noticed this yesterday too. It might be an Azure issue, in the activity log we see the Started event but never a completed event. I think the team was going to open a case with MS as well, will report back if they find anything. |
Thanks @smokedlinq I will raise this with them too |
I have been trying for a couple of days to make it work, and went through a couple of posts, just to find out this issue is marked as resolved. 🥲 Also tried changing the scope to RG but it failed. When I try to create the resource it fails as mentioned before. The import fails too, saying that cannot import a non-existent remote object . Curious thing that the That's unusable for us at the moment. Terraform Versions1.5.7 AzureRM Provider Versions3.79.0 Output after
|
I had the same issue. If you're using index keys and are working within Windows, you'd have to escape the index values like so. However, I ran into issues where the import claimed to be successful but didn't actually import into the state, so in the end I had to delete the existing PIM assignment from the portal and re-run it. |
Try change your role_definition_id to We had similar problem, but we are work with management group, it took us several days until we find what's wrong with it:
Refer to section |
dupe of #23366 |
previously mentioned dupe is closed now, #23111 is open with active discussion (more about not-found errors than timeout tho) |
@ChrisTav424, @smokedlinq, @jcframil, @MohnJadden are you still experiencing this error with the latest provider (currently v3.104.2)? |
hi @manicminer , I have customer still got same issue after update to azureRM 3.104.2 Is it the case that the fix only works for PIM assignments created with the latest version of the provider and not pre-existing assignments? |
Hi @manicminer - i have been following this issue, was this issue only fixed in azurerm version >= 3.104.2? I ask cause i am still seeing this issue persist in v3.86.0 |
@yashshah0809 Yes, this was ultimately resolved in v3.104 - you will need to upgrade your provider version if you are on v3.86 |
@Scarlettliuyc Importing should work with PIM assignments created in earlier provider versions, as long as you first upgrade the provider version (and your state) to v3.104.2 or later. |
Still seeing the time out using v3.113.0. The assignment was created but the run fails.
Error: waiting for Scoped Role Eligibility Schedule Request (Scope: "/subscriptions/-----/resourceGroups/--" |
Is there an existing issue for this?
Community Note
Terraform Version
1.6.3
AzureRM Provider Version
3.79.0
Affected Resource(s)/Data Source(s)
azurerm_pim_eligible_role_assignment
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
Apply successful
Actual Behaviour
The apply fails with the 'waiting for Role Management Policy to become ready: couldn't find resource (21 retries)'
The PIM roles have been created in the portal and when I run another terraform plan / apply it states that the resource needs to be imported into state.
This only seems to be a problem when you specify a scope at a subscription level
Steps to Reproduce
terraform apply
Important Factoids
No response
References
I have seen this referenced in a few places already but states that it is resolved
hashicorp/terraform-provider-azuread#68
#22932
The text was updated successfully, but these errors were encountered: