Skip to content

workspace

Manage workspaces

Authentication scope: fabric

List all workspaces

Terminal window
fabio workspace list
Flag Type Required Description
--roles string No Filter by role: Admin, Member, Contributor, Viewer (comma-separated)
--capacity string No Filter by capacity ID (client-side filter)

Examples

Terminal window
fabio workspace list --query displayName
Terminal window
fabio workspace list --limit 3
Terminal window
fabio workspace list -o table

Output fields: id, displayName, type, capacityId

Read-only · Returns list

Show details of a workspace

Terminal window
fabio workspace show --id <value>
Flag Type Required Description
--id string Yes Workspace ID

Output fields: id, displayName, description, type, capacityId, capacityRegion

Read-only · Returns object

Get the Fabric portal URL for a workspace

Terminal window
fabio workspace url --id <value>
Flag Type Required Description
--id string Yes Workspace ID

Read-only · Returns object

Create a new workspace

Terminal window
fabio workspace create --name <value>
Flag Type Required Description
--name string Yes Display name for the workspace
--description string No Optional description
--capacity-id string No Assign the new workspace to this capacity on creation (Fabric capacityId)

Examples

Terminal window
fabio workspace create --name "my-project"

Output fields: id, displayName

Mutates state · Returns object

Update workspace properties (name and/or description)

Terminal window
fabio workspace update --id <value>
Flag Type Required Description
--id string Yes Workspace ID
--name string No New display name
--description string No New description

Mutates state · Returns object

Delete a workspace

Terminal window
fabio workspace delete --id <value>
Flag Type Required Description
--id string Yes Workspace ID

Examples

Terminal window
fabio workspace delete --id $WS --dry-run

Mutates state · Destructive · Returns void

List soft-deleted items that are still within their retention period

Terminal window
fabio workspace list-recoverable-items --workspace <value>
Flag Type Required Description
--workspace string Yes Workspace ID
--type string No Filter by recoverable item type (for example, Lakehouse)
--recoverable-by-me enum No Only return items that the caller can recover immediately One of: true, false.

Examples

Terminal window
fabio workspace list-recoverable-items --workspace $WS --type Lakehouse --recoverable-by-me true
Terminal window
fabio workspace list-recoverable-items --workspace $WS --all

Read-only · Returns list

Recover a soft-deleted item and its recoverable descendants

Terminal window
fabio workspace recover-item --workspace <value> --item-id <value>
Flag Type Required Description
--workspace string Yes Workspace ID
--item-id string Yes Recoverable item ID

Examples

Terminal window
fabio workspace recover-item --workspace $WS --item-id $ITEM --dry-run
Terminal window
fabio workspace recover-item --workspace $WS --item-id $ITEM

Mutates state · Long-running operation · Returns list

Permanently delete a recoverable item

Terminal window
fabio workspace delete-recoverable-item --workspace <value> --item-id <value>
Flag Type Required Description
--workspace string Yes Workspace ID
--item-id string Yes Recoverable item ID

Examples

Terminal window
fabio workspace delete-recoverable-item --workspace $WS --item-id $ITEM --dry-run
Terminal window
fabio workspace delete-recoverable-item --workspace $WS --item-id $ITEM

Mutates state · Destructive · Returns void

Clone workspace items from one workspace to another using bulk APIs

Terminal window
fabio workspace clone --source <value> --dest <value>
Flag Type Required Description
--source string Yes Source workspace ID or name
--dest string Yes Destination workspace ID or name
--item-types string No Only clone specific item types (comma-separated, e.g., “Notebook,DataPipeline”)
--allow-pairing-by-name bool No Match items by display name (instead of logicalId) for initial clones

Mutates state · Returns object

Assign a workspace to a capacity

Terminal window
fabio workspace assign-capacity --id <value> --capacity <value>
Flag Type Required Description
--id string Yes Workspace ID
--capacity string Yes Target capacity ID

Examples

Terminal window
fabio workspace assign-capacity --id $WS --capacity $CAP_ID

Mutates state · Returns void

Unassign a workspace from its capacity

Terminal window
fabio workspace unassign-capacity --id <value>
Flag Type Required Description
--id string Yes Workspace ID

Mutates state · Returns void

Provision a workspace identity (managed identity)

Terminal window
fabio workspace provision-identity --id <value>
Flag Type Required Description
--id string Yes Workspace ID

Examples

Terminal window
fabio workspace provision-identity --id $WS

Output fields: applicationId, servicePrincipalId

Mutates state · Long-running operation · Returns object

Deprovision a workspace identity

Terminal window
fabio workspace deprovision-identity --id <value>
Flag Type Required Description
--id string Yes Workspace ID

Mutates state · Returns void

List workspace role assignments

Terminal window
fabio workspace list-role-assignments --id <value>
Flag Type Required Description
--id string Yes Workspace ID

Read-only · Returns list

Add a role assignment to a workspace

Terminal window
fabio workspace add-role-assignment --id <value> --principal-id <value> --principal-type <value> --role <value>
Flag Type Required Description
--id string Yes Workspace ID
--principal-id string Yes Principal ID (user, group, or service principal object ID)
--principal-type enum Yes Principal type: User, Group, ServicePrincipal, or ServicePrincipalProfile
--role enum Yes Role to assign (Admin, Member, Contributor, Viewer)

Examples

Terminal window
fabio workspace add-role-assignment --id $WS --principal $USER_ID --principal-type User --role Contributor

Mutates state · Returns object

Update a workspace role assignment

Terminal window
fabio workspace update-role-assignment --id <value> --assignment-id <value> --role <value>
Flag Type Required Description
--id string Yes Workspace ID
--assignment-id string Yes Role assignment ID (same as the principal ID)
--role string Yes New role (Admin, Member, Contributor, Viewer)

Mutates state · Returns object

Delete a workspace role assignment

Terminal window
fabio workspace delete-role-assignment --id <value> --assignment-id <value>
Flag Type Required Description
--id string Yes Workspace ID
--assignment-id string Yes Role assignment ID (same as the principal ID)

Mutates state · Destructive · Returns void

Show a specific workspace role assignment

Terminal window
fabio workspace show-role-assignment --id <value> --assignment-id <value>
Flag Type Required Description
--id string Yes Workspace ID
--assignment-id string Yes Role assignment ID

Read-only · Returns object

List workspace folders

Terminal window
fabio workspace list-folders --workspace <value>
Flag Type Required Description
--workspace string Yes Workspace ID

Read-only · Returns list

Create a folder in a workspace

Terminal window
fabio workspace create-folder --workspace <value> --name <value>
Flag Type Required Description
--workspace string Yes Workspace ID
--name string Yes Folder display name
--description string No Optional description
--parent-folder-id string No Optional parent folder ID (omit for root)

Examples

Terminal window
fabio workspace create-folder --id $WS --name "Production"

Mutates state · Returns object

Show details of a workspace folder

Terminal window
fabio workspace show-folder --workspace <value> --folder-id <value>
Flag Type Required Description
--workspace string Yes Workspace ID
--folder-id string Yes Folder ID

Read-only · Returns object

Update a workspace folder

Terminal window
fabio workspace update-folder --workspace <value> --folder-id <value>
Flag Type Required Description
--workspace string Yes Workspace ID
--folder-id string Yes Folder ID
--name string No New display name
--description string No New description

Mutates state · Returns object

Delete a workspace folder

Terminal window
fabio workspace delete-folder --workspace <value> --folder-id <value>
Flag Type Required Description
--workspace string Yes Workspace ID
--folder-id string Yes Folder ID

Mutates state · Destructive · Returns void

Move a folder to another parent (or root)

Terminal window
fabio workspace move-folder --workspace <value> --folder-id <value>
Flag Type Required Description
--workspace string Yes Workspace ID
--folder-id string Yes Folder ID to move
--target-folder-id string No Target parent folder ID (omit to move to root)

Mutates state · Returns void

Apply tags to a workspace

Terminal window
fabio workspace apply-tags --workspace <value>
Flag Type Required Description
--workspace string Yes Workspace ID
--tag-ids string No Comma-separated tag IDs

Examples

Terminal window
fabio workspace apply-tags --id $WS --tag-ids '["tag-uuid-1"]'

Mutates state · Returns void

Remove tags from a workspace

Terminal window
fabio workspace unapply-tags --workspace <value>
Flag Type Required Description
--workspace string Yes Workspace ID
--tag-ids string No Comma-separated tag IDs

Mutates state · Returns void

Assign workspace to a domain

Terminal window
fabio workspace assign-to-domain --workspace <value> --domain-id <value>
Flag Type Required Description
--workspace string Yes Workspace ID
--domain-id string Yes Domain ID

Examples

Terminal window
fabio workspace assign-to-domain --id $WS --domain $DOMAIN_ID

Mutates state · Returns void

Unassign workspace from its domain

Terminal window
fabio workspace unassign-from-domain --workspace <value>
Flag Type Required Description
--workspace string Yes Workspace ID

Mutates state · Returns void

Get OneLake settings for a workspace

Terminal window
fabio workspace get-onelake-settings --workspace <value>
Flag Type Required Description
--workspace string Yes

Read-only · Returns object

Modify OneLake default tier (Hot, Cool, or Cold)

Terminal window
fabio workspace modify-default-tier --workspace <value> --tier <value>
Flag Type Required Description
--workspace string Yes
--tier enum Yes Tier: “Hot”, “Cool”, or “Cold”

Examples

Terminal window
fabio workspace modify-default-tier --id $WS --tier Cold

Mutates state · Returns void

Modify OneLake diagnostics configuration

Terminal window
fabio workspace modify-diagnostics --workspace <value>
Flag Type Required Description
--workspace string Yes
--file string No
--content string No

Mutates state · Returns void

Modify OneLake immutability policy

Terminal window
fabio workspace modify-immutability-policy --workspace <value>
Flag Type Required Description
--workspace string Yes
--file string No
--content string No

Mutates state · Returns void

Export OneLake lifecycle policy

Terminal window
fabio workspace export-lifecycle-policy --workspace <value>
Flag Type Required Description
--workspace string Yes

Read-only · Returns object

Import OneLake lifecycle policy

Terminal window
fabio workspace import-lifecycle-policy --workspace <value>
Flag Type Required Description
--workspace string Yes
--file string No
--content string No

Mutates state · Returns void

Reset OneLake shortcut cache for a workspace

Terminal window
fabio workspace reset-shortcut-cache --workspace <value>
Flag Type Required Description
--workspace string Yes

Mutates state · Returns void

Get workspace network communication policy

Terminal window
fabio workspace get-network-policy --workspace <value>
Flag Type Required Description
--workspace string Yes

Read-only · Returns object

Set workspace network communication policy

Terminal window
fabio workspace set-network-policy --workspace <value>
Flag Type Required Description
--workspace string Yes
--file string No
--content string No

Mutates state · Returns void

Get workspace IP firewall rules

Terminal window
fabio workspace get-firewall-rules --workspace <value>
Flag Type Required Description
--workspace string Yes

Read-only · Returns object

Set workspace IP firewall rules (replaces all existing rules)

Terminal window
fabio workspace set-firewall-rules --workspace <value>
Flag Type Required Description
--workspace string Yes
--file string No
--content string No Inline JSON firewall rules (e.g. ‘{“rules”:[{“displayName”:“Allow Office”,“value”:“10.0.0.0/24”}]}’)

Mutates state · Returns void

Get workspace git outbound policy

Terminal window
fabio workspace get-git-outbound-policy --workspace <value>
Flag Type Required Description
--workspace string Yes

Read-only · Returns object

Set workspace git outbound policy (requires Outbound Access Protection enabled)

Terminal window
fabio workspace set-git-outbound-policy --workspace <value>
Flag Type Required Description
--workspace string Yes
--file string No
--content string No

Mutates state · Returns void

Get workspace inbound Azure resource instance rules

Terminal window
fabio workspace get-inbound-azure-resource-rules --workspace <value>
Flag Type Required Description
--workspace string Yes

Read-only · Returns object

Set workspace inbound Azure resource instance rules

Terminal window
fabio workspace set-inbound-azure-resource-rules --workspace <value>
Flag Type Required Description
--workspace string Yes
--file string No
--content string No

Mutates state · Returns void

Get workspace outbound cloud connection rules (requires OAP enabled)

Terminal window
fabio workspace get-outbound-cloud-connection-rules --workspace <value>
Flag Type Required Description
--workspace string Yes

Read-only · Returns object

Set workspace outbound cloud connection rules (requires OAP enabled)

Terminal window
fabio workspace set-outbound-cloud-connection-rules --workspace <value>
Flag Type Required Description
--workspace string Yes
--file string No
--content string No

Mutates state · Returns void

Get workspace outbound gateway rules (requires OAP enabled)

Terminal window
fabio workspace get-outbound-gateway-rules --workspace <value>
Flag Type Required Description
--workspace string Yes

Read-only · Returns object

Set workspace outbound gateway rules (requires OAP enabled)

Terminal window
fabio workspace set-outbound-gateway-rules --workspace <value>
Flag Type Required Description
--workspace string Yes
--file string No
--content string No

Mutates state · Returns void

Get workspace inbound External Data Shares bypass policy

Terminal window
fabio workspace get-inbound-external-data-shares-policy --workspace <value>
Flag Type Required Description
--workspace string Yes

Examples

Terminal window
fabio workspace get-inbound-external-data-shares-policy --workspace $WS

Read-only · Returns object

Set workspace inbound External Data Shares bypass policy (preview API, requires admin role)

Terminal window
fabio workspace set-inbound-external-data-shares-policy --workspace <value> --default-action <value>
Flag Type Required Description
--workspace string Yes
--default-action enum Yes Whether External Data Shares traffic may bypass inbound networking restrictions One of: Allow, Deny.
--if-match string No ETag from a previous get-inbound-external-data-shares-policy call, for optimistic concurrency

Examples

Terminal window
fabio workspace set-inbound-external-data-shares-policy --workspace $WS --default-action Allow
Terminal window
fabio workspace set-inbound-external-data-shares-policy --workspace $WS --default-action Deny --if-match '"a1b2c3d4"'

Mutates state · Returns object

Get workspace settings (properties including automaticMetadataSync)

Terminal window
fabio workspace get-settings --workspace <value>
Flag Type Required Description
--workspace string Yes

Read-only · Returns object

Update workspace settings (e.g. enable automatic metadata sync)

Terminal window
fabio workspace update-settings --workspace <value>
Flag Type Required Description
--workspace string Yes
--file string No
--content string No

Mutates state · Returns object

Set default dataset storage format (Small or Large) via Power BI API

Terminal window
fabio workspace set-dataset-storage-format --workspace <value> --format <value>
Flag Type Required Description
--workspace string Yes
--format enum Yes Storage format: “Small” or “Large”

Mutates state · Returns void

Get default dataset storage format via Power BI API

Terminal window
fabio workspace get-dataset-storage-format --workspace <value>
Flag Type Required Description
--workspace string Yes

Read-only · Returns object

Get workspace Customer-Managed Key (CMK) encryption settings (Preview)

Terminal window
fabio workspace get-encryption --workspace <value>
Flag Type Required Description
--workspace string Yes Workspace ID

Read-only · Returns object

Assign a Customer-Managed Key (CMK) to a workspace, enabling or rotating encryption (Preview)

Terminal window
fabio workspace assign-encryption --workspace <value> --key-identifier <value>
Flag Type Required Description
--workspace string Yes Workspace ID
--key-identifier string Yes Azure Key Vault key identifier (must be a versionless key URI)

Mutates state · Long-running operation · Returns object

Reset workspace encryption by removing the CMK configuration (reverts to Microsoft-managed keys) (Preview)

Terminal window
fabio workspace reset-encryption --workspace <value>
Flag Type Required Description
--workspace string Yes Workspace ID

Mutates state · Destructive · Returns void