cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

clapton79
by New Contributor II
  • 8410 Views
  • 5 replies
  • 6 kudos

Resolved! on-behalf-of token creation (for SPN)

I am trying to create an on-behalf-token for and SPN on my Azure Databricks Premium instance. The response is a FEATURE_DISABLED error message ("On-behalf-of token creation for service principals is not enabled for this workspace"). How do I turn on ...

  • 8410 Views
  • 5 replies
  • 6 kudos
Latest Reply
alexott
Esteemed Contributor III
  • 6 kudos

There is no On-behalf-of token on Azure - just generate an AAD token for the Service Principal and use it to create PAT (make sure that SP has permission to use PATs). The easiest way of doing it is to use the new Databricks CLI that supports unified...

  • 6 kudos
4 More Replies
Vinayak_s
by New Contributor II
  • 1520 Views
  • 4 replies
  • 1 kudos

Need help to understand Databricks workspace service principle token expire calculate

Hi Team, Need assistance to understand Databricks workspace service principle token expire calculation. Issue : when I am creating a token I have given lifetime =3600, but when I doing get token I am getting unexpected expiry number and even when I ...

  • 1520 Views
  • 4 replies
  • 1 kudos
Latest Reply
Vinayak_s
New Contributor II
  • 1 kudos

Hi Team, Please help on my issue,Is there any way to find expiry of token, i mean still how much time have token to expiry. creation_time - expiry_time  is not giving me exact output.Kindly let me know if there is any way to find as soon as possibleT...

  • 1 kudos
3 More Replies
Etyr
by Contributor
  • 5207 Views
  • 5 replies
  • 4 kudos

Resolved! Generate longer token for Databricks with Azure.

I'm using DefaultAzureCredential from azure-identity to connect to Azure with service principal environment variables (AZURE_CLIENT_SECRET, AZURE_TENANT_ID, AZURE_CLIENT_ID).I can get_token from a specific scope for databricks like this:from azure.id...

  • 5207 Views
  • 5 replies
  • 4 kudos
Latest Reply
Etyr
Contributor
  • 4 kudos

I made up an alternative solution. I made up my own python class to handle my PAT from Databricks : https://stackoverflow.com/questions/75071869/python-defaultazurecredential-get-token-set-expiration-or-renew-token/You can be fancier or even register...

  • 4 kudos
4 More Replies
PSY
by New Contributor III
  • 3967 Views
  • 5 replies
  • 2 kudos

Resolved! Updating git token fails

When updating an expired Azure DevOps personal access token (PAT) for git integration, I get the error message "Failed to save. Please try again.". The error persists with different tokens. Previously (months ago), updating the token did not result i...

Screenshot 2022-07-19 at 13.39.56
  • 3967 Views
  • 5 replies
  • 2 kudos
Latest Reply
Atanu
Esteemed Contributor III
  • 2 kudos

Is this happening for all users @Pencho Yordanov​ 

  • 2 kudos
4 More Replies
User16753724663
by Valued Contributor
  • 1236 Views
  • 1 replies
  • 0 kudos

Resolved! Unable to create a token while deploying the workspace using terraform

we have automated out deployment with python API's however we have been caught in a situation which we cannot yet solve.We are looking to collect a token during the first deployment within the environment. currently our API requires a token.Is there...

  • 1236 Views
  • 1 replies
  • 0 kudos
Latest Reply
User16753724663
Valued Contributor
  • 0 kudos

We can use below API to create a token and use the username and passwordcurl -X POST -u "admin_email":"xxxx" https://host/api/2.0/token/create -d' { "lifetime_seconds": 100, "comment": "this is an example token" }'

  • 0 kudos
Labels