Skip to content

Commit

Permalink
Merge pull request #121 from Yaniv-Shasha/fixes
Browse files Browse the repository at this point in the history
fix json errors
  • Loading branch information
KwachSean authored Sep 20, 2024
2 parents 9957dbf + 5f7cdca commit 87ecf14
Showing 1 changed file with 29 additions and 172 deletions.
201 changes: 29 additions & 172 deletions Logic Apps/Copilot-Sentinel_investigation-DynamicSev/azuredeploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@
},
"Compose": {
"runAfter": {
"Parse_JSON_4": [
"Tags_collection": [
"Succeeded"
]
},
"type": "Compose",
"inputs": "@split(body('Parse_JSON_4')?['Evaluation Result Content'],',')"
"inputs": "@split(body('Tags_collection')?['EvaluationResultContent'],',')"
},
"Create_HTML_table": {
"runAfter": {
Expand Down Expand Up @@ -116,7 +116,7 @@
"type": "ApiConnection",
"inputs": {
"body": {
"PromptContent": " Show the authentication methods setup for each user involved in that incident. Especially indicate whether they have MFA enabled.",
"PromptContent": "Show the authentication methods setup for each user involved in that incident. Especially indicate whether they have MFA enabled.",
"SessionId": "@body('GetReputationsByIpAddresses')?['sessionId']",
"SkillName": "GetEntraUserDetails"
},
Expand All @@ -138,7 +138,7 @@
"type": "ApiConnection",
"inputs": {
"body": {
"PromptContent": " Tell me about the entities associated with that incident.",
"PromptContent": "Tell me about the entities associated with that incident.",
"SessionId": "@body('GetSentinelIncident')?['sessionId']",
"SkillName": "GetIncidentEntities"
},
Expand Down Expand Up @@ -218,7 +218,7 @@
},
"Initialize_variable": {
"runAfter": {
"Parse_JSON_6": [
"Report": [
"Succeeded"
]
},
Expand All @@ -228,7 +228,24 @@
{
"name": "summrize_report",
"type": "string",
"value": "@body('Parse_JSON_6')?['Evaluation Result Content']"
"value": "@body('Report')?['EvaluationResultContent']"
}
]
}
},
"Initialize_variable_2": {
"runAfter": {
"classify_incident": [
"Succeeded"
]
},
"type": "InitializeVariable",
"inputs": {
"variables": [
{
"name": "sev",
"type": "string",
"value": "@trim(body('classify_incident')?['EvaluationResultContent'])"
}
]
}
Expand Down Expand Up @@ -579,166 +596,6 @@
}
}
},
"Parse_JSON_2": {
"runAfter": {
"classify_incident": [
"Succeeded"
]
},
"type": "ParseJson",
"inputs": {
"content": "@body('classify_incident')",
"schema": {
"properties": {
"Evaluation Result Content": {
"type": "string"
},
"Evaluation Result Type": {
"type": "string"
},
"Next Prompt Suggestions": {
},
"Prompt Content": {
"type": "string"
},
"SessionId": {
"type": "string"
},
"Skill Name": {
}
},
"type": "object"
}
}
},
"Parse_JSON_3": {
"runAfter": {
"Explain_classify": [
"Succeeded"
]
},
"type": "ParseJson",
"inputs": {
"content": "@body('Explain_classify')",
"schema": {
"properties": {
"Evaluation Result Content": {
"type": "string"
},
"Evaluation Result Type": {
"type": "string"
},
"Next Prompt Suggestions": {
},
"Prompt Content": {
"type": "string"
},
"SessionId": {
"type": "string"
},
"Skill Name": {
}
},
"type": "object"
}
}
},
"Parse_JSON_4": {
"runAfter": {
"Tags_collection": [
"Succeeded"
]
},
"type": "ParseJson",
"inputs": {
"content": "@body('Tags_collection')",
"schema": {
"properties": {
"Evaluation Result Content": {
"type": "string"
},
"Evaluation Result Type": {
"type": "string"
},
"Next Prompt Suggestions": {
},
"Prompt Content": {
"type": "string"
},
"SessionId": {
"type": "string"
},
"Skill Name": {
}
},
"type": "object"
}
}
},
"Parse_JSON_5": {
"runAfter": {
"adding_tags_for_the_incident": [
"Succeeded"
]
},
"type": "ParseJson",
"inputs": {
"content": "@body('Tags_collection')",
"schema": {
"properties": {
"Evaluation Result Content": {
"type": "string"
},
"Evaluation Result Type": {
"type": "string"
},
"Next Prompt Suggestions": {
},
"Prompt Content": {
"type": "string"
},
"SessionId": {
"type": "string"
},
"Skill Name": {
}
},
"type": "object"
}
}
},
"Parse_JSON_6": {
"runAfter": {
"Report": [
"Succeeded"
]
},
"type": "ParseJson",
"inputs": {
"content": "@body('Report')",
"schema": {
"properties": {
"Evaluation Result Content": {
"type": "string"
},
"Evaluation Result Type": {
"type": "string"
},
"Next Prompt Suggestions": {
},
"Prompt Content": {
"type": "string"
},
"SessionId": {
"type": "string"
},
"Skill Name": {
}
},
"type": "object"
}
}
},
"Report": {
"runAfter": {
"GetIntuneDevices": [
Expand All @@ -763,7 +620,7 @@
},
"Report_answer": {
"runAfter": {
"Parse_JSON_5": [
"adding_tags_for_the_incident": [
"Succeeded"
]
},
Expand All @@ -773,7 +630,7 @@
{
"name": "Answer",
"type": "array",
"value": "@array(body('Parse_JSON_5')?['Evaluation Result Content'])"
"value": "@array(body('Tags_collection')?['EvaluationResultContent'])"
}
]
}
Expand All @@ -795,7 +652,7 @@
},
"Switch": {
"runAfter": {
"Parse_JSON_2": [
"Initialize_variable_2": [
"Succeeded"
]
},
Expand Down Expand Up @@ -877,7 +734,7 @@
"actions": {
}
},
"expression": "@toLower(body('Parse_JSON_2')?['Evaluation Result Content'])",
"expression": "@toLower(variables('sev'))",
"type": "Switch"
},
"Tags_collection": {
Expand Down Expand Up @@ -978,7 +835,7 @@
},
"classified_explain": {
"runAfter": {
"Parse_JSON_3": [
"Explain_classify": [
"Succeeded"
]
},
Expand All @@ -988,7 +845,7 @@
{
"name": "classified explain",
"type": "string",
"value": "@body('Parse_JSON_3')?['Evaluation Result Content']"
"value": "@body('Explain_classify')?['EvaluationResultContent']"
}
]
}
Expand Down

0 comments on commit 87ecf14

Please sign in to comment.