datasource azurerm_role_definition no longer includes scope definition since v3.86 #24402
Closed
1 task done
Labels
Milestone
Is there an existing issue for this?
Community Note
Terraform Version
1.6.6
AzureRM Provider Version
3.86.0
Affected Data Source
azurerm_role_definition
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
When adding the scope argument in the datasource the scope should be added to the role_definition_id. The role is created with the correct scope.
Actual Behaviour
╷
│ Error: authorization.RoleAssignmentsClient#Create: Failure responding to request: StatusCode=400 -- Original Error: autorest/azure: Service returned an error. Status=400 Code="BadRequestFormat" Message="The request was incorrectly formatted."
│
│ with azurerm_role_assignment.RA-RG-CONTRIBUTOR,
│ on role-assignment.tf line 1, in resource "azurerm_role_assignment" "RA-RG-CONTRIBUTOR":
│ 1: resource "azurerm_role_assignment" "RA-RG-CONTRIBUTOR" {
│
╵
╷
Steps to Reproduce
Reverting to 3.85.0 solves the issue as the datasource now includes the scope
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: