Forum Discussion

vigneshkrcegmailcom's avatar
vigneshkrcegmailcom
Brass Contributor
Feb 09, 2021

Logic APP Parameter

Hi All,

 

We are using Azure ARM template to create Multiple Logic APP's. We need to include Logic app parameter for Each Workflows. 

The template is creating Logic app with Parameter(Logic APP Designer). But if try to automate it or if we try to create multiple logic app the Parameter(Logic App Designer) is getting Overwritten.

We need to fix this and we do not need the parameter to be overwritten.

 

{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"logicAppName": {
"type": "array",
"metadata": {
"description": "The name of the logic app to create."
}
},
"testUri": {
"type": "string",
"defaultValue": "https://login.microsoftonline.com/",
"metadata": {
"description": "A test URI"
}
},
"location": {
"type": "string",
"defaultValue": "[resourceGroup().location]",
"metadata": {
"description": "Location for all resources."
}
}
},
"variables": {},
"resources": [
{
"copy": {
"name": "WFcopy",
"count": "[length(parameters('logicAppName'))]"
},
"type": "Microsoft.Logic/workflows",
"apiVersion": "2019-05-01",
"name": "[concat(parameters('logicAppName')[copyIndex()])]",
"location": "[parameters('location')]",
"properties": {
"definition": {
"$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"testUri": {
"type": "string",
"defaultValue": "[parameters('testUri')]"
}
},
"triggers": {
"recurrence": {
"type": "recurrence",
"recurrence": {
"frequency": "Hour",
"interval": 1
}
}
},
"actions": {
"http": {
"type": "Http",
"inputs": {
"method": "GET",
"uri": "@parameters('testUri')"
}
}
}
}
}
}
]
}

 

Regards,

Vignesh

 

 

No RepliesBe the first to reply