Skip to content

Instantly share code, notes, and snippets.

@justinyoo
Created January 21, 2018 11:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justinyoo/65476e97d6c09b87bd656e964ec0ba23 to your computer and use it in GitHub Desktop.
Save justinyoo/65476e97d6c09b87bd656e964ec0ba23 to your computer and use it in GitHub Desktop.
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