Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
MikeyDK1
Frequent Visitor

Data source connection

Hey

 

I have just downloaded MicrosoftDefenderForEndpoint-PowerBI/Administration and Management at master · microsoft/MicrosoftDe... pbix file.

 

It works fine in PowerBI Desktop when using my own credentials. 

 

But how do I setup data source credentials? (I have create an application in Azure)

 

atp.JPG

 

(Using this in another powershell script)

$tenantId = 'xxxxx'
$appId = 'xxxxx'
$appSecret = 'xxxxx'
$resourceAppIdUri = 'https://api.securitycenter.windows.com'
$oAuthUri = "https://login.windows.net/$TenantId/oauth2/token"

1 ACCEPTED SOLUTION

With Variables I mean the values are in the code writen. You can use "parameters" that will need to write it at Service or it's just another step at the power query code. You can have steps like
tenantId = 'xxxxx'
appId = 'xxxxx'
appSecret = 'xxxxx'
resourceAppIdUri = 'https://api.securitycenter.windows.com'
oAuthUri = "https://login.windows.net/$TenantId/oauth2/token"

 

If you have a Web.Contests with all those values in the request login and getting the data with only code, then it's an anonymous auth because the code is already doing it all.

I hope that make sense


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Happy to help!

LaDataWeb Blog

View solution in original post

3 REPLIES 3
ibarrau
Super User
Super User

Hi. If your web source is an endpoint and you have all those values as variables setting headers in the code. Then there is nothing else than anonymous to continue because you are handling the auth in the code. I have used that one to connect to some Azure services and it worked good.

I hope that helps,


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Happy to help!

LaDataWeb Blog

But how do I add the variables to a dataset?

With Variables I mean the values are in the code writen. You can use "parameters" that will need to write it at Service or it's just another step at the power query code. You can have steps like
tenantId = 'xxxxx'
appId = 'xxxxx'
appSecret = 'xxxxx'
resourceAppIdUri = 'https://api.securitycenter.windows.com'
oAuthUri = "https://login.windows.net/$TenantId/oauth2/token"

 

If you have a Web.Contests with all those values in the request login and getting the data with only code, then it's an anonymous auth because the code is already doing it all.

I hope that make sense


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Happy to help!

LaDataWeb Blog

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

Top Solution Authors