Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to access another Azure AD tenant #45

Open
fmms opened this issue Sep 25, 2018 · 1 comment
Open

How to access another Azure AD tenant #45

fmms opened this issue Sep 25, 2018 · 1 comment

Comments

@fmms
Copy link
Contributor

fmms commented Sep 25, 2018

Hi,

I can use Get-PBIAuthToken without any issue to access my own corporate Active directory. However, when using Get-PBIAuthToken -tenantId "xxx.onmicrosoft.com" I still get the login dialog of my corporate Azure AD and not the one of "xxx.onmicrosoft.com".

What do I have to do to login with another Azure AD? In the browser using Powerbi.com the relevant users has all needed permissions.
Could you please provide some steps?

Thank you

@fmms
Copy link
Contributor Author

fmms commented Oct 2, 2018

I found a workarround for this issue using the following:

Login-PowerBIServiceAccount
$authToken = $(Get-PowerBIAccessToken -AsString).Replace("Bearer ","")

This is the commandlet from https://github.com/Microsoft/powerbi-powershell . Afterwards one can continue using the DevScope applets and passing the $authToken

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant