Skip to content

connection

Manage connections (cloud, on-premises, virtual network)

Authentication scope: fabric

List all connections you have permission to access

Terminal window
fabio connection list

Output fields: id, displayName, connectivityType, connectionType

Read-only · Returns list

Show details of a specific connection

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

Read-only · Returns object

Create a new connection

Terminal window
fabio connection create --name <value> --connectivity-type <value> --connection-type <value> --parameters <value> --credential-type <value>
Flag Type Required Description
--name string Yes Display name for the connection
--connectivity-type enum Yes Connectivity type One of: ShareableCloud, OnPremises, VirtualNetworkGateway, StreamingVirtualNetworkGateway, PersonalCloud.
--connection-type string Yes Connection type path (e.g., Web, SQL, GitHubSourceControl)
--creation-method string No Creation method (connectionDetails.creationMethod). If omitted, fabio auto-resolves it from the connection type via supportedConnectionTypes (most types differ, e.g. SQLSql, EventHubEventHub.Contents). Specify explicitly only for types with multiple methods (e.g. AzureDataExplorer, Spark)
--parameters string Yes Connection parameters as JSON (e.g., ‘{“server”:“host”,“database”:“db”}’)
--gateway-id string No Gateway ID through which the connection is made (required when --connectivity-type is VirtualNetworkGateway or StreamingVirtualNetworkGateway)
--credential-type enum Yes Credential type One of: Basic, OAuth2, Key, Anonymous, ServicePrincipal, SharedAccessSignature, WorkspaceIdentity, KeyPair.
--credentials string No Credentials as JSON (format depends on credential type)
--privacy-level enum No Privacy level One of: None, Public, Organizational, Private.
--skip-test-connection bool No Skip connection test during creation
--allow-code-first-artifacts bool No Allow this connection to be used by code-first artifacts such as Notebooks (allowUsageInUserControlledCode). Can ONLY be set at creation time; cannot be changed later
--allow-gateway-usage bool No Allow this connection to be used with on-premises or virtual-network data gateways (allowConnectionUsageInGateway)

Examples

Terminal window
fabio connection create --name "AzureSQL-Prod" --connectivity-type ShareableCloud --type Sql --parameters '{"server":"myserver.database.windows.net","database":"mydb"}' --credential-type Basic --credentials '{"username":"admin","password":"***"}'
Terminal window
fabio connection create --name "ContosoStreamingVNGConn" --connectivity-type StreamingVirtualNetworkGateway --gateway-id $GATEWAY_ID --type Sql --parameters '{"server":"contoso.database.windows.net","database":"sales"}' --credential-type Basic --credentials '{"username":"admin","password":"***"}'

Output fields: id, displayName

Mutates state · Returns object

Update a connection’s name, credentials, or privacy level

Terminal window
fabio connection update --id <value>
Flag Type Required Description
--id string Yes Connection ID
--name string No New display name
--privacy-level enum No New privacy level One of: None, Public, Organizational, Private.
--credential-type enum No New credential type One of: Basic, OAuth2, Key, Anonymous, ServicePrincipal, SharedAccessSignature, WorkspaceIdentity, KeyPair.
--credentials string No New credentials as JSON

Mutates state · Returns object

Delete a connection

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

Mutates state · Destructive · Returns void

List supported connection types (gateway types catalog)

Terminal window
fabio connection list-supported-types

Examples

Terminal window
fabio connection list-supported-types -o table

Read-only · Returns list

List role assignments for a connection

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

Read-only · Returns list

Add a role assignment to a connection

Terminal window
fabio connection add-role-assignment --id <value> --principal-id <value> --principal-type <value> --role <value>
Flag Type Required Description
--id string Yes Connection ID
--principal-id string Yes Principal ID (user, group, or service principal)
--principal-type enum Yes Principal type One of: User, Group, ServicePrincipal.
--role enum Yes Role to assign One of: Owner, User, UserWithReshare.

Mutates state · Returns object

Show a specific role assignment for a connection

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

Read-only · Returns object

Update a role assignment for a connection

Terminal window
fabio connection update-role-assignment --id <value> --assignment-id <value> --role <value>
Flag Type Required Description
--id string Yes Connection ID
--assignment-id string Yes Role assignment ID
--role enum Yes New role One of: Owner, User, UserWithReshare.

Mutates state · Returns object

Delete a role assignment from a connection

Terminal window
fabio connection delete-role-assignment --id <value> --assignment-id <value>
Flag Type Required Description
--id string Yes Connection ID
--assignment-id string Yes Role assignment ID

Mutates state · Destructive · Returns void

Test a connection (not supported for StreamingVirtualNetworkGateway connections)

Terminal window
fabio connection test-connection --id <value>
Flag Type Required Description
--id string Yes Connection ID

Read-only · Returns object