如何从 Azure 应用程序见解中删除数据

How to delete the data from the Azure application insights

我想从我的应用程序洞察中删除跟踪数据 table。谁能告诉我该怎么做。

我正在关注微软的以下文章, https://docs.microsoft.com/en-us/rest/api/application-insights/components/purge

我正在尝试传递以下请求正文,

{
"table": "traces",
"filters": [
{
  "column": "timestamp",
  "operator": ">",
  "value": "2017-09-01T00:00:00"
}
]
}

我得到响应代码:202,但我仍然在分析中看到数据,我在其中查询跟踪。

请告诉我,如何删除我的应用程序洞察资源上有痕迹的数据。

根据这个SO issue

是的,可以清除 Application Insights 数据,但操作可能需要一段时间(例如 2-3 天)才能完成。

所以请稍候:)

对于痕迹删除操作,您需要在清除操作主体中使用单独的 table 名称作为 "Traces"。然后您可以使用 get purge status REST API 操作检查状态。参考了解更多-https://sanganakauthority.blogspot.com/2019/06/how-to-delete-or-purge-azure.html