Created
October 9, 2017 10:26
-
-
Save pacodelacruz/27416dc0667d4b39edc189d2d2f31d84 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"servicebus_1_Connection_Name": { | |
"type": "string", | |
"defaultValue": "servicebus" | |
}, | |
"servicebus_1_Connection_DisplayName": { | |
"type": "string", | |
"defaultValue": "sbnamespace" | |
}, | |
"servicebus_1_connectionString": { | |
"type": "securestring", | |
"metadata": { | |
"description": "Azure Service Bus Connection String" | |
} | |
}, | |
"LogicAppLocation": { | |
"type": "string", | |
"minLength": 1, | |
"defaultValue": "australiasoutheast" | |
} | |
}, | |
"variables": {}, | |
"resources": [ | |
{ | |
"properties": { | |
"state": "Disabled", | |
"definition": { | |
"$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#", | |
"actions": { | |
"HTTP": { | |
"type": "Http", | |
"inputs": { | |
"method": "POST", | |
"uri": "@{parameters('endpointUrl')}", | |
"body": "@base64ToString(triggerBody()?['ContentData'])", | |
"authentication": { | |
"type": "Basic", | |
"username": "@{parameters('endpointUsername')}", | |
"password": "@{parameters('endpointPassword')}" | |
} | |
}, | |
"runAfter": {} | |
} | |
}, | |
"parameters": { | |
"$connections": { | |
"defaultValue": {}, | |
"type": "Object" | |
}, | |
"endpointPassword": { | |
"defaultValue": "u1tr@53cr37+dev", | |
"type": "String" | |
}, | |
"endpointUrl": { | |
"defaultValue": "https://mysupercoolendpoint-dev.com.au/service/", | |
"type": "String" | |
}, | |
"endpointUsername": { | |
"defaultValue": "username-dev", | |
"type": "String" | |
} | |
}, | |
"triggers": { | |
"When_a_message_is_received_in_a_queue_(auto-complete)": { | |
"type": "ApiConnection", | |
"inputs": { | |
"host": { | |
"connection": { | |
"name": "@parameters('$connections')['servicebus']['connectionId']" | |
} | |
}, | |
"method": "get", | |
"path": "/@{encodeURIComponent('myqueue')}/messages/head", | |
"queries": { | |
"queueType": "Main" | |
} | |
}, | |
"recurrence": { | |
"frequency": "Minute", | |
"interval": 3 | |
} | |
} | |
}, | |
"contentVersion": "1.0.0.0", | |
"outputs": {} | |
}, | |
"parameters": { | |
"$connections": { | |
"value": { | |
"servicebus": { | |
"id": "[concat(subscription().id, '/providers/Microsoft.Web/locations/', 'australiasoutheast', '/managedApis/', 'servicebus')]", | |
"connectionId": "[resourceId('Microsoft.Web/connections', parameters('servicebus_1_Connection_Name'))]", | |
"connectionName": "[parameters('servicebus_1_Connection_Name')]" | |
} | |
} | |
} | |
} | |
}, | |
"name": "pacosandpit-logic-parameters", | |
"type": "Microsoft.Logic/workflows", | |
"location": "[parameters('LogicAppLocation')]", | |
"apiVersion": "2016-06-01", | |
"dependsOn": [ | |
"[resourceId('Microsoft.Web/connections', parameters('servicebus_1_Connection_Name'))]" | |
] | |
}, | |
{ | |
"type": "MICROSOFT.WEB/CONNECTIONS", | |
"apiVersion": "2016-06-01", | |
"name": "[parameters('servicebus_1_Connection_Name')]", | |
"location": "australiasoutheast", | |
"properties": { | |
"api": { | |
"id": "[concat(subscription().id, '/providers/Microsoft.Web/locations/', 'australiasoutheast', '/managedApis/', 'servicebus')]" | |
}, | |
"displayName": "[parameters('servicebus_1_Connection_DisplayName')]", | |
"parameterValues": { | |
"connectionString": "[parameters('servicebus_1_connectionString')]" | |
} | |
} | |
} | |
], | |
"outputs": {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
{
"type": "MICROSOFT.WEB/CONNECTIONS",
"apiVersion": "2016-06-01",
"name": "[parameters('servicebus_1_Connection_Name')]",
"location": "australiasoutheast",
"properties": {
"api": {
"id": "[concat(subscription().id, '/providers/Microsoft.Web/locations/', 'australiasoutheast', '/managedApis/', 'servicebus')]"
},
"displayName": "[parameters('servicebus_1_Connection_DisplayName')]",
"parameterValues": {
"connectionString": "[parameters('servicebus_1_connectionString')]"
}
}
What is the sgnificance of this part of code. And y does this gets appended everytime i make changes in my logic APP. How can i avoid the same?