azure.databricks.cicd.tools icon indicating copy to clipboard operation
azure.databricks.cicd.tools copied to clipboard

Set token expiry time as local time, in line with DatabricksTokenState in ConnectFunctions.ps1

Open bjh1977 opened this issue 1 year ago • 0 comments

Calling Connect-Databricks with -AzContext causes the DatabricksTokenExpires global variable to be set as UTC time. The DatabricksTokenState function in ConnectFunctions.ps1 uses local time, which means it considers a just-created token which lasts for one hour to be "Expired" immediately.

I can see that, at one point, a change was made to use UTC time and then reverted on the same day.

This change aligns the token expiry time.

bjh1977 avatar Jun 08 '23 10:06 bjh1977