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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
rishivarma
New Member

Invalid tenant id provided.

 

I’ve been working on accessing Azure Blob Storage using a Service Principal. While testing this setup with a Spark job in Microsoft Fabric, I encountered an issue when passing the required credentials as command-line arguments.

When I hard-code the values within the application, everything works fine. However, when I pass them as command-line arguments, I receive the following error

java.lang.IllegalArgumentException: Invalid tenant id provided. You can locate your tenant id by following the instructions listed here: https://learn.microsoft.com/partner-center/find-ids-and-domain-names at com.azure.identity.implementation.util.ValidationUtil.validateTenantIdCharacterRange(ValidationUtil.java:72)

For reference, I'm passing the arguments in the following order:

 

"container" "accountname" "abfss://container@accountname.dfs.core.windows.net/profilrtest/profile.json" "tenantid" "clientid" "clientsecret"

These map to the following variables in my code:

storageAccountName: String,
warehousePath: String,
container: String,
tenantId: String,
clientId: String,
clientSecret: String

Any insights on what might be causing the issue when using command-line arguments would be appreciated.

1 ACCEPTED SOLUTION
rishivarma
New Member

Never mind removing the double quotes worked.

View solution in original post

2 REPLIES 2
v-priyankata
Community Support
Community Support

Hi @rishivarma 
Glad to hear that you have found the solution. Could you please accept your solution as the accepted solution? It will help other members as well.

Thanks
Priyanka

rishivarma
New Member

Never mind removing the double quotes worked.

Helpful resources

Announcements
December Fabric Update Carousel

Fabric Monthly Update - December 2025

Check out the December 2025 Fabric Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.