Edit

Share via


Assign variables to shortcuts (preview)

Fabric lifecycle management tools allow for the simple collaboration and continuous development of analytical solutions across multiple environments like testing and production. To lean more about these tools and processes see: Introduction to CI/CD in Microsoft Fabric

When deploying solutions across environments, you may want to configure properties that are unique to each environment so your testing environment points to test data and your production environment points to production data. Workspace variables make this possible.

You can use workspace variables within individual shortcut properties. This allows you to have unique values for properties like connection ID or target ___location for each environment. Workspace variables and variable values sets can be defined within a variable library. See: Learn how to use Variable libraries .

Once a variable is defined within a variable library, it can be assigned to a shortcut property using the manage shortcuts UX.

Important

This feature is in preview.

Assign a variable through the UX

  1. Open a lakehouse and select an existing shortcut

  2. Right click on the shortcut and choose Manage Shortcut

    Screenshot showing context menu where manage shortcuts option is selected.

  3. Select Edit variables and choose the desired property to assign the variable to.

    Screenshot showing manage shortcuts panel with edit variable dropdown menu selected.

  4. Assign a variable from the variable library

  5. Once the variable is assigned, the variable name and variable value appear below the shortcut property

    Screenshot showing managed shortcuts panel with variable assigned to shortcut connection including both variable name and value.

Note

Only variables of type string are supported. Selecting a variable of any other type results in an error.

Note

Assignment of workspace variables through the shortcuts REST API is not currently supported.