-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Open
Labels
Description
Is there an existing issue for this?
- I have searched the existing issues
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or "me too" comments, 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
Terraform Version
1.2.3
AzureRM Provider Version
3.7.0
Affected Resource(s)/Data Source(s)
azurerm_kusto_database_principal_assignment
Terraform Configuration Files
resource "azurerm_user_assigned_identity" "api_identity" {
resource_group_name = var.resource_group_name
location = var.location
name = "id-example"
}
resource "azurerm_kusto_database_principal_assignment" "adx_principal_assignment" {
name = "adx-example-viewer"
resource_group_name = var.resource_group_name
cluster_name = var.adx_cluster_name
database_name = var.example_db
tenant_id = data.azurerm_client_config.current.tenant_id
principal_id = azurerm_user_assigned_identity.api_identity.principal_id
principal_type = "App"
role = "Viewer"
}
Debug Output/Panic Output
Error: waiting for creation of Database Principal Assignment: (Principal Assignment Name "adx-example-viewer" / Database Name "example_db" / Cluster Name "examplecluster" / Resource Group "example-rg"): Code="BadInput" Message="[BadRequest] Entity ID 'xxxxxx-xxxx' of type 'AAD Application Id' was not found in AAD tenant 'xxxxxx'."
Expected Behaviour
I would expect the assignment to complete.
Actual Behaviour
The ADX assignment is not able to find the managed identity in the tenant. This seems to be a timing issue as the ID is available if manually searching AAD. After creation of the managed identity it must take some time for it to be available to ADX.
Steps to Reproduce
No response
Important Factoids
No response
References
No response
AmyJeanes