Logic APP Parameter

%3CLINGO-SUB%20id%3D%22lingo-sub-2118910%22%20slang%3D%22en-US%22%3ELogic%20APP%20Parameter%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2118910%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20All%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20are%20using%20Azure%20ARM%20template%20to%20create%20Multiple%20Logic%20APP's.%20We%20need%20to%20include%20Logic%20app%20parameter%20for%20Each%20Workflows.%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20template%20is%20creating%20Logic%20app%20with%20Parameter(Logic%20APP%20Designer).%20But%20if%20try%20to%20automate%20it%20or%20if%20we%20try%20to%20create%20multiple%20logic%20app%20the%20Parameter(Logic%20App%20Designer)%20is%20getting%20Overwritten.%3C%2FP%3E%3CP%3EWe%20need%20to%20fix%20this%20and%20we%20do%20not%20need%20the%20parameter%20to%20be%20overwritten.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%7B%3CBR%20%2F%3E%22%24schema%22%3A%20%22%3CA%20href%3D%22https%3A%2F%2Fschema.management.azure.com%2Fschemas%2F2019-04-01%2FdeploymentTemplate.json%23%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fschema.management.azure.com%2Fschemas%2F2019-04-01%2FdeploymentTemplate.json%23%3C%2FA%3E%22%2C%3CBR%20%2F%3E%22contentVersion%22%3A%20%221.0.0.0%22%2C%3CBR%20%2F%3E%22parameters%22%3A%20%7B%3CBR%20%2F%3E%22logicAppName%22%3A%20%7B%3CBR%20%2F%3E%22type%22%3A%20%22array%22%2C%3CBR%20%2F%3E%22metadata%22%3A%20%7B%3CBR%20%2F%3E%22description%22%3A%20%22The%20name%20of%20the%20logic%20app%20to%20create.%22%3CBR%20%2F%3E%7D%3CBR%20%2F%3E%7D%2C%3CBR%20%2F%3E%22testUri%22%3A%20%7B%3CBR%20%2F%3E%22type%22%3A%20%22string%22%2C%3CBR%20%2F%3E%22defaultValue%22%3A%20%22%3CA%20href%3D%22https%3A%2F%2Flogin.microsoftonline.com%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Flogin.microsoftonline.com%2F%3C%2FA%3E%22%2C%3CBR%20%2F%3E%22metadata%22%3A%20%7B%3CBR%20%2F%3E%22description%22%3A%20%22A%20test%20URI%22%3CBR%20%2F%3E%7D%3CBR%20%2F%3E%7D%2C%3CBR%20%2F%3E%22location%22%3A%20%7B%3CBR%20%2F%3E%22type%22%3A%20%22string%22%2C%3CBR%20%2F%3E%22defaultValue%22%3A%20%22%5BresourceGroup().location%5D%22%2C%3CBR%20%2F%3E%22metadata%22%3A%20%7B%3CBR%20%2F%3E%22description%22%3A%20%22Location%20for%20all%20resources.%22%3CBR%20%2F%3E%7D%3CBR%20%2F%3E%7D%3CBR%20%2F%3E%7D%2C%3CBR%20%2F%3E%22variables%22%3A%20%7B%7D%2C%3CBR%20%2F%3E%22resources%22%3A%20%5B%3CBR%20%2F%3E%7B%3CBR%20%2F%3E%22copy%22%3A%20%7B%3CBR%20%2F%3E%22name%22%3A%20%22WFcopy%22%2C%3CBR%20%2F%3E%22count%22%3A%20%22%5Blength(parameters('logicAppName'))%5D%22%3CBR%20%2F%3E%7D%2C%3CBR%20%2F%3E%22type%22%3A%20%22Microsoft.Logic%2Fworkflows%22%2C%3CBR%20%2F%3E%22apiVersion%22%3A%20%222019-05-01%22%2C%3CBR%20%2F%3E%22name%22%3A%20%22%5Bconcat(parameters('logicAppName')%5BcopyIndex()%5D)%5D%22%2C%3CBR%20%2F%3E%22location%22%3A%20%22%5Bparameters('location')%5D%22%2C%3CBR%20%2F%3E%22properties%22%3A%20%7B%3CBR%20%2F%3E%22definition%22%3A%20%7B%3CBR%20%2F%3E%22%24schema%22%3A%20%22%3CA%20href%3D%22https%3A%2F%2Fschema.management.azure.com%2Fproviders%2FMicrosoft.Logic%2Fschemas%2F2016-06-01%2Fworkflowdefinition.json%23%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fschema.management.azure.com%2Fproviders%2FMicrosoft.Logic%2Fschemas%2F2016-06-01%2Fworkflowdefinition.json%23%3C%2FA%3E%22%2C%3CBR%20%2F%3E%22contentVersion%22%3A%20%221.0.0.0%22%2C%3CBR%20%2F%3E%22parameters%22%3A%20%7B%3CBR%20%2F%3E%22testUri%22%3A%20%7B%3CBR%20%2F%3E%22type%22%3A%20%22string%22%2C%3CBR%20%2F%3E%22defaultValue%22%3A%20%22%5Bparameters('testUri')%5D%22%3CBR%20%2F%3E%7D%3CBR%20%2F%3E%7D%2C%3CBR%20%2F%3E%22triggers%22%3A%20%7B%3CBR%20%2F%3E%22recurrence%22%3A%20%7B%3CBR%20%2F%3E%22type%22%3A%20%22recurrence%22%2C%3CBR%20%2F%3E%22recurrence%22%3A%20%7B%3CBR%20%2F%3E%22frequency%22%3A%20%22Hour%22%2C%3CBR%20%2F%3E%22interval%22%3A%201%3CBR%20%2F%3E%7D%3CBR%20%2F%3E%7D%3CBR%20%2F%3E%7D%2C%3CBR%20%2F%3E%22actions%22%3A%20%7B%3CBR%20%2F%3E%22http%22%3A%20%7B%3CBR%20%2F%3E%22type%22%3A%20%22Http%22%2C%3CBR%20%2F%3E%22inputs%22%3A%20%7B%3CBR%20%2F%3E%22method%22%3A%20%22GET%22%2C%3CBR%20%2F%3E%22uri%22%3A%20%22%40parameters('testUri')%22%3CBR%20%2F%3E%7D%3CBR%20%2F%3E%7D%3CBR%20%2F%3E%7D%3CBR%20%2F%3E%7D%3CBR%20%2F%3E%7D%3CBR%20%2F%3E%7D%3CBR%20%2F%3E%5D%3CBR%20%2F%3E%7D%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%2C%3C%2FP%3E%3CP%3EVignesh%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Contributor

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....",
"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

 

 

0 Replies