microsoft / PowerBI-Tools-For-Capacities

Repo for tools and utilities related to Power BI Capacities (Premium and Embedded)
MIT License
148 stars 99 forks source link

Get-WmiObject Pre-Req Missing #27

Open AdamRiddick opened 2 years ago

AdamRiddick commented 2 years ago

When running the RealisticLoadTest tool, we see the following exception;

RuntimeException: C:\Users\adam.riddick\Downloads\PowerBI-Tools-For-Capacities-master\RealisticLoadTestTool\Run_Load_Test_Only.ps1:63
Line |
  63 |              $profile = ($profile+1) % $numberOfPhysicalCores;
     |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Attempted to divide by zero.

Cause by this line

(Get-WmiObject –class Win32_processor).NumberOfCores;

It appears there may be a missing pre-requisite to have Microsoft.PowerShell.Management loaded.