Hi I am trying to build a release pipeline that builds the artifact for the workflow definition and I am getting this error:
The request content was invalid and could not be deserialized: 'Could not find member 'actions' on object of type 'Template'. Path 'properties.template.actions', line 1, position 155.'.
This is my template:
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {},
"variables": {},
"resources": [
{
"type": "Microsoft.Logic/workflows",
"apiVersion": "2016-06-01",
"name": "logic-poc",
"location": "centralus",
"properties": {
"definition": {
"$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"$connections": {
"defaultValue": {},
"type": "Object"
}
},
"triggers": {
"When_a_blob_is_Added_or_Modified_in_Azure_Storage": {
"inputs": {
"parameters": {
"path": "omitted"
},
"serviceProviderConfiguration": {
"connectionName": "AzureBlob-2",
"operationId": "whenABlobIsAddedOrModified",
"serviceProviderId": "/serviceProviders/AzureBlob"
}
},
"type": "ServiceProvider"
}
},
"actions": {
"Initialize_variable": {
"inputs": {
"variables": [
{
"name": "Refresh Status",
"type": "string"
}
]
},
"runAfter": {
"Reads_Blob_Content_from_Azure_Storage": [
"Succeeded"
]
},
"type": "InitializeVariable"
},
"Reads_Blob_Content_from_Azure_Storage": {
"inputs": {
"parameters": {
"blobName": "trigger-20210811-1.txt",
"containerName": "logicapppoc"
},
"serviceProviderConfiguration": {
"connectionName": "AzureBlob-2",
"operationId": "readBlob",
"serviceProviderId": "/serviceProviders/AzureBlob"
}
},
"runAfter": {},
"type": "ServiceProvider"
},
"Refresh_a_dataset": {
"inputs": {
"host": {
"connection": {
"referenceName": "powerbi"
}
},
"method": "post",
"path": "omitted",
"queries": {
"pbi_source": "powerAutomate"
}
},
"runAfter": {
"Initialize_variable": [
"Succeeded"
]
},
"type": "ApiConnection"
},
"Until": {
"actions": {
"Delay": {
"inputs": {
"interval": {
"count": 15,
"unit": "Second"
}
},
"runAfter": {},
"type": "Wait"
},
"HTTP": {
"inputs": {
"method": "GET",
"uri": "ommitted"
},
"runAfter": {
"Delay": [
"Succeeded"
]
},
"type": "Http"
}
},
"expression": "@equals(variables('Refresh Status'), 'Completed')",
"limit": {
"count": 2,
"timeout": "PT1H"
},
"runAfter": {
"Refresh_a_dataset": [
"Succeeded"
]
},
"type": "Until"
}
}
}
}
}
]
}