- 2 minutes to read
How to deploy Logic Apps and enable diagnostics logging using an ARM Template
You can enable logging to Nodinite by adding a diagnostic setting to your individual Azure Logic Apps. If you have hundreds of these, surely you are not going to perform that administration by labour.
Below is an ARM-template that you can use to deploy your Azure Logic Apps.
You need to review the parameter
eventHubName
and change it according to your design and configuration. There are some recommendations about the Event Hub Entity that you must be aware of, please review the Prerequisites user guide.
You need to review the
ARMTest
naming example and adjust to your naming standard
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"workflows_DiagnosticARMTest_name": {
"defaultValue": "DiagnosticARMTest",
"type": "String"
}
},
"variables": {},
"resources": [
{
"type": "Microsoft.Logic/workflows",
"apiVersion": "2017-07-01",
"name": "[parameters('workflows_DiagnosticARMTest_name')]",
"resources": [
{
"name": "Microsoft.Insights/NodiniteLoggingTest",
"type": "/providers/diagnosticSettings",
"apiVersion": "2017-05-01-preview",
"dependsOn": [
"[parameters('workflows_DiagnosticARMTest_name')]"
],
"location": "westeurope",
"properties": {
"eventHubAuthorizationRuleId": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.eventhub/namespaces/{eventHubNamespace}/authorizationrules/RootManageSharedAccessKey",
"eventHubName": "nodinitelogging",
"metrics": [
{
"category": "AllMetrics",
"enabled": false
}
],
"logs": [
{
"category": "WorkflowRuntime",
"enabled": true
}
]
}
}
],
"location": "westeurope",
"properties": {
"state": "Enabled",
"definition": {
"$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
"contentVersion": "1.0.0.0",
"parameters": {},
"triggers": {
"manual": {
"type": "Request",
"kind": "Http",
"inputs": {
"schema": {}
}
}
},
"actions": {},
"outputs": {}
},
"parameters": {}
}
}
]
}