terraform-provider-azurerm
terraform-provider-azurerm copied to clipboard
Error: The terraform-provider-azurerm_v4.6.0_x5 plugin crashed!
Is there an existing issue for this?
- [X] I have searched the existing issues
Community Note
- Please vote on this issue by adding a :thumbsup: 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.
Terraform Version
1.9.7
AzureRM Provider Version
4.6.0
Affected Resource(s)/Data Source(s)
azurerm_role_management_policy
Terraform Configuration Files
resource "azurerm_role_management_policy" "example" {
scope = "/providers/Microsoft.Management/managementGroups/example"
role_definition_id = "/providers/Microsoft.Authorization/roleDefinitions/00482a5a-887f-4fb3-b363-3b7fe8e74483"
activation_rules {
maximum_duration = "PT4H"
require_justification = true
}
eligible_assignment_rules {
expiration_required = false
}
lifecycle {
ignore_changes = [
activation_rules[0].approval_stage,
]
}
}
Debug Output/Panic Output
╷
│ Error: Request cancelled
│
│ with azurerm_role_management_policy.****["key_vault_administrator"],
│ on ccoe-pim.tf line 2, in resource "azurerm_role_management_policy" "****":
│ 2: resource "azurerm_role_management_policy" "****" {
│
│ The plugin.(*GRPCProvider).ReadResource request was cancelled.
╵
Stack trace from the terraform-provider-azurerm_v4.6.0_x5 plugin:
panic: interface conversion: rolemanagementpolicies.RoleManagementPolicyRule is rolemanagementpolicies.RoleManagementPolicyEnablementRule, not rolemanagementpolicies.RawRoleManagementPolicyRuleImpl
goroutine 806 [running]:
github.com/hashicorp/terraform-provider-azurerm/internal/services/authorization.(*RoleManagementPolicyResource).Read.RoleManagementPolicyResource.Read.func1({0x8858bc0, 0xc000629110}, {0xc001adfb08, {0x885b400, 0xc00032f8c0}, 0xc00434cc00, 0x0, {0x885c388, 0xdda3280}})
github.com/hashicorp/terraform-provider-azurerm/internal/services/authorization/role_management_policy_resource.go:466 +0x1e98
github.com/hashicorp/terraform-provider-azurerm/internal/sdk.(*ResourceWrapper).Resource.func3({0x8858bc0, 0xc000629110}, 0xc000629110?, {0x70111e0?, 0xc001adfb08?})
github.com/hashicorp/terraform-provider-azurerm/internal/sdk/wrapper_resource.go:68 +0x145
github.com/hashicorp/terraform-provider-azurerm/internal/sdk.(*ResourceWrapper).Resource.(*ResourceWrapper).diagnosticsWrapper.diagnosticsWrapper.func11({0x8858bc0?, 0xc000629110?}, 0x45d964b800?, {0x70111e0?, 0xc001adfb08?})
github.com/hashicorp/terraform-provider-azurerm/internal/sdk/wrapper_resource.go:192 +0x59
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).read(0xc00048d7a0, {0x8858b18, 0xc004359560}, 0xc00434cc00, {0x70111e0, 0xc001adfb08})
github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:795 +0x119
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).RefreshWithoutUpgrade(0xc00048d7a0, {0x8858b18, 0xc004359560}, 0xc00436a820, {0x70111e0, 0xc001adfb08})
github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:1089 +0x529
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ReadResource(0xc000b55668, {0x8858b18?, 0xc0043594a0?}, 0xc004225d40)
github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/grpc_provider.go:667 +0x4aa
github.com/hashicorp/terraform-plugin-mux/tf5muxserver.(*muxServer).ReadResource(0xc001e4b420, {0x8858b18?, 0xc0043591d0?}, 0xc004225d40)
github.com/hashicorp/[email protected]/tf5muxserver/mux_server_ReadResource.go:35 +0x193
github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server.(*server).ReadResource(0xc00126bcc0, {0x8858b18?, 0xc0043589f0?}, 0xc0006133b0)
github.com/hashicorp/[email protected]/tfprotov5/tf5server/server.go:783 +0x309
github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_ReadResource_Handler({0x7d172e0, 0xc00126bcc0}, {0x8858b18, 0xc0043589f0}, 0xc00434c280, 0x0)
github.com/hashicorp/[email protected]/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:482 +0x1a6
google.golang.org/grpc.(*Server).processUnaryRPC(0xc000169000, {0x8858b18, 0xc004358960}, {0x8885520, 0xc0001f4900}, 0xc00431c360, 0xc001a45500, 0xdd30388, 0x0)
google.golang.org/[email protected]/server.go:1369 +0xdf8
google.golang.org/grpc.(*Server).handleStream(0xc000169000, {0x8885520, 0xc0001f4900}, 0xc00431c360)
google.golang.org/[email protected]/server.go:1780 +0xe8b
google.golang.org/grpc.(*Server).serveStreams.func2.1()
google.golang.org/[email protected]/server.go:1019 +0x8b
created by google.golang.org/grpc.(*Server).serveStreams.func2 in goroutine 27
google.golang.org/[email protected]/server.go:1030 +0x125
Error: The terraform-provider-azurerm_v4.6.0_x5 plugin crashed!
This is always indicative of a bug within the plugin. It would be immensely
helpful if you could report the crash with the plugin's maintainers so that it
can be fixed. The output above should help diagnose the issue.
Expected Behaviour
terraform plan should run normally.
Actual Behaviour
Plugin crashes
Steps to Reproduce
- Set azurerm =
4.6.0 - terraform plan
- plugin crash
When I set azurerm version to 4.5.0 there are no issues with terraform plan
Important Factoids
No response
References
No response