@Arunsundar Muthumanickam :
Have you set up the Databricks CLI, setup setup profile, imported the code from GIT into DB workspace? If not, I can help here.
Once you have done that, you can try using the below script that automates the configuration of dbx
import subprocess
# Define the parameters
workspace_url = "<workspace-url>"
access_token = "<access-token>"
code_repository_path = "<code-repository-path>"
databricks_path = "<databricks-path>"
provider = "<git-provider>"
domain = "<git-provider-domain>"
repo_id = "<git-repository-id>"
profile_name = "<databricks-profile-name>"
# Create the Databricks profile
subprocess.call(["databricks", "configure", "--profile", profile_name, "--token", access_token, "--url", workspace_url])
# Import the code into the Databricks workspace
subprocess.call(["databricks", "workspace", "import_dir", code_repository_path, databricks_path, "--profile", profile_name])
# Connect the Git repository to the Databricks workspace
subprocess.call(["databricks", "repos", "create", "--provider", provider, "--domain", domain, "--repo-id", repo_id, "--profile", profile_name])