收集azure活动日志

收集azure活动日志,azure,curl,Azure,Curl,我想收集azure活动日志 {curl-X GET} 此curl命令给出一个错误 {“error”:{“code”:“AuthenticationFailed”,“message”:“Authentication failed。缺少“Authentication”标头。”} 根据错误,您似乎需要添加授权令牌 curl -X GET -H "Authorization: Bearer [TOKEN]" -H "Content-Type: application/json" https://mana

我想收集azure活动日志

{curl-X GET}

此curl命令给出一个错误

{“error”:{“code”:“AuthenticationFailed”,“message”:“Authentication failed。缺少“Authentication”标头。”}


根据错误,您似乎需要添加授权令牌

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
有关更多详细信息,请参阅此