Created
February 4, 2017 00:10
-
-
Save krnese/3dce9acbf9a4e31be035a2d9c50ed714 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": { | |
"subscriptionId": { | |
"type": "string", | |
"metadata": { | |
"description": "Specify the subscription Id where your storage account is located" | |
} | |
}, | |
"omsWorkspaceName": { | |
"type": "string", | |
"defaultValue": "omsws01", | |
"metadata": { | |
"description": "Specify name of your OMS workspace" | |
} | |
}, | |
"omsRegion": { | |
"type": "string", | |
"defaultValue": "West Europe", | |
"allowedValues": [ | |
"West Europe", | |
"East US", | |
"Southeast Asia" | |
], | |
"metadata": { | |
"description": "Select OMS region" | |
} | |
}, | |
"existingStorageAccountName": { | |
"type": "string", | |
"defaultValue": "mystorage", | |
"metadata": { | |
"description": "Specify the name of the existing storage account to add to OMS" | |
} | |
}, | |
"existingStorageAccountResourceGroupName": { | |
"type": "string", | |
"defaultValue": "myrgname", | |
"metadata": { | |
"description": "Resource group containing the storage account" | |
} | |
}, | |
"table": { | |
"type": "string", | |
"defaultValue": "WADServiceFabric*EventTable", | |
"allowedValues": [ | |
"WADWindowsEventLogsTable", | |
"WADServiceFabric*EventTable", | |
"wad-iis-logfiles", | |
"WADETWEventTable" | |
], | |
"metadata": { | |
"description": "Select the table to add to OMS" | |
} | |
} | |
}, | |
"variables": { | |
}, | |
"resources": [ | |
{ | |
"apiVersion": "2015-11-01-preview", | |
"name": "[parameters('omsWorkspaceName')]", | |
"location": "[parameters('omsRegion')]", | |
"type": "Microsoft.OperationalInsights/workspaces", | |
"properties": { | |
"sku": { | |
"name": "Free" | |
} | |
}, | |
"resources": [ | |
{ | |
"apiVersion": "2015-11-01-preview", | |
"name": "[concat(parameters('existingstorageaccountName'),parameters('omsWorkspaceName'))]", | |
"type": "storageinsightconfigs", | |
"dependsOn": [ | |
"[concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]" | |
], | |
"properties": { | |
"containers": [ ], | |
"tables": [ | |
"[parameters('table')]" | |
], | |
"storageAccount": { | |
"id": "[concat('/subscriptions/', parameters('subscriptionId'), '/resourceGroups/', parameters('existingStorageAccountResourceGroupName'),'/providers/Microsoft.Storage/storageaccounts/', parameters('existingStorageAccountName'))]", | |
"key": "[listKeys(concat('/subscriptions/', parameters('subscriptionId'), '/resourceGroups/', parameters('existingStorageAccountResourceGroupName'),'/providers/Microsoft.Storage/storageAccounts/', parameters('existingStorageAccountName')),'2015-06-15').key1]" | |
} | |
} | |
} | |
] | |
} | |
], | |
"outputs": { } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment