ARM Template deployment: Resource Group scope failed : 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.

Genesis Barrios 1 Reputation point
2021-08-31T18:26:07.257+00:00

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"
            }
          }
        }
      }
    }
  ]
}
Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
2,996 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Pramod Valavala 20,611 Reputation points Microsoft Employee
    2021-09-01T09:10:26.957+00:00

    @Genesis Barrios Looks like you are trying to deploy a Single Tenant Logic App Workflow as a Consumption Tier Logic App which is why you are seeing errors. The way Single Tenant Logic Apps works is completely different including how workflows can be deployed.

    The official doc about devops deployment for single tenant logic apps covers these differences in detail. You would still require ARM Templates for underlying infrastructure, but the way workflows are deployed is different as shown in the docs.