Power BI: DataSource is a DataConnection based on Managed Identities supported
04:14 02 Apr 2025

In my semantic model, I have a DataSource connection which is connected to a SQL Server. The connection I have made is now based on a usercode/password.

The code looks like:

// Create UpdateDatasourceRequest to update Azure SQL datasource credentials
var updateDatasourceRequest = new UpdateDatasourceRequest
{
    CredentialDetails = new CredentialDetails(
        new BasicCredentials(userName, password),
        PrivacyLevel.None,
        EncryptedConnection.NotEncrypted)
};

I want to connect with the database based on managed identities. Is this already supported? And yes, how does this work?

powerbi-datasource