<?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 Re: Databricks Docker CLI image - how to debug Terraform when deploying Asset Bundle in Administration &amp; Architecture</title>
    <link>https://community.databricks.com/t5/administration-architecture/databricks-docker-cli-image-how-to-debug-terraform-when/m-p/109389#M2960</link>
    <description>&lt;P&gt;OK, as it turns out - in order to bypass proxy we needed to set no_proxy env variable in both upper and lower case (!), like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;NO_PROXY="adb-xxx.azuredatabricks.net"

docker run \
  -v %teamcity.build.checkoutDir%:/my-bundle \
  -v %teamcity.build.checkoutDir%/.databrickscfg:/root/.databrickscfg \
  -w /my-bundle \
  -e ARM_CLIENT_SECRET="%env.TF_VAR_client_secret%" \
  -e ARM_CLIENT_ID="%env.TF_VAR_client_id%" \
  -e ARM_TENANT_ID="%env.TF_VAR_tenant_id%" \
  -e NO_PROXY=$NO_PROXY \
  -e no_proxy=$NO_PROXY \
  %docker.repository%/databricks/cli:0.238.0 bundle deploy -t prototype-dev -p DEFAULT&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 07 Feb 2025 11:11:55 GMT</pubDate>
    <dc:creator>JacekJacek</dc:creator>
    <dc:date>2025-02-07T11:11:55Z</dc:date>
    <item>
      <title>Databricks Docker CLI image - how to debug Terraform when deploying Asset Bundle</title>
      <link>https://community.databricks.com/t5/administration-architecture/databricks-docker-cli-image-how-to-debug-terraform-when/m-p/109094#M2954</link>
      <description>&lt;P&gt;We're having issues when deploying asset bundle using docker databricks cli image.&lt;/P&gt;&lt;P&gt;Validation part passes OK:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;14:21:15   Name: test
14:21:15   Target: prototype-dev
14:21:15   Workspace:
14:21:15     Host: https://adb-xxx.azuredatabricks.net/
14:21:15     User: ***
14:21:15     Path: /Workspace/Users/***/.bundle/test/prototype-dev
14:21:15   
14:21:15   Validation OK!&lt;/LI-CODE&gt;&lt;P&gt;And the bundle upload works OK as well:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;14:21:20   Uploading bundle files to /Workspace/Users/***/.bundle/test/prototype-dev/files...
14:21:27   Deploying resources...
14:21:29   Updating deployment state...
14:21:30   Deployment complete!&lt;/LI-CODE&gt;&lt;P&gt;But then when cli runs terraform it fails:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;14:21:30   Error: terraform apply: exit status 1
14:21:30   
14:21:30   Error: cannot create job: Unauthorized network access to workspace: xxx
14:21:30   
14:21:30     with databricks_job.configure-file-sources,
14:21:30     on bundle.tf.json line 96, in resource.databricks_job.configure-file-sources:
14:21:30     96:       },
14:21:30   
14:21:30   
14:21:30   Error: cannot create pipeline: Unauthorized network access to workspace: xxx
14:21:30   
14:21:30     with databricks_pipeline.file_ingestion_pipeline,
14:21:30     on bundle.tf.json line 313, in resource.databricks_pipeline.file_ingestion_pipeline:
14:21:30    313:       }
14:21:30   14:21:30   Error: terraform apply: exit status 1
14:21:30   
14:21:30   Error: cannot create job: Unauthorized network access to workspace: xxx
14:21:30   
14:21:30     with databricks_job.configure-file-sources,
14:21:30     on bundle.tf.json line 96, in resource.databricks_job.configure-file-sources:
14:21:30     96:       },
14:21:30   
14:21:30   
14:21:30   Error: cannot create pipeline: Unauthorized network access to workspace: xxx
14:21:30   
14:21:30     with databricks_pipeline.file_ingestion_pipeline,
14:21:30     on bundle.tf.json line 313, in resource.databricks_pipeline.file_ingestion_pipeline:
14:21:30    313:       }
14:21:30   &lt;/LI-CODE&gt;&lt;P&gt;we are running the deploy command from TeamCity like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;NO_PROXY="adb-xxx.azuredatabricks.net"

docker run \
  -v %teamcity.build.checkoutDir%:/my-bundle \
  -v %teamcity.build.checkoutDir%/.databrickscfg:/root/.databrickscfg \
  -w /my-bundle \
  -e ARM_CLIENT_SECRET="%env.TF_VAR_client_secret%" \
  -e ARM_CLIENT_ID="%env.TF_VAR_client_id%" \
  -e ARM_TENANT_ID="%env.TF_VAR_tenant_id%" \
  -e NO_PROXY=$NO_PROXY \
  -e TF_LOG="DEBUG" \
  %docker.repository%/databricks/cli:0.238.0 bundle deploy -t prototype-dev -p DEFAULT --debug&lt;/LI-CODE&gt;&lt;P&gt;And we can see the debugging output from databricks cli, but not from terraform. We need to pass to the terraform binary the NO_PROXY variable as well, and I suspect that's causing the problems - but I have no way of confirming that. The service principal we're using for deployments is assigned admin role on the workspace. How can we further debug this?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2025 07:45:24 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/databricks-docker-cli-image-how-to-debug-terraform-when/m-p/109094#M2954</guid>
      <dc:creator>JacekJacek</dc:creator>
      <dc:date>2025-02-06T07:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Docker CLI image - how to debug Terraform when deploying Asset Bundle</title>
      <link>https://community.databricks.com/t5/administration-architecture/databricks-docker-cli-image-how-to-debug-terraform-when/m-p/109389#M2960</link>
      <description>&lt;P&gt;OK, as it turns out - in order to bypass proxy we needed to set no_proxy env variable in both upper and lower case (!), like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;NO_PROXY="adb-xxx.azuredatabricks.net"

docker run \
  -v %teamcity.build.checkoutDir%:/my-bundle \
  -v %teamcity.build.checkoutDir%/.databrickscfg:/root/.databrickscfg \
  -w /my-bundle \
  -e ARM_CLIENT_SECRET="%env.TF_VAR_client_secret%" \
  -e ARM_CLIENT_ID="%env.TF_VAR_client_id%" \
  -e ARM_TENANT_ID="%env.TF_VAR_tenant_id%" \
  -e NO_PROXY=$NO_PROXY \
  -e no_proxy=$NO_PROXY \
  %docker.repository%/databricks/cli:0.238.0 bundle deploy -t prototype-dev -p DEFAULT&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 07 Feb 2025 11:11:55 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/databricks-docker-cli-image-how-to-debug-terraform-when/m-p/109389#M2960</guid>
      <dc:creator>JacekJacek</dc:creator>
      <dc:date>2025-02-07T11:11:55Z</dc:date>
    </item>
  </channel>
</rss>

