Skip to content

warehouse-snapshot

Manage warehouse snapshots

Authentication scope: fabric

List warehouse snapshots in a workspace

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

Read-only · Returns list

Show details of a warehouse snapshot

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

Read-only · Returns object

Create a new warehouse snapshot

Terminal window
fabio warehouse-snapshot create --workspace <value> --name <value> --warehouse-id <value>
Flag Type Required Description
--workspace string Yes Workspace ID
--name string Yes Display name
--warehouse-id string Yes Source warehouse ID to snapshot
--snapshot-datetime string No Point-in-time for the snapshot in UTC (YYYY-MM-DDTHH:mm:ssZ); omit for the current time
--description string No Optional description
--sensitivity-label string No Sensitivity label ID to apply on creation

Mutates state · Returns object

Update warehouse snapshot properties (name and/or description)

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

Mutates state · Returns object

Delete a warehouse snapshot

Terminal window
fabio warehouse-snapshot delete --workspace <value> --id <value>
Flag Type Required Description
--workspace string Yes Workspace ID
--id string Yes Warehouse snapshot ID
--hard-delete bool No Permanently delete (cannot be recovered)

Mutates state · Destructive · Returns void

Run a read-only T-SQL query against the snapshot’s SQL endpoint

Terminal window
fabio warehouse-snapshot query --workspace <value> --id <value>
Flag Type Required Description
--workspace string Yes Workspace ID
--id string Yes Warehouse snapshot ID
--sql string No T-SQL query text (inline, @file, or piped via stdin)

Read-only · Returns list

List tables in the snapshot (schema-qualified)

Terminal window
fabio warehouse-snapshot list-tables --workspace <value> --id <value>
Flag Type Required Description
--workspace string Yes Workspace ID
--id string Yes Warehouse snapshot ID
--schema string No Filter to a specific schema (default: all)

Read-only · Returns list

Describe a table’s columns in the snapshot

Terminal window
fabio warehouse-snapshot describe-table --workspace <value> --id <value> --table <value>
Flag Type Required Description
--workspace string Yes Workspace ID
--id string Yes Warehouse snapshot ID
--table string Yes Table name (optionally schema-qualified: schema.table)

Read-only · Returns list

Capture the estimated execution plan (SHOWPLAN_XML) for a query

Terminal window
fabio warehouse-snapshot plan --workspace <value> --id <value>
Flag Type Required Description
--workspace string Yes Workspace ID
--id string Yes Warehouse snapshot ID
--sql string No T-SQL query text (inline, @file, or piped via stdin)

Read-only · Returns object

Print the snapshot’s SQL connection string (server + database)

Terminal window
fabio warehouse-snapshot connection-string --workspace <value> --id <value>
Flag Type Required Description
--workspace string Yes Workspace ID
--id string Yes Warehouse snapshot ID

Read-only · Returns object