@@ -93,6 +93,13 @@ kusto_database_endpoint <- function(..., .connection_string=NULL, .query_token=N
9393 # fix all property names to a given (sub)set, remove quotes from quoted values
9494 props <- normalize_connstring_properties(props )
9595
96+ # Make bare cluster name into FQDN for server if it's not already
97+ if (! startsWith(props $ server , " https://" ))
98+ {
99+ props $ server <- paste0(" https://" , props $ server )
100+ if (! endsWith(props $ server , " .kusto.windows.net" ))
101+ props $ server <- paste0(props $ server , " .kusto.windows.net" )
102+ }
96103 props $ token <- find_endpoint_token(props , .query_token )
97104
98105 props $ use_integer64 <- .use_integer64
@@ -109,7 +116,7 @@ normalize_connstring_properties <- function(properties)
109116 property_list <- list (
110117 # general properties
111118 traceclientversion = " traceclientversion" ,
112- server = c(" server" , " addr" , " address" , " network address" , " datasource" , " host" ),
119+ server = c(" server" , " addr" , " address" , " network address" , " datasource" , " host" , " cluster " ),
113120 database = c(" database" , " initialcatalog" , " dbname" ),
114121 tenantid = c(" tenantid" , " authority" ),
115122 queryconsistency = " queryconsistency" ,
@@ -182,7 +189,7 @@ find_endpoint_token <- function(properties, .query_token)
182189 {
183190 message(" No app ID supplied; using KustoClient app" )
184191 properties $ appclientid <- .kusto_app_id
185- auth_type <- " device_code "
192+ auth_type <- " authorization_code "
186193 }
187194 else auth_type <- NULL # KustoClient needs devicecode, otherwise let get_azure_token choose
188195
0 commit comments