How can I set up Logic App to close DevOps bugs when alarm is 'Resolved'?

%3CLINGO-SUB%20id%3D%22lingo-sub-1504010%22%20slang%3D%22en-US%22%3EHow%20can%20I%20set%20up%20Logic%20App%20to%20close%20DevOps%20bugs%20when%20alarm%20is%20'Resolved'%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1504010%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EApologies%20if%20this%20is%20the%20wrong%20space!%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20a%20Logic%20App%20set%20up%20in%20our%20Azure%20production%20environment%20which%20is%20set%20to%20trigger%20a%20template%20JSON%20file%20with%20various%20data%20about%20the%20environment%20and%20log%20Bugs%20in%20our%20DevOps%20backlog.%20It%20is%20only%20currently%20set%20to%20raise%20the%20bugs%20but%20I%20would%20like%20to%20close%20the%20open%20bug%20when%20the%20trigger%20is%20'Resolved'.%20I've%20had%20a%20look%20at%20applying%20a%20Condition%20to%20the%20logic%20app%20to%20update%20a%20work%20item%20but%20it's%20asking%20for%20specific%20work%20item%20ID.%20I%20can%20only%20tie%20up%20the%20Fired%20and%20Resolved%20states%20by%20AlertID%20and%20can't%20think%20of%20a%20way%20to%20achieve%20this!!%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHas%20anyone%20set%20up%20a%20Logic%20App%2FPA%20(Flow)%20to%20close%20off%20open%20bugs%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAppreciate%20any%20help%20that%20you%20can%20give!!%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1504010%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20Log%20Analytics%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1508291%22%20slang%3D%22en-US%22%3ERe%3A%20How%20can%20I%20set%20up%20Logic%20App%20to%20close%20DevOps%20bugs%20when%20alarm%20is%20'Resolved'%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1508291%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F718062%22%20target%3D%22_blank%22%3E%40Barquois%3C%2FA%3E%26nbsp%3B%2C%20I%20think%20that's%20the%20wrong%20space...%20is%20this%20related%20to%20Log%20Analytics%3F%20Are%20the%20alerts%20based%20on%20your%20logs%3F%20help%20me%20understand%20how%20we%20might%20be%20able%20to%20help%20you...%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1508328%22%20slang%3D%22en-US%22%3ERe%3A%20How%20can%20I%20set%20up%20Logic%20App%20to%20close%20DevOps%20bugs%20when%20alarm%20is%20'Resolved'%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1508328%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F54923%22%20target%3D%22_blank%22%3E%40Noa%20Kuperberg%3C%2FA%3E%26nbsp%3BYes%2C%20this%20is%20to%20do%20with%20Log%20Analytics.%20I%20essentially%20have%20a%20JSON%20template%20that%20triggers%20from%20our%20Azure%20service%20platform.%20It%20creates%20an%20Azure%20Bug%20when%20an%20alarm%20is%20fired%20and%20sends%20an%20email.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20I%20would%20like%20to%20do%20is%20set%20up%20an%20automation%20to%20close%20a%20fired%20alarm%20bug%20when%20the%20resolved%20alarm%20is%20fired.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20know%20that%20the%20AlertID's%20can%20be%20matched%20up%20on%20a%201%20to%201%20basis%20I%20just%20can't%20figure%20out%20how%20to%20make%20that%20link%20between%20the%20fired%20and%20resolved%20alarms%20to%20close%20off%20the%20corresponding%20created%20bug.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDoes%20that%20explain%20any%20better%3F%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1518260%22%20slang%3D%22en-US%22%3ERe%3A%20How%20can%20I%20set%20up%20Logic%20App%20to%20close%20DevOps%20bugs%20when%20alarm%20is%20'Resolved'%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1518260%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F718062%22%20target%3D%22_blank%22%3E%40Barquois%3C%2FA%3E%2C%26nbsp%3Bunfortunately%20no%2C%20I%20see%20it%20related%20to%20alerts%20and%20LogicApp%2C%20but%20they%20are%20both%20not%20managed%20in%20this%20forum.%20I%20think%20you%20should%20reach%20out%20to%26nbsp%3BYaniv%20Lavi%20%3CYANIV.LAVI%3E%2C%20the%20PM%20of%20log-based%20alerts.%3C%2FYANIV.LAVI%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1526284%22%20slang%3D%22en-US%22%3ERe%3A%20How%20can%20I%20set%20up%20Logic%20App%20to%20close%20DevOps%20bugs%20when%20alarm%20is%20'Resolved'%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1526284%22%20slang%3D%22en-US%22%3E%3CP%3E%40%3CA%20href%3D%22mailto%3Ayaniv.lavi%40microsoft.com%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Eyaniv.lavi%40microsoft.com%3C%2FA%3E%26nbsp%3BAre%20you%20able%20to%20be%20of%20any%20assistance%20with%20this%3F%20%26nbsp%3BI%20was%20referred%20to%20your%20good%20self%20as%20someone%20who%20might%20be%20able%20to%20help%3F%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20essentially%20have%20a%20JSON%20template%20that%20triggers%20from%20our%20Azure%20service%20platform.%20It%20creates%20an%20Azure%20Bug%20when%20an%20alarm%20is%20fired%20and%20sends%20an%20email.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20I%20would%20like%20to%20do%20is%20set%20up%20an%20automation%20to%20close%20a%20fired%20alarm%20bug%20when%20the%20resolved%20alarm%20is%20fired.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20know%20that%20the%20AlertID's%20can%20be%20matched%20up%20on%20a%201%20to%201%20basis%20I%20just%20can't%20figure%20out%20how%20to%20make%20that%20link%20between%20the%20fired%20and%20resolved%20alarms%20to%20close%20off%20the%20corresponding%20created%20bug.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Hi, 

 

Apologies if this is the wrong space! 

 

I have a Logic App set up in our Azure production environment which is set to trigger a template JSON file with various data about the environment and log Bugs in our DevOps backlog. It is only currently set to raise the bugs but I would like to close the open bug when the trigger is 'Resolved'. I've had a look at applying a Condition to the logic app to update a work item but it's asking for specific work item ID. I can only tie up the Fired and Resolved states by AlertID and can't think of a way to achieve this!! 

 

Has anyone set up a Logic App/PA (Flow) to close off open bugs?

 

Appreciate any help that you can give!! 

4 Replies

Hi @Barquois , I think that's the wrong space... is this related to Log Analytics? Are the alerts based on your logs? help me understand how we might be able to help you...

@Noa Kuperberg Yes, this is to do with Log Analytics. I essentially have a JSON template that triggers from our Azure service platform. It creates an Azure Bug when an alarm is fired and sends an email. 

 

What I would like to do is set up an automation to close a fired alarm bug when the resolved alarm is fired.

 

I know that the AlertID's can be matched up on a 1 to 1 basis I just can't figure out how to make that link between the fired and resolved alarms to close off the corresponding created bug. 

 

Does that explain any better?  

@Barquois, unfortunately no, I see it related to alerts and LogicApp, but they are both not managed in this forum. I think you should reach out to Yaniv Lavi <Yaniv.Lavi@microsoft.com>, the PM of log-based alerts.

@yaniv.lavi@microsoft.com Are you able to be of any assistance with this?  I was referred to your good self as someone who might be able to help? 

 

I essentially have a JSON template that triggers from our Azure service platform. It creates an Azure Bug when an alarm is fired and sends an email. 

 

What I would like to do is set up an automation to close a fired alarm bug when the resolved alarm is fired.

 

I know that the AlertID's can be matched up on a 1 to 1 basis I just can't figure out how to make that link between the fired and resolved alarms to close off the corresponding created bug.