Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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
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: StringAny insights on what might be causing the issue when using command-line arguments would be appreciated.
Solved! Go to Solution.
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
Never mind removing the double quotes worked.