【问题标题】:collect the azure activity log收集 azure 活动日志
【发布时间】:2023-03-07 17:13:01
【问题描述】:

我想收集 azure 活动日志。

{ curl -X GET https://management.azure.com/subscriptions/xxxxxxxxxxx/providers/microsoft.insights/eventtypes/management/values?api-version=2015-04-01 }

此 curl 命令出错。

{"error":{"code":"AuthenticationFailed","message":"身份验证失败。缺少'Authorization'标头。"}}}

【问题讨论】:

    标签: azure curl


    【解决方案1】:

    根据错误,看来你需要添加你的授权令牌。

    curl -X GET -H "Authorization: Bearer [TOKEN]" -H "Content-Type: application/json" https://management.azure.com/subscriptions/xxxxxxxxxxx/providers/microsoft.insights/eventtypes/management/values?api-version=2015-04-01
    

    更多详情可以参考link

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-08-20
      • 1970-01-01
      • 2023-03-02
      • 1970-01-01
      • 2022-11-02
      • 1970-01-01
      • 2018-01-26
      • 1970-01-01
      相关资源
      最近更新 更多