environment
Manage environments (Spark compute, libraries, publish)
Authentication scope: fabric
List environments in a workspace
fabio environment list --workspace <value>| Flag | Type | Required | Description |
|---|---|---|---|
--workspace |
string |
Yes | Workspace ID |
Output fields: id, displayName, description
Read-only · Returns list
Show details of an environment
fabio environment show --workspace <value> --id <value>| Flag | Type | Required | Description |
|---|---|---|---|
--workspace |
string |
Yes | Workspace ID |
--id |
string |
Yes | Environment ID |
Read-only · Returns object
diagnostics
Section titled “diagnostics”Diagnose environment publishing, pool activation history, and an explicitly selected monitoring session
fabio environment diagnostics --workspace <value>| Flag | Type | Required | Description |
|---|---|---|---|
--workspace |
string |
Yes | Workspace ID |
--id |
string |
No | Environment ID (not a display name); omit only when selecting a monitoring session |
--activation-id |
string |
No | Inspect this exact activation; otherwise inspect bounded history, without assuming newest-first ordering |
--include-staging |
bool |
No | Compare the reported staging compute fields with published compute (does not publish) |
--item-id |
string |
No | Explicit item owning the monitoring session; does not prove environment attachment |
--item-type |
enum |
No | Monitoring item type (not the interactive Livy endpoint) One of: notebook, spark-job-definition, lakehouse. |
--livy-id |
string |
No | Exact monitoring Livy session UUID; never creates a session |
--include-logs |
bool |
No | Inspect driver/Livy log metadata only, never raw log content |
--page-limit |
integer |
No | Maximum activation history pages, never overridden by –all |
--activation-limit |
integer |
No | Maximum activation rows retained, never overridden by –all |
--timeout |
integer |
No | Total seconds for all probes and retries |
--strict |
bool |
No | Exit non-zero unless all requested observations are ready; still print the report |
Read-only · Returns object
create
Section titled “create”Create a new environment
fabio environment create --workspace <value> --name <value>| Flag | Type | Required | Description |
|---|---|---|---|
--workspace |
string |
Yes | Workspace ID |
--name |
string |
Yes | Environment display name |
--description |
string |
No | Optional description |
--sensitivity-label |
string |
No | Sensitivity label ID to apply on creation |
Examples
fabio environment create --workspace $WS --name "DataScience-Env"Output fields: id, displayName
Mutates state · Returns object
update
Section titled “update”Update environment properties (name and/or description)
fabio environment update --workspace <value> --id <value>| Flag | Type | Required | Description |
|---|---|---|---|
--workspace |
string |
Yes | Workspace ID |
--id |
string |
Yes | Environment ID |
--name |
string |
No | New display name |
--description |
string |
No | New description |
Mutates state · Returns object
delete
Section titled “delete”Delete an environment
fabio environment delete --workspace <value> --id <value>| Flag | Type | Required | Description |
|---|---|---|---|
--workspace |
string |
Yes | Workspace ID |
--id |
string |
Yes | Environment ID |
--hard-delete |
bool |
No | Permanently delete (cannot be recovered) |
Mutates state · Destructive · Returns void
publish
Section titled “publish”Publish staged changes to an environment
fabio environment publish --workspace <value> --id <value>| Flag | Type | Required | Description |
|---|---|---|---|
--workspace |
string |
Yes | Workspace ID |
--id |
string |
Yes | Environment ID |
Examples
fabio environment publish --workspace $WS --id $ENVMutates state · Long-running operation · Returns object
get-publish-log
Section titled “get-publish-log”Get the latest completed environment publish driver log
fabio environment get-publish-log --workspace <value> --id <value>| Flag | Type | Required | Description |
|---|---|---|---|
--workspace |
string |
Yes | Workspace ID |
--id |
string |
Yes | Environment ID |
Examples
fabio environment get-publish-log --workspace $WS --id $ENVIRONMENTRead-only · Returns object
cancel-publish
Section titled “cancel-publish”Cancel a pending publish operation
fabio environment cancel-publish --workspace <value> --id <value>| Flag | Type | Required | Description |
|---|---|---|---|
--workspace |
string |
Yes | Workspace ID |
--id |
string |
Yes | Environment ID |
Mutates state · Destructive · Returns object
get-spark-settings
Section titled “get-spark-settings”Get the published Spark settings (compute/pool/driver/executor)
fabio environment get-spark-settings --workspace <value> --id <value>| Flag | Type | Required | Description |
|---|---|---|---|
--workspace |
string |
Yes | Workspace ID |
--id |
string |
Yes | Environment ID |
--compute-api |
enum |
No | Explicit compute contract; no fallback between beta and release One of: beta, release. |
Read-only · Returns object
get-staging-spark-settings
Section titled “get-staging-spark-settings”Get the staging (draft) Spark settings
fabio environment get-staging-spark-settings --workspace <value> --id <value>| Flag | Type | Required | Description |
|---|---|---|---|
--workspace |
string |
Yes | Workspace ID |
--id |
string |
Yes | Environment ID |
--compute-api |
enum |
No | Explicit compute contract; no fallback between beta and release One of: beta, release. |
Read-only · Returns object
get-definition
Section titled “get-definition”Get the definition of an environment
fabio environment get-definition --workspace <value> --id <value>| Flag | Type | Required | Description |
|---|---|---|---|
--workspace |
string |
Yes | Workspace ID |
--id |
string |
Yes | Environment ID |
--decode |
bool |
No | Decode base64 payloads inline (adds decodedPayload field) |
Read-only · Long-running operation · Returns object
update-definition
Section titled “update-definition”Update the definition of an environment
fabio environment update-definition --workspace <value> --id <value>| Flag | Type | Required | Description |
|---|---|---|---|
--workspace |
string |
Yes | Workspace ID |
--id |
string |
Yes | Environment ID |
--file |
string |
No | Path to definition file |
--content |
string |
No | Inline definition content |
Mutates state · Destructive · Long-running operation · Returns void
list-libraries
Section titled “list-libraries”List published libraries of an environment
fabio environment list-libraries --workspace <value> --id <value>| Flag | Type | Required | Description |
|---|---|---|---|
--workspace |
string |
Yes | Workspace ID |
--id |
string |
Yes | Environment ID |
Read-only · Returns list
export-libraries
Section titled “export-libraries”Export external libraries configuration (published)
fabio environment export-libraries --workspace <value> --id <value>| Flag | Type | Required | Description |
|---|---|---|---|
--workspace |
string |
Yes | Workspace ID |
--id |
string |
Yes | Environment ID |
Read-only · Returns object
list-staging-libraries
Section titled “list-staging-libraries”List staging libraries of an environment
fabio environment list-staging-libraries --workspace <value> --id <value>| Flag | Type | Required | Description |
|---|---|---|---|
--workspace |
string |
Yes | Workspace ID |
--id |
string |
Yes | Environment ID |
Read-only · Returns list
delete-staging-library
Section titled “delete-staging-library”Delete a staging library by name
fabio environment delete-staging-library --workspace <value> --id <value> --library-name <value>| Flag | Type | Required | Description |
|---|---|---|---|
--workspace |
string |
Yes | Workspace ID |
--id |
string |
Yes | Environment ID |
--library-name |
string |
Yes | Library filename to delete |
Mutates state · Destructive · Returns void
export-staging-libraries
Section titled “export-staging-libraries”Export external libraries configuration (staging)
fabio environment export-staging-libraries --workspace <value> --id <value>| Flag | Type | Required | Description |
|---|---|---|---|
--workspace |
string |
Yes | Workspace ID |
--id |
string |
Yes | Environment ID |
Read-only · Returns object
import-staging-libraries
Section titled “import-staging-libraries”Import external libraries configuration into staging
fabio environment import-staging-libraries --workspace <value> --id <value>| Flag | Type | Required | Description |
|---|---|---|---|
--workspace |
string |
Yes | Workspace ID |
--id |
string |
Yes | Environment ID |
--file |
string |
No | Path to the external-libraries file (e.g. an environment.yml listing public/feed libraries). Sent verbatim as octet-stream |
--content |
string |
No | Inline external-libraries file content (e.g. environment.yml text). Sent verbatim as octet-stream |
Mutates state · Returns object
remove-staging-library
Section titled “remove-staging-library”Remove an external library from staging
fabio environment remove-staging-library --workspace <value> --id <value> --library-name <value> --library-version <value>| Flag | Type | Required | Description |
|---|---|---|---|
--workspace |
string |
Yes | Workspace ID |
--id |
string |
Yes | Environment ID |
--library-name |
string |
Yes | Library name to remove |
--library-version |
string |
Yes | Library version to remove (the API requires the exact version) |
Mutates state · Destructive · Returns void
upload-staging-library
Section titled “upload-staging-library”Upload a custom library file into staging
fabio environment upload-staging-library --workspace <value> --id <value> --file <value>| Flag | Type | Required | Description |
|---|---|---|---|
--workspace |
string |
Yes | Workspace ID |
--id |
string |
Yes | Environment ID |
--file |
string |
Yes | Path to the library file to upload (.jar, .whl, .tar.gz, etc.) |
--library-name |
string |
No | Library name (defaults to filename) |
Mutates state · Returns object
update-staging-spark-compute
Section titled “update-staging-spark-compute”Update staging Spark compute configuration
fabio environment update-staging-spark-compute --workspace <value> --id <value>| Flag | Type | Required | Description |
|---|---|---|---|
--workspace |
string |
Yes | Workspace ID |
--id |
string |
Yes | Environment ID |
--compute-api |
enum |
No | Explicit contract; release is required for custom live-pool settings One of: beta, release. |
--file |
string |
No | Path to JSON file with Spark compute config (full body; conflicts with typed compute flags) |
--content |
string |
No | Inline JSON content with Spark compute config (full body; conflicts with typed compute flags) |
--runtime-version |
string |
No | Explicit Spark runtime version (e.g. “2.0” for Spark 4.1 / Delta 4.2, or supported legacy “1.3” for Spark 3.5). Omit to preserve the current runtime. Merged into the existing staging compute (other fields preserved) |
--spark-property |
array |
No | Spark configuration property to set as KEY=VALUE (repeatable). Merged into existing sparkProperties. E.g. –spark-property spark.native.enabled=true |
--custom-live-pool-support |
enum |
No | Enable or disable custom live-pool support. Disabling retains hydration settings One of: Enabled, Disabled. |
--max-clusters-to-hydrate |
integer |
No | Maximum clusters to pre-hydrate per activation cycle (minimum 1) |
--cluster-idle-timeout |
string |
No | Hydrated-cluster idle timeout as an ISO 8601 duration (PT20M through PT24H) |
--custom-live-pool-lifespan |
string |
No | Live-pool activation lifespan as an ISO 8601 duration (PT30M through PT24H) |
--clear-custom-live-pool-settings |
bool |
No | Remove custom live-pool hydration settings. Live-pool support is unchanged unless explicitly set |
Examples
fabio environment update-staging-spark-compute --workspace $WS --id $ENV --custom-live-pool-support Enabled --max-clusters-to-hydrate 4 --cluster-idle-timeout PT20M --custom-live-pool-lifespan PT1Hfabio environment update-staging-spark-compute --workspace $WS --id $ENV --custom-live-pool-support Disabled --clear-custom-live-pool-settingsMutates state · Returns object
list-pool-activations
Section titled “list-pool-activations”List custom live-pool activations and job history
fabio environment list-pool-activations --workspace <value> --id <value>| Flag | Type | Required | Description |
|---|---|---|---|
--workspace |
string |
Yes | Workspace ID |
--id |
string |
Yes | Environment ID |
--page-size |
integer |
No | Number of activations per page |
--filter |
string |
No | Filter by state, for example: state eq 'InProgress' |
--state |
enum |
No | Typed activation state; conflicts with the raw –filter expression One of: NotStarted, InProgress, Succeeded, Failed, Cancelled, Unknown. |
Examples
fabio environment list-pool-activations --workspace $WS --id $ENV --filter "state eq 'InProgress'"Read-only · Returns list
show-pool-activation
Section titled “show-pool-activation”Show detailed diagnostics for a pool activation
fabio environment show-pool-activation --workspace <value> --id <value> --activation-id <value>| Flag | Type | Required | Description |
|---|---|---|---|
--workspace |
string |
Yes | Workspace ID |
--id |
string |
Yes | Environment ID |
--activation-id |
string |
Yes | Pool activation ID |
--follow |
bool |
No | Watch this activation until Succeeded, Failed, or Cancelled (not necessarily successful) |
--interval |
integer |
No | Seconds between reads in –follow mode |
--max-duration |
integer |
No | Total seconds to watch, including in-flight reads (default 60) |
Examples
fabio environment show-pool-activation --workspace $WS --id $ENV --activation-id $ACTIVATIONRead-only · Returns object
run-custom-live-pool
Section titled “run-custom-live-pool”Run the environment’s custom live pool on demand
fabio environment run-custom-live-pool --workspace <value> --id <value>| Flag | Type | Required | Description |
|---|---|---|---|
--workspace |
string |
Yes | Workspace ID |
--id |
string |
Yes | Environment ID |
--wait |
bool |
No | Observe this exact job until it reaches a terminal state |
--timeout |
integer |
No | Maximum seconds to observe the accepted job (not the pool lifespan) |
--cancel-on-timeout |
bool |
No | Request cancellation of this job when local observation times out |
Mutates state · Long-running operation · Returns object
list-custom-live-pool-schedules
Section titled “list-custom-live-pool-schedules”List custom live-pool schedules
fabio environment list-custom-live-pool-schedules --workspace <value> --id <value>| Flag | Type | Required | Description |
|---|---|---|---|
--workspace |
string |
Yes | Workspace ID |
--id |
string |
Yes | Environment ID |
Read-only · Returns list
show-custom-live-pool-schedule
Section titled “show-custom-live-pool-schedule”Show a custom live-pool schedule
fabio environment show-custom-live-pool-schedule --workspace <value> --id <value> --schedule-id <value>| Flag | Type | Required | Description |
|---|---|---|---|
--workspace |
string |
Yes | Workspace ID |
--id |
string |
Yes | Environment ID |
--schedule-id |
string |
Yes | Schedule ID |
Read-only · Returns object
create-custom-live-pool-schedule
Section titled “create-custom-live-pool-schedule”Create a recurring custom live-pool schedule
fabio environment create-custom-live-pool-schedule --workspace <value> --id <value>| Flag | Type | Required | Description |
|---|---|---|---|
--workspace |
string |
Yes | Workspace ID |
--id |
string |
Yes | Environment ID |
--file |
string |
No | Path to the schedule request JSON |
--content |
string |
No | Inline schedule request JSON |
Mutates state · Returns object
update-custom-live-pool-schedule
Section titled “update-custom-live-pool-schedule”Update a custom live-pool schedule
fabio environment update-custom-live-pool-schedule --workspace <value> --id <value> --schedule-id <value>| Flag | Type | Required | Description |
|---|---|---|---|
--workspace |
string |
Yes | Workspace ID |
--id |
string |
Yes | Environment ID |
--schedule-id |
string |
Yes | Schedule ID |
--file |
string |
No | Path to the schedule request JSON |
--content |
string |
No | Inline schedule request JSON |
Mutates state · Returns void
delete-custom-live-pool-schedule
Section titled “delete-custom-live-pool-schedule”Delete a custom live-pool schedule
fabio environment delete-custom-live-pool-schedule --workspace <value> --id <value> --schedule-id <value>| Flag | Type | Required | Description |
|---|---|---|---|
--workspace |
string |
Yes | Workspace ID |
--id |
string |
Yes | Environment ID |
--schedule-id |
string |
Yes | Schedule ID |
Mutates state · Destructive · Returns void
