Forum Discussion

ELIU's avatar
ELIU
Helper II
2 years ago

PowerShell cmdlets to run user activity for a PowerBI Servce report

Hi,

 

I was trying to use PowerShell cmdlets to run certain workspace, user activities, etc. metrics. However, I got 'unauthorized' or 'internalServerError' errors. My service account is listed as Power BI Admin account.

 

Does this related to Service Principal Account authorization? If my account is not the service principal account, what do I do to get it? 

Is there any other solutions without having to have a service principal account?

 

Thanks

2 Replies

  • Hi ELIU 

    you can create service principlal account bye below steps:

    On azure portal open azure Active Directory.

    Manage>app registration/enterprise application >new registration 

    Then cinfigure  the application and register it.

    Once the application is registered, you can create a service principal associated with it.

    After creating the service principal, assign the necessary permissions to it. This could include permissions to access Azure resources, such as Power BI workspaces or data.


    Learn Power BI free:

    https://analyticpulse.blogspot.com

    Learn Power BI free

    DAX Functions

    Powerbi Visualisation

     

    • ELIU's avatar
      ELIU
      Helper II

      Thank you AnalyticPulse But I guess I have tried to ask the question: why exactly did I get the InternalServerError when trying to run the Powershell script?