Giter Club home page Giter Club logo

Comments (7)

CodeCyclone avatar CodeCyclone commented on May 18, 2024

We do support username/password for service accounts by suppling the -ServicePrincipal switch along with -Credential, see https://docs.microsoft.com/en-us/powershell/module/microsoftpowerbimgmt.profile/connect-powerbiserviceaccount?view=powerbi-ps.

Worth mentioning, many of Power BI's APIs don't support this type of authentication (AAD application only). Currently only the Admin APIs support it - https://docs.microsoft.com/en-us/rest/api/power-bi/admin. In the documentation you will notice "Application only .. permissions are supported"

from powerbi-powershell.

CodeCyclone avatar CodeCyclone commented on May 18, 2024

Related\duplicate of issue #51. Issue is in the API not the cmdlet but I will keep issue open for tracking.

from powerbi-powershell.

fmms avatar fmms commented on May 18, 2024

I think this is the sames as #59

from powerbi-powershell.

JanMulkens avatar JanMulkens commented on May 18, 2024

Not sure if this will help, but here it goes.
I've been having the same issue while calling the REST API from within powershell.
Apparantly I had given a different redirect URI during my API call compared to the one I gave during app registration.

I'm now using "urn:ietf:wg:oauth:2.0:oob" as redirect URI with the native app setting and everything works perfectly.

from powerbi-powershell.

dfaa502 avatar dfaa502 commented on May 18, 2024

Any update on the related bug?

from powerbi-powershell.

CodeCyclone avatar CodeCyclone commented on May 18, 2024

Thanks @JanMulkens, yes you need that as your redirect for the AAD app. In a future update we will allow the redirect to be passed in.

For the next release, the Connect-PowerBIServiceAccount will support -Credential (Get-Credential) which you can also do without prompting - https://blogs.msdn.microsoft.com/koteshb/2010/02/12/powershell-how-to-create-a-pscredential-object/

This is without the -ServiceAccount flag being specified. Some APIs early next year will support ServicePrincipal, till then this should be a viable workaround. Note this only works on Windows OS (in either Windows PowerShell or PowerShell Core).

from powerbi-powershell.

CodeCyclone avatar CodeCyclone commented on May 18, 2024

Released in https://www.powershellgallery.com/packages/MicrosoftPowerBIMgmt/1.0.342

from powerbi-powershell.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.