Created
June 9, 2020 20:05
-
-
Save juucustodio/4a17efea4f0c60c7e1cf64892dd1f54f to your computer and use it in GitHub Desktop.
Example API Connection ARM Template
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": { | |
"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