Configuring the Host Pool Logs to be Sent to a Log Analytics Workspace
To configure a Log Analytics Workspace as the destination for host pool logs of the target Azure subscription, do the following:
-
Login to the Microsoft Azure Portal and click on the Host pools option as indicated by Figure 1.
-
Figure 2 will then appear displaying the properties of the group. Keep scrolling down the left panel of Figure 2, until a Monitoring section comes into view. Click on the Diagnostic Settings option under Monitoring (see Figure 2).
-
Use the Diagnostics setting page that then appears to configure the logs that are to be collected (see Figure 4).
Figure 4 : Adding a diagnostic setting for the chosen host pool
-
To add a diagnostic setting for the chosen host pool, first, provide a unique Diagnostic setting name.
-
Then, under Log, select the allLogs check box, so that all activities related to the chosen host pool are logged.
-
Next, select the Send to Log Analytics workspace check box , and then pick the Log Analytics workspace to which the logs are to be sent.
-
Finally, to save the configuration, click on the Save button.
-
Make sure that you repeat steps 1-8 for every AVD host pool that you want monitored.