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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
anawast
Microsoft Employee
Microsoft Employee

Fabric throwing error: object identity is not a member of package com.azure

I am trying to run the following import statement in a fabric notebook: 

import com.azure.identity.{ClientAssertionCredentialBuilder, DefaultAzureCredentialBuilder, ManagedIdentityCredentialBuilder}

I have already brought the azure-identity JAR into a lakehouse and have set it in the spark configs using: 

%%configure -f
{
  "conf": {
      "spark.jars": "Lakehousepath/Files/azure-identity-1.11.4.jar"
  }
}

However, I am receiving this error: object identity is not a member of package com.azure.

On databricks, when I install the same JAR on a cluster and run the import commands, it works. Could you please help with a fix. 
5 REPLIES 5
anawast
Microsoft Employee
Microsoft Employee

It doesn't work with the JAR in built in as well. The first 2 docs you shared ask to add the %%configure command, which I have already done as presented in the query. The third doc relates to pip commands in python. However our code base is in scala. 

Anonymous
Not applicable

Hi @anawast ,

Apologize for the issue you are facing. The best course of action is to open a support ticket and have our support team take a closer look at it.

 

Please reach out to our support team so they can do a more thorough investigation on why this it is happening: Link 

 

After creating a Support ticket please provide the ticket number as it would help us to track for more information.

 

Hope this helps. Please let us know if you have any other queries.

Anonymous
Not applicable

Hi @anawast ,

We haven’t heard from you on the last response and was just checking back to see if you got a chance to open a support ticket.
After creating a Support ticket please provide the ticket number as it would help us to track for more information.

Thanks

Here is the ticket number: INC36339957 (Ticket Form - Microsoft Digital (service-now.com))

Anonymous
Not applicable

Hi @anawast ,

Thanks for using Fabric Community.

Did you uploaded jar in Built in?

vgchennamsft_0-1718011851715.png

 

vgchennamsft_1-1718012189187.png



Can you please check these docs?
Known issue - PySpark import statements fail for .jar files installed through environment - Microsof...
Manage Apache Spark libraries - Microsoft Fabric | Microsoft Learn
Manage Apache Spark libraries - Microsoft Fabric | Microsoft Learn

Hope this might help to resolve your issue. Please let me know incase of further queries.

Helpful resources

Announcements
August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.