<?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 Connection with  Azure service principal in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/connection-with-azure-service-principal/m-p/121301#M46412</link>
    <description>&lt;P&gt;I have configured a data bricks connection with Azure using a service principal who is configured in both Azure system and data bricks.&amp;nbsp; I am getting an issue calling this API since early June.&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;https://$URI$&lt;/SPAN&gt;&lt;SPAN&gt;/api/2.0/secrets/scopes/list&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Headers&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;@&lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"Authorization"&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;"Bearer &lt;/SPAN&gt;&lt;SPAN&gt;$Token&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;I am getting the token properly and sending to the correct URL, workspace is retrieving value. The API call is sending back a 403 error:&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;##[error]The remote server returned an error: (403) Forbidden. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;No configurations made or modifications in code to make the connection. The client id and secret seems valid.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried to extend the permissions in the service principal and didn't work. I have been able to create a token using my local machine and send the API call successfully.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any extra configurations I should apply in the service principal?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Jun 2025 08:26:44 GMT</pubDate>
    <dc:creator>juancanocondes</dc:creator>
    <dc:date>2025-06-10T08:26:44Z</dc:date>
    <item>
      <title>Connection with  Azure service principal</title>
      <link>https://community.databricks.com/t5/data-engineering/connection-with-azure-service-principal/m-p/121301#M46412</link>
      <description>&lt;P&gt;I have configured a data bricks connection with Azure using a service principal who is configured in both Azure system and data bricks.&amp;nbsp; I am getting an issue calling this API since early June.&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;https://$URI$&lt;/SPAN&gt;&lt;SPAN&gt;/api/2.0/secrets/scopes/list&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Headers&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;@&lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"Authorization"&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;"Bearer &lt;/SPAN&gt;&lt;SPAN&gt;$Token&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;I am getting the token properly and sending to the correct URL, workspace is retrieving value. The API call is sending back a 403 error:&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;##[error]The remote server returned an error: (403) Forbidden. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;No configurations made or modifications in code to make the connection. The client id and secret seems valid.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried to extend the permissions in the service principal and didn't work. I have been able to create a token using my local machine and send the API call successfully.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any extra configurations I should apply in the service principal?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jun 2025 08:26:44 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/connection-with-azure-service-principal/m-p/121301#M46412</guid>
      <dc:creator>juancanocondes</dc:creator>
      <dc:date>2025-06-10T08:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: Connection with  Azure service principal</title>
      <link>https://community.databricks.com/t5/data-engineering/connection-with-azure-service-principal/m-p/121537#M46474</link>
      <description>&lt;P&gt;For anyone interested, this particular case was due migrating Azure Powershell to a new version. This is the link to follow just in case&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/powershell/azure/migrate-az-14.0.0?view=azps-14.1.0" target="_blank"&gt;https://learn.microsoft.com/en-us/powershell/azure/migrate-az-14.0.0?view=azps-14.1.0&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jun 2025 01:07:23 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/connection-with-azure-service-principal/m-p/121537#M46474</guid>
      <dc:creator>juancanocondes</dc:creator>
      <dc:date>2025-06-12T01:07:23Z</dc:date>
    </item>
  </channel>
</rss>

