azure.databricks.cicd.tools
azure.databricks.cicd.tools copied to clipboard
Set token expiry time as local time, in line with DatabricksTokenState in ConnectFunctions.ps1
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.