Open sebader opened 1 year ago
Hi @sebader , thanks for raising this issue. This property is nessesary because it is an independant azure resource. To identify a azure resource, you have to specify a name. The id of this resource is like
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/principalAssignments/{principalAssignmentName}
For the doc missing part, I have raised PR to fix that.
Ok understood. I would still opt to make it optional in the same way as for role assignments https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/role_assignment
name - (Optional) A unique UUID/GUID for this Role Assignment - one will be generated if not specified. Changing this forces a new resource to be created.
@sebader
Ok understood. I would still opt to make it optional in the same way as for role assignments
Agreed, we should be generating one in the Create unless a user explicitly specifies one, would you be able to take a look into that one @liuwuliuyun?
re-opening this since we should also generate one in the create if unspecified
@sebader
Ok understood. I would still opt to make it optional in the same way as for role assignments
Agreed, we should be generating one in the Create unless a user explicitly specifies one, would you be able to take a look into that one @liuwuliuyun?
Ok, let me look into this and keep tracking that in this PR.
Is there an existing issue for this?
Community Note
Terraform Version
1.3.2
AzureRM Provider Version
3.31.0
Affected Resource(s)/Data Source(s)
azurerm_kusto_database_principal_assignment
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
No response
Actual Behaviour
azurerm_kusto_database_principal_assignment
requires a propertyname
. This is missing from the docs (although it is mentioned in the sample). But more importantly, it is not clear to me if this field is actually required?! It could just be auto-generated by Terraform like for regular RBAC assignments.Steps to Reproduce
No response
Important Factoids
No response
References
No response