Close

Logic App error using workflow parameters

I received the following error when deploying a Logic App via Powershell/ARM: InvalidTemplate. Unable to process template language expressions in action ‘HTTP’ inputs at line ‘1’ and column ‘1420’: ‘The workflow parameter ‘ahakStorageConnectorName’ is not found.’. At the top of the Logic App Json file, I defined the parameters. The parameter values were contained in a separate parameters.json file. I thought it would work when using a deploy statement in Powershell referencing both the json template file and the parameter file, like this: $logicAppTemplate = $baseDir + ‘\ProcessAGP.json’ $logicAppParameter = $baseDir + ‘\ProcessAGP.parameters.json’ New-AzureRmResourceGroupDeployment -Name ‘DeployAGPTst’ -ResourceGroupName $resourcegroup -TemplateFile $logicAppTemplate -TemplateParameterFile $logicAppParameter As I received an error I took a different approach. If you scroll down the json template file, you’ll notice there are an additional two parameter sections. In the first parameter section I copied the parameter definitions from the top of the json template file. In the second parameter section I copied the parameter values from the parameters.json file. This is apparantly the way, you can make parameters available to a Logic App. Example: { “$schema”: “https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#”, “contentVersion”: “1.0.0.0”, … “parameters”: { “ahakStorageConnectorName”: { “type”: “string”, “metadata”: { “description”: “Name of the AHakStorageConnector” } }, “dspConnectorName”: { “type”: “string”, “metadata”: { “description”: “Name of the DSPConnector” } }, “logicAppUploadToSharepoint”: { “type”: “string”, “metadata”: { “description”: “LogicApp UploadToSharepoint” } }, “rg”: { “type”: “string”, “metadata”: { “description”: “Resourcegroup” } }, “rgFunctions”: { “type”: “string”, “metadata”: { “description”: “Resourcegroup Functions” } }, “functionContainer”: { “type”: “string”, “metadata”: { “description”: “Function Container” } } }, “triggers”: { “manual”: { “type”: “Request”, “kind”: “Http”, “inputs”: { “schema”: { “$schema”: “http://json-schema.org/draft-04/schema#”, “properties”: { “Event”: { “type”: “string” }, “Id”: { “type”: “string” } }, “required”: [ “Event”, “Id” ], “type”: “object” } } } }, “contentVersion”: “1.0.0.0”, “outputs”: {} }, “parameters”: { “ahakStorageConnectorName”: { “value”: “tstahakstorageconnector” }, “dspConnectorName”: { “value”: “tstdspconnector” }, “logicAppUploadToSharepoint”: { “value”: “TstUploadToSharePoint” }, “rg”: { “value”: “ahak-appservices-tst” }, “rgFunctions”: { “value”: “ahak-appfunctions-tst” }, “functionContainer”: { “value”: “ahak-functions-tst” } } } } ], “outputs”: {} }