<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Invalid tenant id provided. in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Invalid-tenant-id-provided/m-p/4668693#M8858</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;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.&lt;/P&gt;&lt;P class=""&gt;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&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;java.lang.IllegalArgumentException: Invalid tenant id provided. You can locate your tenant id &lt;SPAN class=""&gt;by &lt;SPAN class=""&gt;following the instructions listed here:&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;A href="https://learn.microsoft.com/partner-center/find-ids-and-domain-names" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/partner-center/find-ids-and-domain-names&lt;/A&gt; at com.azure.identity.implementation.util.ValidationUtil.validateTenantIdCharacterRange(ValidationUtil.java:72)&lt;/SPAN&gt;&lt;P class=""&gt;For reference, I'm passing the arguments in the following order:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;"container" &lt;SPAN class=""&gt;"accountname" &lt;SPAN class=""&gt;"abfss://container@accountname.dfs.core.windows.net/profilrtest/profile.json" &lt;SPAN class=""&gt;"tenantid" &lt;SPAN class=""&gt;"clientid" &lt;SPAN class=""&gt;"clientsecret"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P class=""&gt;These map to the following variables in my code:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;storageAccountName: String,
warehousePath: String,
container: String,
tenantId: String,
clientId: String,
clientSecret: String&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P class=""&gt;Any insights on what might be causing the issue when using command-line arguments would be appreciated.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 25 Apr 2025 16:57:26 GMT</pubDate>
    <dc:creator>rishivarma</dc:creator>
    <dc:date>2025-04-25T16:57:26Z</dc:date>
    <item>
      <title>Invalid tenant id provided.</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Invalid-tenant-id-provided/m-p/4668693#M8858</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;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.&lt;/P&gt;&lt;P class=""&gt;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&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;java.lang.IllegalArgumentException: Invalid tenant id provided. You can locate your tenant id &lt;SPAN class=""&gt;by &lt;SPAN class=""&gt;following the instructions listed here:&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;A href="https://learn.microsoft.com/partner-center/find-ids-and-domain-names" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/partner-center/find-ids-and-domain-names&lt;/A&gt; at com.azure.identity.implementation.util.ValidationUtil.validateTenantIdCharacterRange(ValidationUtil.java:72)&lt;/SPAN&gt;&lt;P class=""&gt;For reference, I'm passing the arguments in the following order:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;"container" &lt;SPAN class=""&gt;"accountname" &lt;SPAN class=""&gt;"abfss://container@accountname.dfs.core.windows.net/profilrtest/profile.json" &lt;SPAN class=""&gt;"tenantid" &lt;SPAN class=""&gt;"clientid" &lt;SPAN class=""&gt;"clientsecret"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P class=""&gt;These map to the following variables in my code:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;storageAccountName: String,
warehousePath: String,
container: String,
tenantId: String,
clientId: String,
clientSecret: String&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P class=""&gt;Any insights on what might be causing the issue when using command-line arguments would be appreciated.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 25 Apr 2025 16:57:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Invalid-tenant-id-provided/m-p/4668693#M8858</guid>
      <dc:creator>rishivarma</dc:creator>
      <dc:date>2025-04-25T16:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid tenant id provided.</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Invalid-tenant-id-provided/m-p/4668853#M8862</link>
      <description>&lt;P&gt;Never mind removing the double quotes worked.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Apr 2025 21:00:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Invalid-tenant-id-provided/m-p/4668853#M8862</guid>
      <dc:creator>rishivarma</dc:creator>
      <dc:date>2025-04-25T21:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid tenant id provided.</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Invalid-tenant-id-provided/m-p/4670503#M8891</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1266072" data-lia-user-login="rishivarma" class="lia-mention lia-mention-user"&gt;rishivarma&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Priyanka&lt;/P&gt;</description>
      <pubDate>Mon, 28 Apr 2025 09:59:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Invalid-tenant-id-provided/m-p/4670503#M8891</guid>
      <dc:creator>v-priyankata</dc:creator>
      <dc:date>2025-04-28T09:59:11Z</dc:date>
    </item>
  </channel>
</rss>

