Forum Discussion

g_m_j's avatar
g_m_j
Frequent Visitor
3 years ago
Solved

Problems using Invoke-PowerBiRestMethod in PowerShell

(I'm no PowerShell expert)   I'm trying to script PowerBI dataset refreshes using a PowerShell script and the Invoke-PowerBIRestMethod.   It all works fine for a single hardcoded dataset, as belo...
  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi g_m_j ,

     

    According to your statement, I think 404 error should be an authentication error in Power BI. Please make sure your account has access to Power BI or have access to pass the refresh API to Power BI.

    About using Powershell to refresh dataset, I think this blog could help you better to use it:

    Using-the-power-bi-api-with-powershell-scripts-refreshing-your-dataset 

     

    Best Regards,
    Rico Zhou

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.