Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Invoke dataset refresh in PowerBI service from Powershell Azure

Hello, I have the below script that I run from my Azure Automation account runbook. I am trying to refresh a dataset in PowerBI from the Powershell script placed in Azure portal.   $TenantId = "4...
  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi Anonymous,

    It seems like you haven't signed in to your account before invoking cmdlet scripts. As the document mentioned, you need to log in to power bi service to provide the credentials for the following operations.

    Power BI Cmdlets reference | Microsoft Docs

    Regards,

    Xiaoxin Sheng