<?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 Service principle used in Bitbucket CICD pipelines not working in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/service-principle-used-in-bitbucket-cicd-pipelines-not-working/m-p/124492#M47210</link>
    <description>&lt;P&gt;The Databricks Asset Bundle is used for the&amp;nbsp;Bitbucket CICD pipelines.&lt;/P&gt;&lt;P&gt;The service principle is used in both of the local Databricks configuration and Bitbucket CICD environment.&lt;/P&gt;&lt;P&gt;The service principle is only working in the local environment for deployment, but not in&amp;nbsp;Bitbucket CICD environment.&lt;/P&gt;&lt;P&gt;The SP config similar to :&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;[DEFAULT]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;host = &amp;lt;host&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;account_id = &amp;lt;account_id&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;client_id = &amp;lt;client_id&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;client_secret = &amp;lt;client_secret&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;If I use personal user configuration in local and&amp;nbsp;Bitbucket CICD environment, the DAB worked fine in both envs without any issue.&lt;/P&gt;</description>
    <pubDate>Tue, 08 Jul 2025 17:23:43 GMT</pubDate>
    <dc:creator>paulchen</dc:creator>
    <dc:date>2025-07-08T17:23:43Z</dc:date>
    <item>
      <title>Service principle used in Bitbucket CICD pipelines not working</title>
      <link>https://community.databricks.com/t5/data-engineering/service-principle-used-in-bitbucket-cicd-pipelines-not-working/m-p/124492#M47210</link>
      <description>&lt;P&gt;The Databricks Asset Bundle is used for the&amp;nbsp;Bitbucket CICD pipelines.&lt;/P&gt;&lt;P&gt;The service principle is used in both of the local Databricks configuration and Bitbucket CICD environment.&lt;/P&gt;&lt;P&gt;The service principle is only working in the local environment for deployment, but not in&amp;nbsp;Bitbucket CICD environment.&lt;/P&gt;&lt;P&gt;The SP config similar to :&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;[DEFAULT]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;host = &amp;lt;host&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;account_id = &amp;lt;account_id&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;client_id = &amp;lt;client_id&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;client_secret = &amp;lt;client_secret&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;If I use personal user configuration in local and&amp;nbsp;Bitbucket CICD environment, the DAB worked fine in both envs without any issue.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jul 2025 17:23:43 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/service-principle-used-in-bitbucket-cicd-pipelines-not-working/m-p/124492#M47210</guid>
      <dc:creator>paulchen</dc:creator>
      <dc:date>2025-07-08T17:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: Service principle used in Bitbucket CICD pipelines not working</title>
      <link>https://community.databricks.com/t5/data-engineering/service-principle-used-in-bitbucket-cicd-pipelines-not-working/m-p/133047#M49708</link>
      <description>&lt;P&gt;Hey PaulChen&lt;/P&gt;
&lt;DIV class="paragraph"&gt;Having your Databricks service principal (SP) work locally but fail in Bitbucket CI/CD usually means environment variables aren’t set up right, or the pipeline is falling back to an unexpected config.&lt;/DIV&gt;
&lt;DIV class="paragraph"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="paragraph"&gt;&lt;STRONG&gt;Quick checklist:&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;UL&gt;
&lt;LI&gt;Set all SP credentials (&lt;CODE&gt;DATABRICKS_HOST&lt;/CODE&gt;, &lt;CODE&gt;DATABRICKS_ACCOUNT_ID&lt;/CODE&gt;, &lt;CODE&gt;DATABRICKS_CLIENT_ID&lt;/CODE&gt;, &lt;CODE&gt;DATABRICKS_CLIENT_SECRET&lt;/CODE&gt;) as Bitbucket repo/project variables—don’t hard-code.&lt;/LI&gt;
&lt;LI&gt;Ensure the pipeline script actually exports those vars before running Databricks CLI/DAB.&lt;/LI&gt;
&lt;LI&gt;Make sure your pipeline is referencing the right profile/environment and not a user config by mistake.&lt;/LI&gt;
&lt;LI&gt;Confirm your service principal has all the permissions it needs in Databricks (deployments, workflow runs, etc.).&lt;/LI&gt;
&lt;LI&gt;Match the Databricks CLI version in Bitbucket to what you use locally.&lt;/LI&gt;
&lt;/UL&gt;
&lt;DIV class="paragraph"&gt;If you’re referencing a &lt;CODE&gt;.databrickscfg&lt;/CODE&gt; file in CI, build it from env vars during your pipeline for security. Check error messages—missing or mistyped env var names are common causes. If you stay stuck, echo a redacted config dump in CI to compare with local.&lt;/DIV&gt;
&lt;DIV class="paragraph"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="paragraph"&gt;Let me know if this was helpful!&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="paragraph"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="paragraph"&gt;Sarah&lt;/DIV&gt;
&lt;DIV class="paragraph"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Sep 2025 17:36:29 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/service-principle-used-in-bitbucket-cicd-pipelines-not-working/m-p/133047#M49708</guid>
      <dc:creator>sarahbhord</dc:creator>
      <dc:date>2025-09-25T17:36:29Z</dc:date>
    </item>
  </channel>
</rss>

