fortinet/fortigate-autoscale-azure

Create Log Analytics Workspace for Application Insights

sunny2895 opened this issue · 0 comments

Some Azure regions (e.g.: Canada East) do not support the "Classic" resource mode for Application Insights. They only support "Workspace-Based" resource mode. In order to enable this, the following needs to be changed in the file ""

-A Log Analytics Workspace needs to be created first, as part of the deployment. (not sure how to do this, or I would update this code myself)

-In the file "fortigate-autoscale-azure/templates/link_template.function_app.json", the following needs to be changed:
-The "apiVersion" needs to be changed from " 2018-05-01-preview" to "2020-02-02" (line 148 & 181)
-2 additional properties need to be set for the Application Insights deployment in the which are:
-"WorkspaceResourceId" (the ID of the Log Analytics Workspace, once created), and
-"IngestionMode", which needs to be set to "Log Analytics".

-In the file "fortigate-autoscale-azure/templates/link_template.function_app.configuration.json", the following needs to be changed:
-The "apiVersion" needs to be changed from " 2018-05-01-preview" to "2020-02-02" (line 149)