Azure-Samples / powerbi-powershell

Samples for calling the Power BI REST API via PowerShell
MIT License
258 stars 191 forks source link

Doesn't execute in a runbook #34

Open iburki opened 5 years ago

iburki commented 5 years ago

Hello - can you please let me know how to execute this in a runbook? It works using powershell on the desktop, however, when I try to run it in a runbook, I get the error below. Thank you!

Exception calling "AcquireToken" with "4" argument(s): "Unable to find an entry point named 'GetPerAdapterInfo' in DLL 'iphlpapi.dll'." At line:50 char:8 +        $authResult = $authContext.AcquireToken($resourceAppIdURI, $cl ... +        ~~~~~~~~~~~~~~     + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException     + FullyQualifiedErrorId : EntryPointNotFoundException   You cannot call a method on a null-valued expression. At line:59 char:1