logicapps
logicapps copied to clipboard
The Logic Apps workflow stuck at Create Job step
Describe the Bug with repro steps
- Call logic apps via Thunder Client (you can use postman, that's ok too)
- Wait for processing
- Check runbook run history in Automation Account -> we've found runbook completed
- Back to Logic Apps, we found it stuck at Create Job step (for 5 mins at least after runbook has finished it's job)
What type of Logic App Is this happening in?
Consumption (Portal)
Which operating system are you using?
Windows
Are you using new designer or old designer
New Designer
Did you refer to the TSG before filing this issue? https://aka.ms/lauxtsg
No
Workflow JSON
{
"definition": {
"$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
"actions": {
"Append_Service_ID": {
"inputs": {
"variables": [
{
"name": "Result",
"type": "object",
"value": "@union(triggerBody(),body('Parse_JSON'))"
}
]
},
"runAfter": {
"Parse_JSON": [
"Succeeded"
]
},
"type": "InitializeVariable"
},
"Create_job": {
"inputs": {
"body": {
"properties": {
"parameters": {
"DisplayName": "@triggerBody()?['displayName']",
"GroupEngName": "@triggerBody()?['projectCode']",
"groupOwnerUPN": "[email protected]",
"groupType": "CrossOrg",
"tenantName": "gurulabtw"
}
}
},
"host": {
"connection": {
"name": "@parameters('$connections')['azureautomation-1']['connectionId']"
}
},
"method": "put",
"path": "/subscriptions/@{encodeURIComponent('c19817e9-a05b-40ab-a2a7-ab9b50c2f5ec')}/resourceGroups/@{encodeURIComponent('GuruAssistant')}/providers/Microsoft.Automation/automationAccounts/@{encodeURIComponent('gurulab-runbooks')}/jobs",
"queries": {
"runbookName": "New-UnifiedGroup",
"wait": true,
"x-ms-api-version": "2015-10-31"
}
},
"runAfter": {
"Response": [
"Succeeded"
]
},
"type": "ApiConnection"
},
"Get_job_output": {
"inputs": {
"host": {
"connection": {
"name": "@parameters('$connections')['azureautomation-1']['connectionId']"
}
},
"method": "get",
"path": "/subscriptions/@{encodeURIComponent('c19817e9-a05b-40ab-a2a7-ab9b50c2f5ec')}/resourceGroups/@{encodeURIComponent('GuruAssistant')}/providers/Microsoft.Automation/automationAccounts/@{encodeURIComponent('gurulab-runbooks')}/jobs/@{encodeURIComponent(body('Create_job')?['properties']?['jobId'])}/output",
"queries": {
"x-ms-api-version": "2015-10-31"
}
},
"runAfter": {
"Create_job": [
"Succeeded"
]
},
"type": "ApiConnection"
},
"HTTP": {
"inputs": {
"body": "@variables('Result')",
"headers": {
"Content-Type": "application/json"
},
"method": "POST",
"uri": "https://somewherenotexist.com.tw"
},
"runAfter": {
"Append_Service_ID": [
"Succeeded"
]
},
"runtimeConfiguration": {
"contentTransfer": {
"transferMode": "Chunked"
}
},
"type": "Http"
},
"Parse_JSON": {
"inputs": {
"content": "@json(body('Get_job_output'))",
"schema": {
"properties": {
"displayName": {
"type": "string"
},
"groupEngName": {
"type": "string"
},
"msg": {
"type": "string"
},
"objectId": {
"type": "string"
},
"siteUrl": {
"type": "string"
},
"status": {
"type": "string"
},
"statusCode": {
"type": "integer"
}
},
"required": [
"displayName",
"groupEngName",
"statusCode",
"status",
"msg"
],
"type": "object"
}
},
"runAfter": {
"Get_job_output": [
"Succeeded"
]
},
"type": "ParseJson"
},
"Response": {
"inputs": {
"body": {
"status": "Accepted"
},
"headers": {
"Content-Type": "application/json"
},
"statusCode": 202
},
"kind": "Http",
"runAfter": {},
"type": "Response"
}
},
"contentVersion": "1.0.0.0",
"outputs": {},
"parameters": {
"$connections": {
"defaultValue": {},
"type": "Object"
}
},
"triggers": {
"project-group": {
"inputs": {
"method": "POST",
"schema": {
"properties": {
"displayName": {
"type": "string"
},
"projectCode": {
"type": "string"
},
"serviceId": {
"type": "string"
},
"sign": {
"type": "string"
},
"timestamp": {
"type": "integer"
},
"workGroupId": {
"type": "string"
}
},
"type": "object"
}
},
"kind": "Http",
"operationOptions": "EnableSchemaValidation, SuppressWorkflowHeadersOnResponse",
"type": "Request"
}
}
},
"parameters": {
"$connections": {
"value": {
"azureautomation-1": {
"connectionId": "/subscriptions/c19817e9-a05b-40ab-a2a7-ab9b50c2f5ec/resourceGroups/GuruAssistant/providers/Microsoft.Web/connections/azureautomation-1",
"connectionName": "azureautomation-1",
"connectionProperties": {
"authentication": {
"type": "ManagedServiceIdentity"
}
},
"id": "/subscriptions/c19817e9-a05b-40ab-a2a7-ab9b50c2f5ec/providers/Microsoft.Web/locations/japaneast/managedApis/azureautomation"
}
}
}
}
}
Screenshots or Videos
No response
Browser
Edge
Additional context
No response