Power BI PowerShell and the Admin API

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 ก.ย. 2024

ความคิดเห็น • 64

  • @abhijeetghosh27
    @abhijeetghosh27 4 ปีที่แล้ว +1

    @Adam : Really amazing to see the cmdlets work and excited to try out myself. Thanks for sharing ! 👍👍

  • @garycacace6740
    @garycacace6740 6 ปีที่แล้ว

    BTW - this is great stuff! Very happy to see the PowerShell command line calls make a comeback. Far superior to the original v1.0 PS commands!

  • @hussamamal
    @hussamamal 2 ปีที่แล้ว

    This is crazy valuable. Thank you.

  • @jirineoral8001
    @jirineoral8001 6 ปีที่แล้ว

    Thanks Adam for great video. I'm excited about the ability, but regretfully not skilled with PowerShell. I'll need to figure out how to rebind all reports using a connection to use different connection. Thanks. Jiri

  • @craigporteous
    @craigporteous 6 ปีที่แล้ว +1

    Great video Adam, as always! Interesting to see the Invoke command working around the app registration. Still no options for unattended auth though? :D

  • @erenstvanheerden257
    @erenstvanheerden257 5 ปีที่แล้ว

    Excellent thanks Adam, it's like you read my mind. Thanks

  • @alethiel
    @alethiel 6 ปีที่แล้ว +4

    Hi Adam, you explain us at about 10:40, that you can access to a "my workspace" to export a pbix. You can indeed list all the reports in all the "my workspaces". But export this pbix does not seem to work because the -Scope Organization does not seems to apply to the Export-PowerBIReport command. Or do you another way to do it ? And you can only publish manually ?

    • @Weatwagon
      @Weatwagon 6 ปีที่แล้ว

      I'm having same issue

    • @68Al3x
      @68Al3x 6 ปีที่แล้ว

      Also having this issue, I think the command uses GET api.powerbi.com/v1.0/myorg/groups/{groupId}/reports/{reportKey}/Export, which does not have a corresponding command for admin yet (No Organization scope).
      At the moment, it seems only possible to export reports that are accessible to the user logged in. To download the reports from all workspaces you will have to add the user to these workspaces. Unfortunately this does not work with other people's "My Workspace".

  • @danagelotte46
    @danagelotte46 2 ปีที่แล้ว

    Great video, do have a suggestion to execute and export PowerBI report results to a shared drive?

  • @PrakashSonti
    @PrakashSonti ปีที่แล้ว

    Great job on the admin extensions! Already used these to create documentation of Workspaces and reports. Is there a way to get the share URL and their permissions?

  • @curtismoxam5382
    @curtismoxam5382 2 ปีที่แล้ว

    This should be a part of the interface. No need for a command let.

  • @atagliacozzo
    @atagliacozzo 6 ปีที่แล้ว

    Great work Adam!

  • @sarithamakam370
    @sarithamakam370 4 ปีที่แล้ว

    It was a very nice video, Can I get the details for Report Name, Dataset and Last Refresh and Next Refresh details from workspace using PowerShell commands, if yes, pls let me know which command can be used?

  • @yoshihirokawabataify
    @yoshihirokawabataify 6 ปีที่แล้ว

    Nice movie, Nice REST API, Nice PowerShell cmdlet 😄
    I hope the actions for Power BI Admin on Microsoft Flow, for citizen admin with no-code.
    for do automation with business systems, like ERP, SFA with no-code.

  • @harryleboeuf8778
    @harryleboeuf8778 4 ปีที่แล้ว +1

    Is it known if MS will be incorporating the Page Details in de audit logging. It is available in the usage statistics, so why not in the audit log ?

    • @GuyInACube
      @GuyInACube  4 ปีที่แล้ว

      Not to my knowledge. Agreed that that would be useful to have. The view report is for the actual report page and doesn't get locked every time you switch pages. Would recommend adding that to ideas.powerbi.com

  • @guavaq
    @guavaq 6 ปีที่แล้ว

    Great video Adam, one quick question is what is the difference between the Admin APIs and the PowerShell cmds?

  • @mehdifadhli6413
    @mehdifadhli6413 4 ปีที่แล้ว

    Hello Adam Thanks for the video , I have to merge 2 Tenant Power BI, what is the strategy to do it ? there is any risks or impacts by using the cmdlet?

  • @NickBotha
    @NickBotha 5 ปีที่แล้ว

    Login-PowerBI
    is not recognized.. I have Install-module "MicrosoftPowerBIMgmt" already done.
    Anyone else experience this ?

  • @govindkulkarni1584
    @govindkulkarni1584 4 ปีที่แล้ว

    Hey Adam,
    This is so useful when it comes to big DW, as one might need to refresh reports only when DW is loaded and not at specific schedule time. I am designing the same process to automatically kick off refresh once DW is loaded however due to organization has setup azure intune policies, I'm not able to connect to PBI service programmatically but manually can through powershell(popup SSO). Any leads on this.

  • @mocanada304
    @mocanada304 2 ปีที่แล้ว

    How would I get a list of users having access to a powerbi report published on powerbi service as application?
    Thank you!

  • @satellitepop
    @satellitepop 2 ปีที่แล้ว

    Hey Guys, Why not take advantage of this content and continue, showing how we can extract usage metrics for all of Tenant for those who have more than 5000 rows?

  • @Karenshow
    @Karenshow 6 ปีที่แล้ว

    Hi, how do I created a report/ dashboard on usage of the premium workspace I owned. For example, I want to see who published there, when and usage of it, all together.

  • @jugalsheth4458
    @jugalsheth4458 3 ปีที่แล้ว

    How to get data for all users by groups/workspaces and their activities? can a non admin guy do that with -scope/organization?

  • @cuacolobo
    @cuacolobo 6 ปีที่แล้ว

    I'm looking for the same cmdlets but for SSAS on-premise. I need a list of all datasets and the SQL databases they are based upon. Adam is it possible that you make a new video but for on premise? Or maybe there is another way?

  • @GustavoGiovanneRibeiro
    @GustavoGiovanneRibeiro 5 ปีที่แล้ว

    Hi Adam! Do you know if it is possible to find out which report / dashboard is shared and with whom is shared by PowerShell?

  • @roverhern7979
    @roverhern7979 2 ปีที่แล้ว

    What will be the problem?
    Login-PowerBI : The term 'Login-PowerBI' is not recognized as the name of a
    cmdlet, function, script file, or operable program. Check the spelling of the
    name, or if a path was included, verify that the path is correct and try again.
    At line:1 char:1
    + Login-PowerBI
    + ~~~~~~~~~~~~~
    + CategoryInfo : ObjectNotFound: (Login-PowerBI:String) [], Comma
    ndNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

  • @Techinbase
    @Techinbase 3 ปีที่แล้ว

    hello man. thanks for share. let me know, where is all command? i can see just a little part of your command.

    • @ForeverMan
      @ForeverMan 3 ปีที่แล้ว

      Try the documentation maybe ?

  • @Pklot4
    @Pklot4 4 ปีที่แล้ว

    Hi Adam,
    You mention that it's possible to add users to a certain workspace, but is there also a way to get a list of all users and groups that currently have access to a workspace?

    • @GuyInACube
      @GuyInACube  4 ปีที่แล้ว

      Yes. If you call the admin api for getting a workspace, it will list out the membership - for a new workspace only - not the old classic workspaces. This can be done with the Power BI PowerShell CMDLET - docs.microsoft.com/en-us/powershell/module/microsoftpowerbimgmt.workspaces/get-powerbiworkspace?view=powerbi-ps

  • @bhargav420rama
    @bhargav420rama 5 ปีที่แล้ว +1

    Hi,
    Am not an admin to my organization. But as a developer having pro license, i tried executing the same set of code as you have explained in the video. Even after logging in using Login-PowerBIServiceAccount, when i execute next set of statements to get workspaces. Powershell ISE is still throwing an error saying " Login first with Login-PowerBIServiceAccount". Please help if am missing something here. Thanks in advance!

  • @koteshsai9570
    @koteshsai9570 5 ปีที่แล้ว

    Hi adman ,can you able to explain how to add a user in powerbi group with post commnad

  • @ctcook81
    @ctcook81 6 ปีที่แล้ว +3

    Here's how to get the gateways: Invoke-PowerBIRestMethod -URL '/gateways' -Method Get

    • @GuyInACube
      @GuyInACube  6 ปีที่แล้ว

      haha true :) but only gateways you are listed as an admin on.

  • @gayathricyanam6570
    @gayathricyanam6570 5 ปีที่แล้ว

    I want to get all the users assigned to an app workspace. How can I export a list of that using cmdlets ?

  • @pbunyon99
    @pbunyon99 5 ปีที่แล้ว

    Hi GIAC... I have a huge hole in this area... I'm only a capacity admin, not service or global admin.. so am I stuck ? Also.. I really need the share/security membership data... can you expedite getting these functions to us capacity admins ?

  • @murtazaulhasan
    @murtazaulhasan 2 ปีที่แล้ว

    Hi Adam,
    How can we achieve this without user interaction?

  • @matheusdiniz2846
    @matheusdiniz2846 5 ปีที่แล้ว

    Hey, is there anyway to delete the rows from a Streaming Dataset with "Historic Data Analysis" on before pushing the data with the Invoke -RestMethod ? Thanks!!

    • @GuyInACube
      @GuyInACube  5 ปีที่แล้ว

      The only way i'm aware of is to cycle the historical toggle to reset the data.

  • @Dhrsha
    @Dhrsha 4 ปีที่แล้ว

    How can I get a list of gateway status?

  • @Karthicbg
    @Karthicbg 3 ปีที่แล้ว

    Got an error stating that nuget provider is required while installing PowerBIMgmt module....how to fix it?

  • @josephobrien2680
    @josephobrien2680 6 ปีที่แล้ว

    Great idea, but......these modules have failed to install on every machine I've tried

  • @kranthidn
    @kranthidn 6 ปีที่แล้ว

    Is it possible to copy workspace into new workspace?

    • @GuyInACube
      @GuyInACube  6 ปีที่แล้ว

      Not yet. The blog talks about migration items coming - powerbi.microsoft.com/en-us/blog/enable-your-team-with-new-workspaces-experiences-preview/

  • @Krishna-mw6yu
    @Krishna-mw6yu 5 ปีที่แล้ว

    Getting the following error when trying the install command
    PS C:\windows\system32> Install-Module -Name MicrosoftPowerBIMgmt
    Install-Module : The term 'Install-Module' is not recognized as the name of a cmdlet, function, script file, or operabl
    e program.

    • @trons4u
      @trons4u 5 ปีที่แล้ว

      Run as Admin when opening PowerShell

  • @mathew9665
    @mathew9665 6 ปีที่แล้ว

    I must confess I don't know much about Admin side. It would be nicer to have a nice easy to use GUI please :-)

  • @businessintelligence5455
    @businessintelligence5455 4 ปีที่แล้ว

    When I run this command: Get-PowerBITable -DatesetId [my dataset id here] I keep getting error: Get-PowerBITable Operation returned an invalid status code 'NotFound'. Can someone please assist? I can run Get-PowerBIDatasource -DatasetId [my dataset id here], without error

  • @sohailansari9337
    @sohailansari9337 6 ปีที่แล้ว

    I was wondering. How can we get list of all the user whom we have given the power BI licenses? It could be a pro/free. Thanks in advance 😊

    • @craigporteous
      @craigporteous 6 ปีที่แล้ว +1

      Hey Sohali, you can get that using the AzureAD PowerShell module. Im actually building a conference session on this but check this demo file for syntax etc: github.com/cporteou/Presentations/blob/master/Power%20BI%20and%20PowerShell/demos/Demo1-Licenses.ps1

    • @sohailansari9337
      @sohailansari9337 6 ปีที่แล้ว +1

      C Porteous... Thanks will try & let you know if I find any problem.. 😊👏

  • @garycacace6740
    @garycacace6740 6 ปีที่แล้ว

    Hey Adam, how do we find the Gateways in our organization?! 🤪😂

    • @juanluisolguinlopez1619
      @juanluisolguinlopez1619 5 ปีที่แล้ว

      Hi, have you try this? :
      docs.microsoft.com/en-us/rest/api/power-bi/gateways/getgateways#code-try-0

  • @jorgesimon8377
    @jorgesimon8377 6 ปีที่แล้ว

    Nice job Adam, this is great news. I'm getting an error when trying to use the cmdlets
    Import-Module : Could not load file or assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. Reference assemblies should not be loaded for execution.
    They can only be loaded in the Reflection-only loader context. (Exception from HRESULT: 0x80131058)
    At line:1 char:1
    + Import-Module MicrosoftPowerBIMgmt.Profile
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (:) [Import-Module], BadImageFormatException
    + FullyQualifiedErrorId : System.BadImageFormatException,Microsoft.PowerShell.Commands.ImportModuleCommand
    Do you know how I could go about fixing this problem? do I need to run PS Core instead of 5.x?

  • @coolblue5929
    @coolblue5929 3 ปีที่แล้ว +1

    After watching this, I still don’t know if I need admin creds or not. 🤦

  • @marlucaplus
    @marlucaplus 6 ปีที่แล้ว

    Hey guyincube. It is so great to connect with powershell to operate in code. However it is not worthy if you can't automate it.
    I have been trying to connect and search the problem in google and I couldn't find a solution. I can't find a way to connect using cmdlets and interact with the api using a different login than the one you write manually your ad credentials.
    I always get "One or more errors occurred power bi powershell".
    This is my actual code:
    $secpasswd = ConvertTo-SecureString "SecretKey registerd app" -AsPlainText -Force
    $mycreds = New-Object System.Management.Automation.PSCredential ("clientId / AppId", $secpasswd)
    Login-PowerBIServiceAccount -ServicePrincipal -Credential $mycreds -Tenant "TenantId"
    $headers = Get-PowerBIAccessToken
    Invoke-RestMethod -Headers $headers -Uri 'api.powerbi.com/v1.0/myorg/datasets' -Method Get
    What I am doing wrong?

    • @bhavyagidugu1778
      @bhavyagidugu1778 5 ปีที่แล้ว

      Hello marlucaplus did find any solution for this?...... I am also having the same requirement please let me know if u come across any solution

    • @niewnuo358
      @niewnuo358 4 ปีที่แล้ว

      Hey, were you able to find a way to get the automation done?