【问题标题】:how to run .show operation command using azure kusto for python如何使用 azure kusto for python 运行 .show 操作命令
【发布时间】:2019-10-28 11:07:52
【问题描述】:

我想知道,是否可以运行命令:.show operation details in python azure func using azure-kusto-data。

我的代码正在运行,但没有打印任何内容。

 client.execute(db, query) for row in response.primary_results[0]:
     print("value at 0 {}".format(row[0]))
     print("\n")
     print("Path:{}".format(row["Path"]))


【问题讨论】:

    标签: azure azure-functions azure-data-explorer kql


    【解决方案1】:

    可以使用此 SDK 运行每个有效查询,包括此查询。 此代码示例应该可以工作,您应该得到查询结果: .show operation operation-id details

    请注意,并非所有控制命令都保留其结果,并且只有在操作成功完成后才能调用.show operation details command。使用.show operations operation-id 命令)在调用此命令之前检查操作的状态。

    P.S 可以在各种情况下返回空结果,例如导出空表时。

    【讨论】:

      猜你喜欢
      • 2017-12-11
      • 2019-01-03
      • 2013-02-01
      • 2022-12-29
      • 2022-12-12
      • 2017-08-20
      • 1970-01-01
      • 2022-01-12
      • 2014-06-01
      相关资源
      最近更新 更多