Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
33 lines (32 sloc) 1.04 KB
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"workspaceName": {
"type": "string",
"metadata": {
"description": "Log Analytics workspace name"
}
}
},
"variables": {
"apiVersion": {
"logAnalytics": "2017-03-15-preview"
},
"logAnalyticsConfiguration": {
"workspaceName": "[parameters('workspaceName')]"
}
},
"resources": [
],
"outputs": {
"workspaceId": {
"type": "string",
"value": "[reference(concat('Microsoft.OperationalInsights/workspaces/', variables('logAnalyticsConfiguration').workspaceName), variables('apiVersion').logAnalytics).customerId]"
},
"primaryKey": {
"type": "string",
"value": "[listKeys(resourceId('Microsoft.OperationalInsights/workspaces/', variables('logAnalyticsConfiguration').workspaceName), variables('apiVersion').logAnalytics).primarySharedKey]"
}
}
}