Forum Discussion

andyclap's avatar
andyclap
Icon for Advocate IV rankAdvocate IV
2 years ago

MicrosoftPowerBIMgmt cmdlet Path not relative to working directory

It seems rather odd that the cmdlets in MicrosoftPowerBIMgmt are not relative to the current working directory; instead they are relative to the active user's profile directory.

 

e.g. 

cd "c:\reports"
New-PowerBIReport -Path ".\myreport.pbix" -WorkspaceId "**GUID" -ConflictAction CreateOrOverwrite

tries to load the report from $env:USERPROFILE\myreport.pbix rather than c:\report\myreport.pbix

2 Replies