-
Notifications
You must be signed in to change notification settings - Fork 31
Description
Bug Description
When creating a new connection for FabricSQL it Fails
!fab create .connections/CON_FMD_FABRIC_SQL1.Connection -P connectionDetails.type=FabricSql,connectionDetails.creationMethod=FabricSql.Contents,connectionDetails.parameters.dummy=x, credentialDetails.type=ServicePrincipal,credentialDetails.servicePrincipalClientId=$app_id,credentialDetails.servicePrincipalSecret=$secret,credentialDetails.tenantId=$tenant_id
Creating a new Connection... ! Parameter dummy is not used by the creation method FabricSql.Contents and will be ignored x create: [InvalidInput] Credential type is required. Supported credential types: OAuth2, ServicePrincipal
When I removed the option connectionDetails.parameters.dummy=x, what was suggested for Fabric Pipelines I get the following error
Creating a new Connection...
x create: [InvalidInput] Parameters are required for the connection creation method. Required parameters are: . Optional parameters are:
fabric-cli version
1.3.1
Python version
3.11
Operating System
Windows
CLI Mode
Interactive mode
Authentication Method
Interactive browser login
Steps to Reproduce
Fabric Notebook
Pip install fabricli
Define tenant_id, secret and app_id
!fab create .connections/CON_FMD_FABRIC_SQL1.Connection -P connectionDetails.type=FabricSql,connectionDetails.creationMethod=FabricSql.Contents,credentialDetails.type=ServicePrincipal,credentialDetails.servicePrincipalClientId=$app_id,credentialDetails.servicePrincipalSecret=$secret,credentialDetails.tenantId=$tenant_id
Expected Behavior
That we can create the Connection
Actual Behavior
Creating connection fails
Additional Context
From the API, this is the context {
"type": "FabricSql",
"creationMethods": [
{
"name": "FabricSql.Contents",
"parameters": []
}
],
"supportedCredentialTypes": [
"OAuth2",
"ServicePrincipal"
],
"supportedConnectionEncryptionTypes": [
"NotEncrypted"
],
"supportsSkipTestConnection": false,
"supportedCredentialTypesForUsageInUserControlledCode": null
},
Possible Solution
No response