|
37 | 37 | "description": "The pricing tier for the App Service plan" |
38 | 38 | } |
39 | 39 | }, |
| 40 | + "WorkspaceName": { |
| 41 | + "type": "string", |
| 42 | + "defaultValue": "[format('worksp-{0}', guid(resourceGroup().id))]", |
| 43 | + "metadata": { |
| 44 | + "description": "The name of the Log Analytics Workspace resource" |
| 45 | + } |
| 46 | + }, |
40 | 47 | "ApplicationInsightsName": { |
41 | 48 | "type": "string", |
42 | 49 | "defaultValue": "[format('appins-{0}', guid(resourceGroup().id))]", |
|
516 | 523 | "[resourceId('Microsoft.Search/searchServices', parameters('AzureSearchService'))]" |
517 | 524 | ] |
518 | 525 | }, |
| 526 | + { |
| 527 | + "type": "Microsoft.OperationalInsights/workspaces", |
| 528 | + "apiVersion": "2020-08-01", |
| 529 | + "name": "[parameters('WorkspaceName')]", |
| 530 | + "location": "[resourceGroup().location]", |
| 531 | + "properties": { |
| 532 | + "sku": { |
| 533 | + "name": "PerGB2018" |
| 534 | + }, |
| 535 | + "retentionInDays": 30 |
| 536 | + } |
| 537 | + }, |
519 | 538 | { |
520 | 539 | "type": "Microsoft.Insights/components", |
521 | 540 | "apiVersion": "2020-02-02", |
|
525 | 544 | "[format('hidden-link:{0}', resourceId('Microsoft.Web/sites', parameters('ApplicationInsightsName')))]": "Resource" |
526 | 545 | }, |
527 | 546 | "properties": { |
528 | | - "Application_Type": "web" |
| 547 | + "Application_Type": "web", |
| 548 | + "WorkspaceResourceId": "[resourceId('Microsoft.OperationalInsights/workspaces', parameters('WorkspaceName'))]" |
529 | 549 | }, |
530 | | - "kind": "web" |
| 550 | + "kind": "web", |
| 551 | + "dependsOn": [ |
| 552 | + "[resourceId('Microsoft.OperationalInsights/workspaces', parameters('WorkspaceName'))]" |
| 553 | + ] |
531 | 554 | }, |
532 | 555 | { |
533 | 556 | "type": "Microsoft.DocumentDB/databaseAccounts", |
|
0 commit comments