<?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 Deploying Metastore with Terraform in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/deploying-metastore-with-terraform/m-p/123279#M46973</link>
    <description>&lt;P&gt;my goal is to be able to enable unity catalog on a clean Azure deployment of databricks with absolutely no history of databricks.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know I need to create a metastore for the Azure Region. And to do this I know I need Account Admin from the accounts page of databricks.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So if I deploy a new Azure Databricks workspace from terraform, how am I able to gain account admin for an account automatically?&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems you need account admin to give account admin, I know manually I would get an azure admin to log into the accounts page and assign a new account admin, but how can I do that via terraform? Or does there always have to be this manual step?&amp;nbsp;&lt;/P&gt;&lt;P&gt;If there does have to be a manual step - is it possible to do this prior to the creation of the workspace? e.g. setup before any pipeline would execute running the terraform commands?&amp;nbsp;&lt;/P&gt;&lt;P&gt;how have other people done this?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 30 Jun 2025 11:49:37 GMT</pubDate>
    <dc:creator>JCooke</dc:creator>
    <dc:date>2025-06-30T11:49:37Z</dc:date>
    <item>
      <title>Deploying Metastore with Terraform</title>
      <link>https://community.databricks.com/t5/data-engineering/deploying-metastore-with-terraform/m-p/123279#M46973</link>
      <description>&lt;P&gt;my goal is to be able to enable unity catalog on a clean Azure deployment of databricks with absolutely no history of databricks.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know I need to create a metastore for the Azure Region. And to do this I know I need Account Admin from the accounts page of databricks.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So if I deploy a new Azure Databricks workspace from terraform, how am I able to gain account admin for an account automatically?&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems you need account admin to give account admin, I know manually I would get an azure admin to log into the accounts page and assign a new account admin, but how can I do that via terraform? Or does there always have to be this manual step?&amp;nbsp;&lt;/P&gt;&lt;P&gt;If there does have to be a manual step - is it possible to do this prior to the creation of the workspace? e.g. setup before any pipeline would execute running the terraform commands?&amp;nbsp;&lt;/P&gt;&lt;P&gt;how have other people done this?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jun 2025 11:49:37 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/deploying-metastore-with-terraform/m-p/123279#M46973</guid>
      <dc:creator>JCooke</dc:creator>
      <dc:date>2025-06-30T11:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: Deploying Metastore with Terraform</title>
      <link>https://community.databricks.com/t5/data-engineering/deploying-metastore-with-terraform/m-p/123289#M46979</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/172859"&gt;@JCooke&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;The first assignment of the Databricks Account Admin role is a bit of a special case.&amp;nbsp;There is always a manual step required to assign the first Account Admin in a new Databricks account on Azure. This step cannot be fully automated via Terraform (or any other API) for security reasons (because it requires Microsoft Entra ID Global Administrator roles (which as you can guess is really high privilege ).&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;But after that first step you can create an Entra ID group and assing to that group required permission (for example ability to create metastore etc.)&lt;BR /&gt;Then you devops identity could be added to that group and you'll have ability to create metastore, workspaces in a fully automated way using terraform (or apis, scripts etc.)&lt;BR /&gt;&lt;BR /&gt;Take a look at article written by my colleague. He managed to automate full process in terraform:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://pl.seequality.net/terra-dbx-p1/" target="_blank" rel="noopener"&gt;Terraforming Databricks #1: Unity Catalog Metastore – Seequality&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jun 2025 13:17:44 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/deploying-metastore-with-terraform/m-p/123289#M46979</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2025-06-30T13:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: Deploying Metastore with Terraform</title>
      <link>https://community.databricks.com/t5/data-engineering/deploying-metastore-with-terraform/m-p/123290#M46980</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/110502"&gt;@szymon_dybczak&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, I read this article earlier - I thought this was the case, that an account admin needs to log in and crate a service principal that has account admin or such. I was just looking to get this confirmed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the flow would be;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;1. Someone registers their with Databricks.com&lt;/LI&gt;&lt;LI&gt;They manually log in and create an account admin / service principal with account admin&lt;/LI&gt;&lt;LI&gt;Terraform can use that - do its stuff&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;forgive my ignorance (im not an azure admin or bill payer) - can you register with accounts.databricks.com prior to having workspaces created? e.g. could I do this as a pre-requisite for any pipelines to deploy infrastructure&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jun 2025 13:17:41 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/deploying-metastore-with-terraform/m-p/123290#M46980</guid>
      <dc:creator>JCooke</dc:creator>
      <dc:date>2025-06-30T13:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: Deploying Metastore with Terraform</title>
      <link>https://community.databricks.com/t5/data-engineering/deploying-metastore-with-terraform/m-p/123295#M46981</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/172859"&gt;@JCooke&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Yes, just go to:&amp;nbsp;&lt;A href="https://accounts.azuredatabricks.net/" target="_blank" rel="noopener"&gt;accounts.azuredatabricks.net&lt;/A&gt;&amp;nbsp;and log in with account that has global administrator role privilege.&amp;nbsp;&lt;SPAN&gt;Azure Databricks automatically creates an account admin role for you&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jun 2025 13:31:20 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/deploying-metastore-with-terraform/m-p/123295#M46981</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2025-06-30T13:31:20Z</dc:date>
    </item>
  </channel>
</rss>

