Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Testing ARM Templates with Pester
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"logicAppName1": {
"type": "string",
"metadata": {
"description": "First part of the Logic App."
}
},
"logicAppName2": {
"type": "string",
"metadata": {
"description": "Second part of the Logic App."
}
}
},
"variables": {
"logicApp": {
"name": "[concat(parameters('logicAppName1'), '-', parameters('logicAppName2'))]"
}
},
"resources": [
{
"name": "[variables('logicApp').name]",
"type": "Microsoft.Logic/workflows",
"location": "[resourceGroup().location]",
"tags": {
"displayName": "LogicApp"
},
"apiVersion": "2016-06-01",
"properties": {
"definition": {
"$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
"contentVersion": "1.0.0.0",
"actions": {},
"outputs": {},
"parameters": {},
"triggers": {}
},
"parameters": {}
}
}
],
"outputs": {
"resourceId": {
"type": "string",
"value": "[resourceId('Microsoft.Logic/workflows', variables('logicApp').name)]"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.