connection
Manage connections (cloud, on-premises, virtual network)
Authentication scope: fabric
List all connections you have permission to access
fabio connection listOutput fields: id, displayName, connectivityType, connectionType
Read-only · Returns list
Show details of a specific connection
fabio connection show --id <value>| Flag | Type | Required | Description |
|---|---|---|---|
--id |
string |
Yes | Connection ID |
Read-only · Returns object
create
Section titled “create”Create a new connection
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. SQL→Sql, EventHub→EventHub.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
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":"***"}'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
Section titled “update”Update a connection’s name, credentials, or privacy level
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
Section titled “delete”Delete a connection
fabio connection delete --id <value>| Flag | Type | Required | Description |
|---|---|---|---|
--id |
string |
Yes | Connection ID |
Mutates state · Destructive · Returns void
list-supported-types
Section titled “list-supported-types”List supported connection types (gateway types catalog)
fabio connection list-supported-typesExamples
fabio connection list-supported-types -o tableRead-only · Returns list
list-role-assignments
Section titled “list-role-assignments”List role assignments for a connection
fabio connection list-role-assignments --id <value>| Flag | Type | Required | Description |
|---|---|---|---|
--id |
string |
Yes | Connection ID |
Read-only · Returns list
add-role-assignment
Section titled “add-role-assignment”Add a role assignment to a connection
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-role-assignment
Section titled “show-role-assignment”Show a specific role assignment for a connection
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-role-assignment
Section titled “update-role-assignment”Update a role assignment for a connection
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-role-assignment
Section titled “delete-role-assignment”Delete a role assignment from a connection
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-connection
Section titled “test-connection”Test a connection (not supported for StreamingVirtualNetworkGateway connections)
fabio connection test-connection --id <value>| Flag | Type | Required | Description |
|---|---|---|---|
--id |
string |
Yes | Connection ID |
Read-only · Returns object
