<?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 Override default Personal Compute policy using terraform / disable Personal Compute policy in Administration &amp; Architecture</title>
    <link>https://community.databricks.com/t5/administration-architecture/override-default-personal-compute-policy-using-terraform-disable/m-p/61695#M920</link>
    <description>&lt;P&gt;I want to programmatically do some adjustments to the default personal compute resource or preferably create my own custom one based on the same configuration or policy family (in which all users can gain access to) when deploying a new workspace using terraform. I know an account admin can enable&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-gb/azure/databricks/administration-guide/clusters/personal-compute#--managing-access-to-the-personal-compute-policy" target="_blank"&gt;Manage the Personal Compute policy - Azure Databricks | Microsoft Learn&lt;/A&gt;&amp;nbsp;at an account level although I am uncertain if this can be applied for other policies too (for instance the custom one) so that the default is disabled and the custom one takes over.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to override the defualt personal compute policy? I need the following to be overridden:&lt;BR /&gt;&lt;BR /&gt;"autotermination_minutes": {&lt;BR /&gt;"type": "fixed",&lt;BR /&gt;"value": 30&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This auto termination should be the default for all personal compute clusters in the workspace. Is there a way to make this work without having to manually adjust it post-deployment?&lt;/P&gt;</description>
    <pubDate>Fri, 23 Feb 2024 11:44:13 GMT</pubDate>
    <dc:creator>ossinova</dc:creator>
    <dc:date>2024-02-23T11:44:13Z</dc:date>
    <item>
      <title>Override default Personal Compute policy using terraform / disable Personal Compute policy</title>
      <link>https://community.databricks.com/t5/administration-architecture/override-default-personal-compute-policy-using-terraform-disable/m-p/61695#M920</link>
      <description>&lt;P&gt;I want to programmatically do some adjustments to the default personal compute resource or preferably create my own custom one based on the same configuration or policy family (in which all users can gain access to) when deploying a new workspace using terraform. I know an account admin can enable&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-gb/azure/databricks/administration-guide/clusters/personal-compute#--managing-access-to-the-personal-compute-policy" target="_blank"&gt;Manage the Personal Compute policy - Azure Databricks | Microsoft Learn&lt;/A&gt;&amp;nbsp;at an account level although I am uncertain if this can be applied for other policies too (for instance the custom one) so that the default is disabled and the custom one takes over.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to override the defualt personal compute policy? I need the following to be overridden:&lt;BR /&gt;&lt;BR /&gt;"autotermination_minutes": {&lt;BR /&gt;"type": "fixed",&lt;BR /&gt;"value": 30&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This auto termination should be the default for all personal compute clusters in the workspace. Is there a way to make this work without having to manually adjust it post-deployment?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 11:44:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/override-default-personal-compute-policy-using-terraform-disable/m-p/61695#M920</guid>
      <dc:creator>ossinova</dc:creator>
      <dc:date>2024-02-23T11:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: Override default Personal Compute policy using terraform / disable Personal Compute policy</title>
      <link>https://community.databricks.com/t5/administration-architecture/override-default-personal-compute-policy-using-terraform-disable/m-p/61703#M921</link>
      <description>&lt;P&gt;use api to create new cluster, set&amp;nbsp;autotermination_minutes parameter&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.databricks.com/api/workspace/clusters/create#autotermination_minutes" target="_self"&gt;https://docs.databricks.com/api/workspace/clusters/create#autotermination_minutes&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 12:32:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/override-default-personal-compute-policy-using-terraform-disable/m-p/61703#M921</guid>
      <dc:creator>feiyun0112</dc:creator>
      <dc:date>2024-02-23T12:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: Override default Personal Compute policy using terraform / disable Personal Compute policy</title>
      <link>https://community.databricks.com/t5/administration-architecture/override-default-personal-compute-policy-using-terraform-disable/m-p/61705#M922</link>
      <description>&lt;P&gt;I am aware of the API. However, that is out of scope of the question as I want to configure a policy upon workspace creation using Terraform as opposed to creating a cluster. The policy should override the default configuration of the current default one shipped with databricks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 12:44:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/override-default-personal-compute-policy-using-terraform-disable/m-p/61705#M922</guid>
      <dc:creator>ossinova</dc:creator>
      <dc:date>2024-02-23T12:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: Override default Personal Compute policy using terraform / disable Personal Compute policy</title>
      <link>https://community.databricks.com/t5/administration-architecture/override-default-personal-compute-policy-using-terraform-disable/m-p/67695#M1149</link>
      <description>&lt;P&gt;Hi, I think this doc might be useful: &lt;A href="https://community.databricks.com/t5/administration-architecture/override-default-personal-compute-policy-using-terraform-disable/td-p/61695" target="_blank"&gt;Override default Personal Compute policy using ter... - Databricks - 61695&lt;/A&gt;, basically is an override process by creating a databricks_cluster_policy resource:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;locals {
  personal_vm_override = {
    "autotermination_minutes" : {
      "type" : "fixed",
      "value" : 220,
      "hidden" : true
    },
    "custom_tags.Team" : {
      "type" : "fixed",
      "value" : var.team
    }
  }
}

resource "databricks_cluster_policy" "personal_vm" {
  policy_family_id                   = "personal-vm"
  policy_family_definition_overrides = jsonencode(personal_vm_override)
  name                               = "Personal Compute"
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2024 14:33:03 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/override-default-personal-compute-policy-using-terraform-disable/m-p/67695#M1149</guid>
      <dc:creator>jsimonovic</dc:creator>
      <dc:date>2024-04-30T14:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: Override default Personal Compute policy using terraform / disable Personal Compute policy</title>
      <link>https://community.databricks.com/t5/administration-architecture/override-default-personal-compute-policy-using-terraform-disable/m-p/95898#M2150</link>
      <description>&lt;P&gt;Only way I got it working was by importing the pre-existing policy into terraform and do an overwrite as already mentioned by&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/104344"&gt;@jsimonovic&lt;/a&gt;&amp;nbsp;. The full code example looks like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;import {
  id = "001BF0AC280610B4" # Polcy ID of the pre-existing personal compute policy
  to = databricks_cluster_policy.personal_vm
}

resource "databricks_cluster_policy" "personal_vm" {
  name             = "Personal Compute"
  policy_family_id = "personal-vm"
  policy_family_definition_overrides = jsonencode({
    autotermination_minutes = {
      type  = "fixed",
      value = 30,
    }
  })
}&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 24 Oct 2024 08:30:40 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/override-default-personal-compute-policy-using-terraform-disable/m-p/95898#M2150</guid>
      <dc:creator>Clowa</dc:creator>
      <dc:date>2024-10-24T08:30:40Z</dc:date>
    </item>
  </channel>
</rss>

