Skip to content

Instantly share code, notes, and snippets.

@juucustodio
Created June 9, 2020 20:05
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 juucustodio/4a17efea4f0c60c7e1cf64892dd1f54f to your computer and use it in GitHub Desktop.
Save juucustodio/4a17efea4f0c60c7e1cf64892dd1f54f to your computer and use it in GitHub Desktop.
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