Editja

Ixxerja permezz ta’


Manage Spark environments in VS Code under VFS mode

The Fabric Data Engineering VS Code extension supports managing your environments in VFS (Virtual File System) mode. With this mode, you can explore the environments in your workspace, inspect their details, update the configuration, and publish your changes—all inside VS Code.

To explore environments, expand the Environments section to see the list of environments in the workspace. To inspect the details of an environment, right-click the environment and select Inspect Environment. This opens the environment details as a read-only .yml file in the VS Code editor.

Screenshot showing how to inspect an environment in VS Code.

To change the environment configuration, right-click the environment and select Edit Environment. This opens an editable .yml file in the VS Code editor. A staging file named <environment_name>(staging).yml is generated to hold your unpublished changes.

Screenshot showing how to edit an environment in VS Code.

In the staging file, you can upload custom libraries by selecting the Add customLibraries code-lens link, switch the pool used by the environment by selecting the Select Pool code-lens link, and update other Spark configuration settings.

Screenshot showing the code-lens links for editing an environment in VS Code.

To publish your changes, right-click inside the editor and select Publish Environment. This publishes the changes to the remote environment. After the publish succeeds, the staging .yml file is deleted automatically.

Screenshot showing how to publish an environment in VS Code.