Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: VM Local Disk Free Space #37

Open
JCoreMS opened this issue Feb 1, 2023 · 1 comment
Open

Feature Request: VM Local Disk Free Space #37

JCoreMS opened this issue Feb 1, 2023 · 1 comment

Comments

@JCoreMS
Copy link
Owner

JCoreMS commented Feb 1, 2023

Possibly consider for each Host Pool / RG as well so it can be filtered out for only specific host pools that aren't known to have full HDDs or test.

@JCoreMS
Copy link
Owner Author

JCoreMS commented Mar 20, 2023

Next release will have combined query to alert on VMs based on Host Pool.

      Perf
      | where TimeGenerated > ago(15m)
      | where ObjectName == "LogicalDisk" and CounterName == "% Free Space"
      | where InstanceName !contains "D:"
      | where InstanceName  !contains "_Total"| where CounterValue <= 5.00
      | parse _ResourceId with "/subscriptions/" subscription "/resourcegroups/" ResourceGroup "/providers/microsoft.compute/virtualmachines/" ComputerName
      | project ComputerName, CounterValue, subscription, ResourceGroup, TimeGenerated
      | join kind = leftouter
      (
          WVDAgentHealthStatus
          | where TimeGenerated > ago(15m)
          | parse _ResourceId with "/subscriptions/" subscriptionAgentHealth "/resourcegroups/" ResourceGroupAgentHealth "/providers/microsoft.desktopvirtualization/hostpools/" HostPool
          | parse SessionHostResourceId with "/subscriptions/" VMsubscription "/resourceGroups/" VMresourceGroup "/providers/Microsoft.Compute/virtualMachines/" ComputerName
          | project VMresourceGroup, ComputerName, HostPool
          ) on ComputerName

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant