Skip to content

Commit e65c883

Browse files
committed
added workspace in arm template
1 parent 5d6c86f commit e65c883

File tree

1 file changed

+27
-2
lines changed

1 file changed

+27
-2
lines changed

BlockBlobReader/src/blobreaderdeploy.json

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,10 @@
107107
"defaultValue": "[concat('SUMOBRAppInsights', uniqueString(resourceGroup().id))]",
108108
"type": "String"
109109
},
110+
"logAnalyticsWorkspaceName": {
111+
"defaultValue": "[concat('SUMOBRLAworkspace', uniqueString(resourceGroup().id))]",
112+
"type": "String"
113+
},
110114
"location": {
111115
"type": "string",
112116
"defaultValue": "[resourceGroup().location]"
@@ -654,6 +658,26 @@
654658
"[resourceId('Microsoft.ServiceBus/namespaces', parameters('namespaces_blobreadertaskqueue_name'))]"
655659
]
656660
},
661+
{
662+
"type": "microsoft.operationalinsights/workspaces",
663+
"apiVersion": "2020-08-01",
664+
"name": "[parameters('logAnalyticsWorkspaceName')]",
665+
"location": "[parameters('location')]",
666+
"properties": {
667+
"sku": {
668+
"name": "pergb2018"
669+
},
670+
"retentionInDays": 30,
671+
"features": {
672+
"enableLogAccessUsingOnlyResourcePermissions": true
673+
},
674+
"workspaceCapping": {
675+
"dailyQuotaGb": -1
676+
},
677+
"publicNetworkAccessForIngestion": "Enabled",
678+
"publicNetworkAccessForQuery": "Enabled"
679+
}
680+
},
657681
{
658682
"name": "[parameters('appInsightsName')]",
659683
"type": "Microsoft.Insights/components",
@@ -662,8 +686,9 @@
662686
"kind": "web",
663687
"properties": {
664688
"Application_Type": "web",
665-
"applicationId": "[parameters('appInsightsName')]"
689+
"applicationId": "[parameters('appInsightsName')]",
690+
"WorkspaceResourceId": "[resourceId('microsoft.operationalinsights/workspaces', parameters('logAnalyticsWorkspaceName'))]"
666691
}
667692
}
668693
]
669-
}
694+
}

0 commit comments

Comments
 (0)