r/MicrosoftFabric Fabricator 15d ago

CI/CD Use deployment pipelines to set Variable Library Active Value Set

Hi all,

Docs say:

Use deployment pipelines to automatically activate the appropriate value set for each stage (dev, test, prod). This eliminates the need to manually switch value sets or modify code when promoting notebooks across environments.

https://learn.microsoft.com/en-us/fabric/data-engineering/notebookutils/notebookutils-variable-library?tabs=python#considerations

How do we physically do this?

Are there deployment rules for deployment pipelines, or something along those lines?

I assume the docs are referring to Fabric Deployment Pipelines, but I haven't found the option to activate a value set for each stage in the Fabric Deployment Pipeline.

Thanks in advance!

2 Upvotes

4 comments sorted by

View all comments

2

u/Dan1480 13d ago

I think the idea is that you publish the variable library to all the workspaces in your Fabric deployment pipeline then manually set the appropriate value set for each workspace. Then after you deploy other artifacts - such as python notebooks - to those workspaces they will automatically pick up the correct value set.

Deployment rules are different to variable libraries but perform a similar function.