Open Side Menu
Skip to contentBrand Logo
Forums
Inspiration
Ideas
Communities
Blogs
Learning
Support
RegisterSign In
  1. Microsoft Fabric Community
  2. Power BI forums
  3. Power Query

Forum Discussion

Oussama's avatar
Oussama
Regular Visitor
10 years ago

Power BI embedded with SSAS directe connection

Hi, I followed these steps here: https://azure.microsoft.com/en-us/documentation/articles/power-bi-embedded-get-started-sample/ To embed a report with directe connection to an SSAS cube.   1) I s...
Need Help
mikes2nd's avatar
mikes2nd
Helper I
10 years ago

Take a look at this.

 

https://github.com/Azure/azure-content/blob/master/articles/power-bi-embedded/power-bi-embedded-app-token-flow.md

 

Once you get a grasp of that, look at mapping Azure AD, at the top the author states

 

"This design does not require your app to use Azure Active Directory for user authentication and authorization, although you can do this."

 

 

Oussama's avatar
Oussama
Regular Visitor
10 years ago

Hi dear,
Could you please be more clear. I am not a .NET developer, I just want to use the sample on th GitHub.
My report work fine when uploaded to Power Bi Service.

I guess that the Patch to update the datasource is already applied on the Sample code :
 

// Update the datasource with the specified credentials
await client.Gateways.PatchDatasourceAsync(workspaceCollectionName, workspaceId, datasources.Value[datasources.Value.Count - 1].GatewayId, datasources.Value[datasources.Value.Count - 1].Id, delta);

My concerne is with the parameter I should use:

// Reset your connection credentials
                var delta = new GatewayDatasource
                {
                    CredentialType = "Basic",
                    BasicCredentials = new BasicCredentials
                    {
                        Username = username,
                        Password = password
                    }
                };

I guess that user name and password are those used for my datasource on the Gateway.
The VS debugger shows a null value for datasources variable.
Should I enter a connection string ?

 

  • mikes2nd's avatar
    mikes2nd
    Helper I
    10 years ago

    https://powerbi.microsoft.com/en-us/blog/tech-tip-thursday-authentication-with-analysis-services-live-connections/

     

    Take a look, it

    • Mohamed's avatar
      Mohamed
      Advocate I
      10 years ago

      Thank you Mikes, but will that work in Power BI Embedded?

      • shay_cullen's avatar
        shay_cullen
        Regular Visitor
        9 years ago

        Hi,

         

        Did this ever get solved?

Related content
  • RLS implementation under direct Lake connectivity

    4 months ago
    ankurarora1418
  • Power BI Direct Query (Live connection)

    5 months ago
    jishnubhattacha
  • PBI Embedded

    1 year ago
    poojithap
  • Power BI Direct Connection to SAP HANA Production Database

    2 months ago
    SantaT
  • Private Endpoint support for direct EventHub → EventHouse connection

    10 months ago
    PiotrJakub
  • © 2026 Microsoft
  • Manage cookies
  • Privacy & cookies
  • Terms of use
  • Trademarks
Your Privacy Choices Consumer Health Privacy