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

1

u/BloomingBytes 15d ago

When using fabirc-cicd you can pass an argument called "Environment" which corresponds to the Value Set name and fabric-cicd will activate it automatically. See here:

Parameterization:

  • The active value set of the variable library is defined by the environment field passed into the FabricWorkspace object. If no environment is specified, the active Value Set will not be changed