<?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: Enforcing Tags on SQL Warehouses in Administration &amp; Architecture</title>
    <link>https://community.databricks.com/t5/administration-architecture/enforcing-tags-on-sql-warehouses/m-p/126979#M3780</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/145700"&gt;@kamal_ch&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for your answer. I am aware that tags can be added. However, I want to enforce that warehouses cannot be created without adding tags. The goal is to allow users to create warehouses while making sure they are properly tagged. So like when using cluster policies which allow you to enforce that tags are added to new compute resources users create. Unfortunately I havent found any option to enforce tagging of SQL warehouses. Do you know of any ways to do that?&lt;/P&gt;</description>
    <pubDate>Wed, 30 Jul 2025 18:28:13 GMT</pubDate>
    <dc:creator>Michael_Appiah</dc:creator>
    <dc:date>2025-07-30T18:28:13Z</dc:date>
    <item>
      <title>Enforcing Tags on SQL Warehouses</title>
      <link>https://community.databricks.com/t5/administration-architecture/enforcing-tags-on-sql-warehouses/m-p/111548#M3074</link>
      <description>&lt;P&gt;Is there a way to enforce tags on SQL Warehouses? Regular cluster policies do not apply to SQL Warehouses and budget policies do not cover SQL Warehouses either, which I find quite surprising given the fact that budget policies are documented as "&lt;A href="https://docs.databricks.com/aws/en/admin/usage/budget-policies" target="_blank" rel="noopener"&gt;Attribute serverless usage with budget policies&lt;/A&gt;". I would have expected that to cover serverless SQL Warehouses as well, but the &lt;A href="https://docs.databricks.com/aws/en/admin/usage/budget-policies#where-to-select-the-budget-policy" target="_blank" rel="noopener"&gt;docs&lt;/A&gt; only describe how to use budget policies with serverless Notebooks, Jobs, Pipelines and Endpoints but not serverless SQL Warehouses. Is there a way or workaround to enforce tags on SQL Warehouses?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Mar 2025 09:10:02 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/enforcing-tags-on-sql-warehouses/m-p/111548#M3074</guid>
      <dc:creator>Michael_Appiah</dc:creator>
      <dc:date>2025-03-03T09:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: Enforcing Tags on SQL Warehouses</title>
      <link>https://community.databricks.com/t5/administration-architecture/enforcing-tags-on-sql-warehouses/m-p/126406#M3746</link>
      <description>&lt;P&gt;Hi Michael,&lt;/P&gt;
&lt;P&gt;You can add tags using Advanced options when creating the Warehouse:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.databricks.com/aws/en/compute/sql-warehouse/create#advanced-options" target="_blank"&gt;https://docs.databricks.com/aws/en/compute/sql-warehouse/create#advanced-options&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Kamal&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jul 2025 19:19:06 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/enforcing-tags-on-sql-warehouses/m-p/126406#M3746</guid>
      <dc:creator>kamal_ch</dc:creator>
      <dc:date>2025-07-24T19:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: Enforcing Tags on SQL Warehouses</title>
      <link>https://community.databricks.com/t5/administration-architecture/enforcing-tags-on-sql-warehouses/m-p/126979#M3780</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/145700"&gt;@kamal_ch&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for your answer. I am aware that tags can be added. However, I want to enforce that warehouses cannot be created without adding tags. The goal is to allow users to create warehouses while making sure they are properly tagged. So like when using cluster policies which allow you to enforce that tags are added to new compute resources users create. Unfortunately I havent found any option to enforce tagging of SQL warehouses. Do you know of any ways to do that?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jul 2025 18:28:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/enforcing-tags-on-sql-warehouses/m-p/126979#M3780</guid>
      <dc:creator>Michael_Appiah</dc:creator>
      <dc:date>2025-07-30T18:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: Enforcing Tags on SQL Warehouses</title>
      <link>https://community.databricks.com/t5/administration-architecture/enforcing-tags-on-sql-warehouses/m-p/129578#M3953</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/145700"&gt;@kamal_ch&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for your answer. I understand that tags can be added under the "advanced options" when creating the warehouse. But how can I enforce that every developer sets specific tags when creating warehouses?&lt;BR /&gt;So I basically what I am looking for is almost like a compute policy for SQL warehouses which allows admins to enforce that tags must be set when creating a new SQL warehouse. Is there a way to do this today or is there anything on the roadmap?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;</description>
      <pubDate>Mon, 25 Aug 2025 09:30:36 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/enforcing-tags-on-sql-warehouses/m-p/129578#M3953</guid>
      <dc:creator>Michael_Appiah</dc:creator>
      <dc:date>2025-08-25T09:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: Enforcing Tags on SQL Warehouses</title>
      <link>https://community.databricks.com/t5/administration-architecture/enforcing-tags-on-sql-warehouses/m-p/129595#M3955</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/87184"&gt;@Michael_Appiah&lt;/a&gt;&amp;nbsp;this isn't any area I'm familiar with but I thought I'd try and get the ball rolling.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you looked into this&amp;nbsp;&lt;A href="https://docs.databricks.com/aws/en/admin/clusters/policy-definition" target="_blank" rel="noopener"&gt;https://docs.databricks.com/aws/en/admin/clusters/policy-definition&lt;/A&gt;&amp;nbsp;. It could be a red herring from me, but your article is looking at budget policies, whereas this is cluster policies. Perhaps these are kinder to SQL warehouses.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BS_THE_ANALYST_0-1756118038219.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/19328i9C4F32243968F9CD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BS_THE_ANALYST_0-1756118038219.png" alt="BS_THE_ANALYST_0-1756118038219.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It looks, to me at least (I'm probably being naive), that there's some padlocks on these icons, perhaps this means they can be fixed. Perhaps this can be driven from the user dynamically?&lt;BR /&gt;&lt;BR /&gt;There's a cool parameter:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BS_THE_ANALYST_1-1756118142683.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/19329iE1B8852AB870D864/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BS_THE_ANALYST_1-1756118142683.png" alt="BS_THE_ANALYST_1-1756118142683.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Could use that for cost centre etc?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BS_THE_ANALYST_2-1756118207335.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/19330i72ED45DBBA27CB75/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BS_THE_ANALYST_2-1756118207335.png" alt="BS_THE_ANALYST_2-1756118207335.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hopefully that's useful! Not my area of expertise but always happy to have a stab at it &lt;span class="lia-unicode-emoji" title=":rolling_on_the_floor_laughing:"&gt;🤣&lt;/span&gt;.&lt;BR /&gt;&lt;BR /&gt;All the best,&lt;BR /&gt;BS&lt;/P&gt;</description>
      <pubDate>Mon, 25 Aug 2025 10:41:59 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/enforcing-tags-on-sql-warehouses/m-p/129595#M3955</guid>
      <dc:creator>BS_THE_ANALYST</dc:creator>
      <dc:date>2025-08-25T10:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: Enforcing Tags on SQL Warehouses</title>
      <link>https://community.databricks.com/t5/administration-architecture/enforcing-tags-on-sql-warehouses/m-p/131636#M4008</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/146924"&gt;@BS_THE_ANALYST&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;thanks for your answer and for "having a stab at it" &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm aware of cluster policies. The issue is that currently cluster policies cannot be applied to SQL warehouses only to job and all-purpose clusters. I would need cluster policies to cover SQL warehouses as well so that I can enforce tagging on SQL warehouses. The information that I have been able to get from Databricks now, is that they are aware of the issue and are lookgin into it. So hopefully, we can get to see something on the roadmap soon.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;BR /&gt;Michael&lt;/P&gt;</description>
      <pubDate>Thu, 11 Sep 2025 09:52:47 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/enforcing-tags-on-sql-warehouses/m-p/131636#M4008</guid>
      <dc:creator>Michael_Appiah</dc:creator>
      <dc:date>2025-09-11T09:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: Enforcing Tags on SQL Warehouses</title>
      <link>https://community.databricks.com/t5/administration-architecture/enforcing-tags-on-sql-warehouses/m-p/131694#M4015</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/87184"&gt;@Michael_Appiah&lt;/a&gt;&amp;nbsp;Yes the default tag policies doesn't apply on warehouse. The solution that I can recommend is assign a tag block if you are deploying using terraform, asset bundle etc to deploy the warehouse. The other solution that I use is I run a notebook using SDK that list all warehouses and checks if the tags are present if not it will assign tags.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from databricks.sdk import WorkspaceClient

# Initialize the workspace client
w = WorkspaceClient()

# Define the default tags to apply
default_tags = {
    "owner": "",
    "team": "",
    "environment": "production"
}

# List all SQL warehouses
warehouses = w.warehouses.list()

# Loop through and update warehouses without tags
for warehouse in warehouses:
    if not warehouse.tags:  # Check if tags are missing or empty
        print(f"Updating warehouse: {warehouse.name} (ID: {warehouse.id})")
        w.warehouses.edit(
            id=warehouse.id,
            tags=default_tags
        )
    else:
        print(f"Warehouse already has tags: {warehouse.name} (ID: {warehouse.id})")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Sep 2025 17:59:41 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/enforcing-tags-on-sql-warehouses/m-p/131694#M4015</guid>
      <dc:creator>nayan_wylde</dc:creator>
      <dc:date>2025-09-11T17:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: Enforcing Tags on SQL Warehouses</title>
      <link>https://community.databricks.com/t5/administration-architecture/enforcing-tags-on-sql-warehouses/m-p/131739#M4023</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/79394"&gt;@nayan_wylde&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;thanks for the input. I think that is a good workaround until tags on warehouses can be enforced natively.&lt;BR /&gt;I appreciate it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Sep 2025 08:19:24 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/enforcing-tags-on-sql-warehouses/m-p/131739#M4023</guid>
      <dc:creator>Michael_Appiah</dc:creator>
      <dc:date>2025-09-12T08:19:24Z</dc:date>
    </item>
  </channel>
</rss>

