Skip to content
Branch: master
Find file Copy path
Find file Copy path
1 contributor

Users who have contributed to this file

15 lines (9 sloc) 646 Bytes
set -euo pipefail
az keyvault secret set --vault-name $KEY_VAULT_NAME --name AzureDatabricksToken --value $DATABRICKS_TOKEN
storageAccountKey=$(az storage account keys list -g $RESOURCE_GROUP_NAME -n $STORAGE_ACCOUNT_NAME --query "[0].value" | tr -d '"')
if ! databricks secrets list-scopes --output JSON | jq -e '.scopes[] | select (.name == "bikeshare")'; then
databricks secrets create-scope --scope bikeshare --initial-manage-principal "users"
databricks secrets write --scope bikeshare --key storagekey --string-value $storageAccountKey
databricks fs cp --overwrite java-library/target/*.jar dbfs:/model-factory.jar
You can’t perform that action at this time.