Alert-get incident showing resouce not found error in azure sentinel playbook - 404 error

%3CLINGO-SUB%20id%3D%22lingo-sub-2167642%22%20slang%3D%22en-US%22%3EAlert-get%20incident%20showing%20resouce%20not%20found%20error%20in%20azure%20sentinel%20playbook%20-%20404%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2167642%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20All%20%2C%3C%2FP%3E%3CP%3EI%20have%20created%20a%20playbook%20in%20Azure%26nbsp%3B%20Sentinel%20to%20trigger%20a%20ticket%20in%20Service%20Now%26nbsp%3B%20for%20high%20severity%20incident%20in%20sentinel.%20%3CSPAN%3EAlthough%20I%20have%20deployed%20the%20playbook%20successfully%20but%20when%20I%20%3C%2FSPAN%3E%3CSTRONG%3Erun%20trigger%3C%2FSTRONG%3E%3CSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eit%20always%20fail%20on%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSTRONG%3EAlert%20-%20Get%20incident%3C%2FSTRONG%3E%3CSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Estep%20with%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSTRONG%3E404%20resource%20not%20found%3C%2FSTRONG%3E%3CSPAN%3E%3CSPAN%3E.%20A%3C%2FSPAN%3Ere%20there%20any%20special%20permissions%20needed%20%3F%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3EWhat%20am%20i%20missing%3F%20Any%20info%20from%20someone%20that%20already%20deploy%20it%20%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EHere%20is%20the%20output%20at%20Alert-get%20incident%20connector%20%3A%3C%2FP%3E%3CDIV%3E%3CDIV%3E%3CSPAN%3E%7B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22statusCode%22%3C%2FSPAN%3E%3CSPAN%3E%3A%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E404%3C%2FSPAN%3E%3CSPAN%3E%2C%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22headers%22%3C%2FSPAN%3E%3CSPAN%3E%3A%26nbsp%3B%7B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22Access-Control-Allow-Methods%22%3C%2FSPAN%3E%3CSPAN%3E%3A%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22GET%2C%26nbsp%3BPUT%2C%26nbsp%3BPATCH%2C%26nbsp%3BDELETE%2C%26nbsp%3BPOST%22%3C%2FSPAN%3E%3CSPAN%3E%2C%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22Access-Control-Allow-Origin%22%3C%2FSPAN%3E%3CSPAN%3E%3A%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22*%22%3C%2FSPAN%3E%3CSPAN%3E%2C%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22Access-Control-Max-Age%22%3C%2FSPAN%3E%3CSPAN%3E%3A%26nbsp%3B%3C%2FSPAN%3E%3C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N%3E%22application%2Fjson%22%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%7D%2C%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22body%22%3C%2FSPAN%3E%3CSPAN%3E%3A%26nbsp%3B%7B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22statusCode%22%3C%2FSPAN%3E%3CSPAN%3E%3A%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E404%3C%2FSPAN%3E%3CSPAN%3E%2C%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22message%22%3C%2FSPAN%3E%3CSPAN%3E%3A%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22Resource%26nbsp%3Bnot%26nbsp%3Bfound%22%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%7D%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%7D%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3EI%20have%20contributor%20role%20in%20sentinel.%20Below%20is%20the%20snap%20of%20playbook%20created%20to%20trigger%20bidirectional%20sync%20to%20create%20and%20update%20incident%20in%20service%20now.%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22cyberHardik_1-1614304807181.png%22%20style%3D%22width%3A%201041px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F258242i0EAAAE3A455D2FFE%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22cyberHardik_1-1614304807181.png%22%20alt%3D%22cyberHardik_1-1614304807181.png%22%20%2F%3E%3C%2FSPAN%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECan%20someone%20help%20me%20to%20fix%20this%20issue%20%3F%3C%2FP%3E%3C%2FDIV%3E%3CDIV%3E%3CBR%20%2F%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2200709%22%20slang%3D%22en-US%22%3ERe%3A%20Alert-get%20incident%20showing%20resouce%20not%20found%20error%20in%20azure%20sentinel%20playbook%20-%20404%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2200709%22%20slang%3D%22en-US%22%3EHi%2C%3CBR%20%2F%3Eis%20there%20any%20feedback%20on%20this%20%3F%3C%2FLINGO-BODY%3E
Occasional Contributor

Hi All ,

I have created a playbook in Azure  Sentinel to trigger a ticket in Service Now  for high severity incident in sentinel. Although I have deployed the playbook successfully but when I run trigger it always fail on the Alert - Get incident step with 404 resource not found. Are there any special permissions needed ?
What am i missing? Any info from someone that already deploy it ?

Here is the output at Alert-get incident connector :

{
    "statusCode"404,
    "headers": {
        "Access-Control-Allow-Methods""GET, PUT, PATCH, DELETE, POST",
        "Access-Control-Allow-Origin""*",
        "Access-Control-Max-Age""3600",
        "Access-Control-Expose-Headers""*",
        "Date""Tue, 23 Feb 2021 19:05:39 GMT",
        "Content-Length""54",
        "Content-Type""application/json"
    },
    "body": {
        "statusCode"404,
        "message""Resource not found"
    }
}
I have contributor role in sentinel. Below is the snap of playbook created to trigger bidirectional sync to create and update incident in service now.
 
cyberHardik_1-1614304807181.png

 

Can someone help me to fix this issue ?


 

 
8 Replies
Can you share the input of the get incident step?
Can you verify in the GUI that the alert is part of an incident? (through the incidents tab)
Did you find a solution to this? I’m also noticing this error.
Hi cyberHardik,

This is caused by a small race condition at the time the incident is being ingested.

1. This should be fixed as we added retry mechanism to this action.
2. Another thing you can do is to add a small delay action (1-3 seconds should be more than enough)
3. You can use the new Incident Automation feature in Azure Sentinel to run playbooks based on Incident creation trigger and not alert creation - This is the recommended solution

Yaron
Well, I did checked the input and it was only the path through which it is trying to get incident.

below is the exact input :
{
"connection": {
"name": "/subscriptions/7f40b492-8297-4ke2-9b9f-4g416e3p6e3f/resourceGroups/PAC-PUC-KSG-PRD-SIEM/providers/Microsoft.Web/connections/azuresentinel-1"
}
}
Also i verified that alert was part of incident.
Thanx alot for your reply. Could you please help me how I can add delay action.

I did tried the recommended solution but when i saved .My logic app got crashed and now I have to built it again and run to check whether it is going to successful or not.

@cyberHardik 

 

There is a build in delay action, look for it in the search bar in the actions selector.

landau07_0-1616317226464.png

 

But again, I highly recommend you to check your playbook and make it run as you expected so you will be able to run in as a result for Incidnet automation (which is currently in gradual released and will be fully released in a week or two)

 

~Yaron :)