I have this problem
{
"error_code": "BAD_REQUEST",
"message": "Remote repo not found. Please ensure that:n1. Your remote Git repo URL is valid.n2. Your personal access token or app password has the correct repo access."
}
Context: I want to update a repo using Azure DevOps but following the documentation from Databricks API is not working
- bash: |
URL="$(DATABRICKS-HOST)/api/2.0/repos/{REPO_ID}"
JSON_PAYLOAD='{
"branch": "{BRANCH}",
"sparse_checkout": {
"patterns": [
"parent-folder/child-folder"
]
}
}'
curl -v --location --request PATCH "$URL"
--header "Authorization: Bearer $DATABRICKS_TOKEN"
--header "Content-Type: application/json"
--header "X-Databricks-Azure-SP-Management-Token: $ENTRAID_TOKEN"
--header "X-Databricks-Org-Id: {ORG_ID}"
--header "X-Databricks-Azure-Workspace-Resource-Id: /subscriptions/{SUBID}/resourceGroups/{RG}/providers/Microsoft.Databricks/workspaces/{DATABRICKS-NAME}"
--data "$JSON_PAYLOAD"
I can do GETS to permissions, and for the repos.
My App registration has permission over the databricks (Admin group, Manager and User inside of databricks) also has permission over Azure DevOps. I don’t think it is a permission problem.
1