Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Example API Connection ARM Template
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"environmentName": {
"type": "string"
},
"resourceType": {
"type": "string",
"defaultValue": "eventhubs"
},
"resourceName": {
"type": "string",
"defaultValue": "trackinghub"
},
"policy": {
"type": "string",
"defaultValue": "mylogicapp"
},
"conectionEventHub": {
"type": "string"
}
},
"variables": {
"connections_eventhubs_name": "eventhubs",
"namespaceName": "[concat('my', parameters('environmentName'), 'eventhub')]"
},
"resources": [
{
"type": "Microsoft.Web/connections",
"apiVersion": "2016-06-01",
"name": "[variables('connections_eventhubs_name')]",
"location": "[resourceGroup().location]",
"properties": {
"displayName": "mylogicapp",
"customParameterValues": {},
"api": {
"id": "[concat('subscriptions/', subscription().subscriptionId, '/providers/Microsoft.Web/locations/', resourceGroup().location, '/managedApis/',variables('connections_eventhubs_name'))]"
},
"parameterValues": {
"connectionString": {
"type": "Custom",
"value": "[parameters('conectionEventHub')]"
}
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment