Getting diagnostics data out of WVD

Setting it up

To set this up, you\’ll need a Log Analytics workspace in Azure. I decided to create a new and dedicated one for WVD, but you can ingest these metrics and logs into an existing workspace as well.

\"\"

Once you have the workspace, you\’ll need the workspace ID and a key to access it. You can get those in the advanced settings on the workspace in the Azure portal:

\"\"

Next, we\’ll enable the streaming of logs into Log Analytics:

Add-RdsAccount -DeploymentUrl https://rdbroker.wvd.microsoft.com

$tenantname=(Get-Rdstenant).TenantName

$sub=\"<your subscription ID>\"
$laws=\"<your workspace ID>\" 
$lapk=\"<your workspace key>\"

Set-RdsTenant -Name $tenantname -AzureSubscriptionId $sub -LogAnalyticsWorkspaceId $laws -LogAnalyticsPrimaryKey $lapk 

Exploring the data

To explore the data, you can use the Log Analytics query editor.

\"\"

There, you will see three tables containing WVD logs:

  • Activity
  • Checkpoint
  • Error

Now, create some new sessions so you generate logs to flow into the workspace.


Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *