Skip to content

docs: deploy command docs#188

Open
aviatco wants to merge 1 commit intomicrosoft:mainfrom
aviatco:dev/aviatcohen/deploy-command-docs
Open

docs: deploy command docs#188
aviatco wants to merge 1 commit intomicrosoft:mainfrom
aviatco:dev/aviatcohen/deploy-command-docs

Conversation

@aviatco
Copy link
Collaborator

@aviatco aviatco commented Mar 12, 2026

📥 Pull Request

✨ Description of new changes

This PR add documentation and examples for the new deploy command which imports workspace items from a local source into a target Fabric workspace.

@aviatco aviatco requested a review from a team as a code owner March 12, 2026 14:15
@aviatco aviatco force-pushed the dev/aviatcohen/deploy-command-docs branch from 474325d to 294cded Compare March 12, 2026 14:27

**Parameters:**

- `--config <file>`: Path to the deployment configuration file. **Required**.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Path to the deployment configuration YAML file

By default, **both publish and unpublish operations are enabled and executed**.
To disable either operation for a specific environment, it must be explicitly skipped in the configuration file.

The deployment to Fabric workspaces is executed via the Fabric REST APIs.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The deployment to the Fabric workspace....

- The configuration file controls what is published and unpublished.
- Publish and unpublish operations are enabled by default.
- Skipping publish or unpublish must be explicitly defined per environment.
- Environment selection is resolved only when environment mappings are present in the configuration.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Target environment selection....


```
fab deploy --config config.yml -tenv prod -P config_override='{"publish": {"items_to_include": ["MainNotebook.Notebook", "ProductionPipeline.DataPipeline"]}}'
```
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about the feature flags?


```
fab deploy --config config.yml -tenv dev -P config_override='{"publish": {"folders_to_include": ["/Production/", "/Core/"]}}'
```
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can remove trailing / from each folder path


```
fab deploy --config config.yml -tenv dev -P config_override='{"publish": {"folders_to_include": ["/Production/", "/Core/"]}}'
```
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about the feature flags?


```
fab deploy --config config.yml -tenv prod -P config_override='{"publish": {"folder_exclude_regex": "^/temp/|^/debug/"}}'
```
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove trailing / from path

What about required feature flags?


### Usfull links

- [Fabric cicd lib](https://microsoft.github.io/fabric-cicd/latest/) No newline at end of file
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider also directly linking the docs on configuration deployment

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i am wondering whether we should duplicate the docs from cicd in here instead of pointing to the cicd docs directly for parameterization and configuration explanations. @shirasassoon @aviatco wdyt?

on one hand, your approach keeps the users in cli context, no need to navigate and switch between docs.

on the other hand, we adds some level of maintanance.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this file and apply 'skip-changelog' instead. no need of changelog in this case.

By default, **both publish and unpublish operations are enabled and executed**.
To disable either operation for a specific environment, it must be explicitly skipped in the configuration file.

The deployment to Fabric workspaces is executed via the Fabric REST APIs.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think this sentence is redundant


## Advanced Usage

### Deployment Behavior
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this section should not be under advanced usage, as it provides additional information about the command functionality.

If the workspace is connected to Git, clone the repository locally:

```bash
git clone https://github.com/org/fabric-workspace.git
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
git clone https://github.com/org/fabric-workspace.git
git clone <git-repository-url>.git


### Additional Notes

- The deploy command can be applied to Fabric item files created via Git integration or the Get Item Definition API (export command).
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'd switch

Suggested change
- The deploy command can be applied to Fabric item files created via Git integration or the Get Item Definition API (export command).
- The deploy command can be applied to Fabric item files created via Git integration or using the `export` command (utilizes Get Item Definition API).

Comment on lines +212 to +215
### Related Commands

- `export` — Export a single item from a workspace
- `import` — Import a single item from a workspace
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unnecessary

| [`start`](./fs/start.md) | Start a resource |
| [`stop`](./fs/stop.md) | Stop a resource |
| [`unassign`](./fs/unassign.md) | Unassign a resource from a workspace |
| [`deploy`](./fs/deploy.md) | Deploy Fabric workspace items from local source content into a target Microsoft Fabric workspace. |
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please update the mkdocs.yml to include this new command in the left navigation pane

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants