Forum Discussion
andyclap
Advocate IV
2 years agoMicrosoftPowerBIMgmt 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
- lbendlin
Super User
If you have a Pro license you can open a Pro ticket at https://admin.powerplatform.microsoft.com/newsupportticket/powerbi
Otherwise you can raise an issue at https://community.fabric.microsoft.com/t5/Issues/idb-p/Issues . - andyclap
Advocate IV
I've opened a ticket for this
- would be simplest to update the documentation; but better if possible to fix the unexpected behaviour.
Let's see how the ticket progresses.