Closed andrewmcharg closed 1 year ago
Hi andrewmcharg, thanks for submitting this. I agree "INGEST-[ClusterName]" is a strange serviceAlias.
Can you let me know a bit more about how you are configuring the provider and defining the table? Some code examples would be very useful in reproducing this one.
Hi @slwbuild,
Just to be clear [ClusterName]
was me sanitising the log to remove our cluster name!
The provider is configured by setting ADX_CLIENT_ID
, ADX_CLIENT_SECRET
and ADX_TENANT_ID
as environment variables. The adx_endpoint
is set inside the provider block in Terraform:
locals {
kusto_cluster_name = "our0cluster0name"
adx_url = "https://private-${local.kusto_cluster_name}.ukwest.kusto.windows.net"
}
provider "adx" {
adx_endpoint = local.adx_url
}
The table is defined in HCL:
resource "adx_table" "raw" {
name = "Table1Raw"
database_name = azurerm_kusto_database.main.name
column {
name = "Records"
type = "dynamic"
}
}
I've confirmed that sending a .show
command to the ingestion endpoint results in a syntax exception like you are seeing.
Also the exception contained machine name "KDATAMANA000000" which should be something like "KCOMPUTE000000"
Nothing within the v0.0.14
upgrade should have caused your connections to be made to the ingestion endpoint instead of compute.
Can you post some additional details about your network setup?
https://${local.kusto_cluster_name}.ukwest.kusto.windows.net
@slwbuild, fixed this by using the public endpoint URL, thanks for your help!
After upgrading from
v0.0.13
tov0.0.14
of the provider, the following error occurs when Terraform attempts to refresh the state of the resource:I've tried using
TF_LOG='TRACE'
but the provider doesn't seem to surface any additional (useful) logs with this set. Looking at theserviceAlias
line it seems as though the Ingest URL is being used here instead of the Cluster URL, causing the control command to fail?