最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

azure rest api - Microsoft Sentinel API - "triggerRuleRun" ExecutionTimeUtc Always Invalid - Stack Overflow

programmeradmin5浏览0评论

Issue Summary

I'm are trying to manually trigger a Microsoft Sentinel Scheduled Analytics Rule using the triggerRuleRun API, but it always fails with the following error:

{  "errors": {    "Properties.ExecutionTimeUtc": [      "The field ExecutionTimeUtc is invalid."    ]  },  "status": 400}

Even when using the correct timestamp format, the API never accepts ExecutionTimeUtc.

API Request Used

Reference: ;tabs=HTTP

Endpoint:

POST /{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/alertRules/{ruleId}/triggerRuleRun?api-version=2025-01-01-preview

Request Body:

{  "properties": {    "executionTimeUtc": "2025-02-19T05:17:49Z"  }}

Headers:

Authorization: Bearer <Valid-Token>Content-Type: application/json

We followed Microsoft’s official documentation, but the API always fails.

What I Have Tried

  1. Different timestamp formats:

    • "2025-02-19T05:17:49Z"

    • "2025-02-19T05:17:49.000Z"

    • "2025-02-19T05:17:49.970379Z"

    • Using both past and future timestamps.

    • None worked.

  2. Tried different API versions:

    • 2025-01-01-preview

    • 2023-12-01-preview

    • 2023-10-01-preview

    • Same error in all versions.

  3. Checked Analytics Rule settings in Sentinel:

    • The rule is enabled and scheduled.

    • There is no option in the Sentinel UI to allow manual execution.

    • Does Sentinel allow manually triggering scheduled rules?

  4. Verified API permissions:

    • We have Microsoft Sentinel Contributor role.

    • API authentication works for other Sentinel APIs.

  5. Tested in Python instead of Postman:

    • Same 400 Bad Request error.

Questions

  1. Does Sentinel allow manually triggering a scheduled rule via API?

    • If yes, how can we enable it?

    • The documentation does not mention enabling manual execution.

  2. Are there any undocumented restrictions on executionTimeUtc?

    • Does the API require a specific timestamp format?

    • Does executionTimeUtc only support past times?

  3. Is triggerOnDemand: true required in the rule settings?

    • This field is not documented anywhere.

    • How can we check if a rule supports on-demand execution?

发布评论

评论列表(0)

  1. 暂无评论