I am creating a Azure DevOps Release Pipeline for Databricks notebooks deployment.
I have written below code in powershell activity but its not working.
Requesting some pointer here.
# Variables
$workspaceUrl = "https://<databricks-instance>"
$personalAccessToken = "<databricks-personal-access-token>"
$notebookPath = "/notebooks/my_notebook.ipynb"
$targetEnvironment = "UAT"
# Authenticate with Databricks CLI
databricks configure --token
databricks configure --token "$personalAccessToken" --url "$workspaceUrl"
# Deploy Notebook to UAT Environment
databricks workspace import -l "$notebookPath" -o "/$targetEnvironment$notebookPath"