cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Administration & Architecture
Explore discussions on Databricks administration, deployment strategies, and architectural best practices. Connect with administrators and architects to optimize your Databricks environment for performance, scalability, and security.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Disable ability to choose PHOTON

noorbasha534
Contributor III

Dear all,

as an administrator, I want to restrict developers from choosing 'photon' option in job clusters. I see this in the job definition when they choose it -

"runtime_engine": "PHOTON"

How can I pass this as input in the policy and restrict developers from using photon...

Thank you for the guidance..

Br,

Noor.

1 ACCEPTED SOLUTION

Accepted Solutions

Isi
Contributor III

Hey @noorbasha534 

Did it work?  Consider mark my answer as solution to future users ๐Ÿ™‚

Thanks,
Isi

View solution in original post

4 REPLIES 4

Isi
Contributor III

Hi @noorbasha534 ,

To restrict developers from selecting Photon in job clusters, you need to define a cluster policy that enforces constraints on the "runtime_engine" field.

{
  "runtime_engine": {
    "type": "fixed",
    "value": "STANDARD",
    "hidden": true
  }
}

 

โ€ขThe "type": "fixed" ensures that users cannot modify this value.
โ€ข The "value": "STANDARD" forces clusters to only use the Standard runtime, effectively blocking Photon.
โ€ขThe "hidden": true prevents developers from even seeing this option in the UI.

โ€œI created a new policy called โ€˜testโ€™ to verify the restrictions, and as you can see, the option doesnโ€™t appear in the menu! ๐Ÿ™‚ โ€œ (Without hidden It will appear but you cant select it)

Captura de pantalla 2025-03-18 a las 14.46.36.png
Hope this helps ๐Ÿ™‚

Isi

noorbasha534
Contributor III

ah nice...i will try on my side. thanks much.

Isi
Contributor III

Hey @noorbasha534 

Did it work?  Consider mark my answer as solution to future users ๐Ÿ™‚

Thanks,
Isi

mnorland
Contributor

You also need to make sure the policy permissions are set up properly. You can/should fix preexisting compute affected by the policy with the wizard in the policy edit screen.

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local communityโ€”sign up today to get started!

Sign Up Now