09-05-2022 06:16 AM
Hi, is it possible to add custom tags from init script during cluster initialization ? We would like to automatically add custom tags whenever someone creates a new cluster in databricks.
09-05-2022 07:39 AM
Cluster policy permissions limit which policies a user can select in the Policy drop-down when the user creates a cluster:
09-05-2022 07:15 AM
Hi @Md Tahseen Anam I don't think there is a possibility to use an init script for cust tags. But the easiest way is to use cluster policies. You can mention a list of custom tags in the policy so that you can simply add the policy to the cluster while creating. Other than the tags, you can set the DBR version, spark configs, etc using the cluster policy.
https://docs.databricks.com/administration-guide/clusters/policies.html#unlimited-policy
09-05-2022 07:22 AM
Thanks for your reply. I think cluster policy can be a way to do that if I can force user to select that policy by auto-selecting the policy for them whenever they try to create a new cluster and disabling users from selecting any other policy. Can I do that ?
09-05-2022 07:39 AM
Cluster policy permissions limit which policies a user can select in the Policy drop-down when the user creates a cluster:
Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections.
Click here to register and join today!
Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.