cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Administration & Architecture
Explore discussions on Databricks administration, deployment strategies, and architectural best practices. Connect with administrators and architects to optimize your Databricks environment for performance, scalability, and security.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

policy_id in databricks asset bundle workflow

Aria
New Contributor III

We are using databricks asset bundle for code deployment and biggest issue I am facing is that policy_id is different in each environment.I tried with environment variable sin azure devops and also with declaring the variables in databricks.yaml and then used it in resources folder. However nothing worked till now.

@policy_id @DAB

1 REPLY 1

Kaniz_Fatma
Community Manager
Community Manager

Hi @Aria, Here are a few strategies: 1) Create environment-specific YAML files (e.g., `databricks-uat.yml`, `databricks-prd.yml`) with the respective `policy_id` and use a script or CI/CD logic to select the appropriate file; 2) Ensure environment variables are correctly set in Azure DevOps and reference them in your `databricks.yml` file using the `${{ variables.variable_name }}` syntax; 3) Parameterize the `databricks.yml` file with placeholders like `@policy_id@` and replace them during deployment; 4) Use Databricks CLI or API to dynamically set the `policy_id` during deployment. Feel free to share more details if you need further assistance! ๐Ÿ˜Š

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group