published on Friday, May 8, 2026 by Pulumi
published on Friday, May 8, 2026 by Pulumi
Fabric credential resource
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as dbtcloud from "@pulumi/dbtcloud";
// Using the classic sensitive attributes (stored in state)
// when using AD authentication
const myFabricCredAd = new dbtcloud.FabricCredential("my_fabric_cred_ad", {
projectId: dbtProject.id,
schema: "my_schema",
user: "my_user",
password: "my_password",
schemaAuthorization: "abcd",
});
// when using service principal authentication
const myFabricCredServPrinc = new dbtcloud.FabricCredential("my_fabric_cred_serv_princ", {
projectId: dbtProject.id,
schema: "my_schema",
clientId: "my_client_id",
tenantId: "my_tenant_id",
clientSecret: "my_secret",
schemaAuthorization: "abcd",
});
const config = new pulumi.Config();
const fabricPassword = config.require("fabricPassword");
const fabricClientSecret = config.require("fabricClientSecret");
// when using AD authentication with write-only password
const myFabricCredAdWo = new dbtcloud.FabricCredential("my_fabric_cred_ad_wo", {
projectId: dbtProject.id,
schema: "my_schema",
user: "my_user",
passwordWo: fabricPassword,
passwordWoVersion: 1,
schemaAuthorization: "abcd",
});
// when using service principal authentication with write-only client secret
const myFabricCredServPrincWo = new dbtcloud.FabricCredential("my_fabric_cred_serv_princ_wo", {
projectId: dbtProject.id,
schema: "my_schema",
clientId: "my_client_id",
tenantId: "my_tenant_id",
clientSecretWo: fabricClientSecret,
clientSecretWoVersion: 1,
schemaAuthorization: "abcd",
});
import pulumi
import pulumi_dbtcloud as dbtcloud
# Using the classic sensitive attributes (stored in state)
# when using AD authentication
my_fabric_cred_ad = dbtcloud.FabricCredential("my_fabric_cred_ad",
project_id=dbt_project["id"],
schema="my_schema",
user="my_user",
password="my_password",
schema_authorization="abcd")
# when using service principal authentication
my_fabric_cred_serv_princ = dbtcloud.FabricCredential("my_fabric_cred_serv_princ",
project_id=dbt_project["id"],
schema="my_schema",
client_id="my_client_id",
tenant_id="my_tenant_id",
client_secret="my_secret",
schema_authorization="abcd")
config = pulumi.Config()
fabric_password = config.require("fabricPassword")
fabric_client_secret = config.require("fabricClientSecret")
# when using AD authentication with write-only password
my_fabric_cred_ad_wo = dbtcloud.FabricCredential("my_fabric_cred_ad_wo",
project_id=dbt_project["id"],
schema="my_schema",
user="my_user",
password_wo=fabric_password,
password_wo_version=1,
schema_authorization="abcd")
# when using service principal authentication with write-only client secret
my_fabric_cred_serv_princ_wo = dbtcloud.FabricCredential("my_fabric_cred_serv_princ_wo",
project_id=dbt_project["id"],
schema="my_schema",
client_id="my_client_id",
tenant_id="my_tenant_id",
client_secret_wo=fabric_client_secret,
client_secret_wo_version=1,
schema_authorization="abcd")
package main
import (
"github.com/pulumi/pulumi-dbtcloud/sdk/go/dbtcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Using the classic sensitive attributes (stored in state)
// when using AD authentication
_, err := dbtcloud.NewFabricCredential(ctx, "my_fabric_cred_ad", &dbtcloud.FabricCredentialArgs{
ProjectId: pulumi.Any(dbtProject.Id),
Schema: pulumi.String("my_schema"),
User: pulumi.String("my_user"),
Password: pulumi.String("my_password"),
SchemaAuthorization: pulumi.String("abcd"),
})
if err != nil {
return err
}
// when using service principal authentication
_, err = dbtcloud.NewFabricCredential(ctx, "my_fabric_cred_serv_princ", &dbtcloud.FabricCredentialArgs{
ProjectId: pulumi.Any(dbtProject.Id),
Schema: pulumi.String("my_schema"),
ClientId: pulumi.String("my_client_id"),
TenantId: pulumi.String("my_tenant_id"),
ClientSecret: pulumi.String("my_secret"),
SchemaAuthorization: pulumi.String("abcd"),
})
if err != nil {
return err
}
cfg := config.New(ctx, "")
fabricPassword := cfg.Require("fabricPassword")
fabricClientSecret := cfg.Require("fabricClientSecret")
// when using AD authentication with write-only password
_, err = dbtcloud.NewFabricCredential(ctx, "my_fabric_cred_ad_wo", &dbtcloud.FabricCredentialArgs{
ProjectId: pulumi.Any(dbtProject.Id),
Schema: pulumi.String("my_schema"),
User: pulumi.String("my_user"),
PasswordWo: pulumi.String(pulumi.String(fabricPassword)),
PasswordWoVersion: pulumi.Int(1),
SchemaAuthorization: pulumi.String("abcd"),
})
if err != nil {
return err
}
// when using service principal authentication with write-only client secret
_, err = dbtcloud.NewFabricCredential(ctx, "my_fabric_cred_serv_princ_wo", &dbtcloud.FabricCredentialArgs{
ProjectId: pulumi.Any(dbtProject.Id),
Schema: pulumi.String("my_schema"),
ClientId: pulumi.String("my_client_id"),
TenantId: pulumi.String("my_tenant_id"),
ClientSecretWo: pulumi.String(pulumi.String(fabricClientSecret)),
ClientSecretWoVersion: pulumi.Int(1),
SchemaAuthorization: pulumi.String("abcd"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using DbtCloud = Pulumi.DbtCloud;
return await Deployment.RunAsync(() =>
{
// Using the classic sensitive attributes (stored in state)
// when using AD authentication
var myFabricCredAd = new DbtCloud.Index.FabricCredential("my_fabric_cred_ad", new()
{
ProjectId = dbtProject.Id,
Schema = "my_schema",
User = "my_user",
Password = "my_password",
SchemaAuthorization = "abcd",
});
// when using service principal authentication
var myFabricCredServPrinc = new DbtCloud.Index.FabricCredential("my_fabric_cred_serv_princ", new()
{
ProjectId = dbtProject.Id,
Schema = "my_schema",
ClientId = "my_client_id",
TenantId = "my_tenant_id",
ClientSecret = "my_secret",
SchemaAuthorization = "abcd",
});
var config = new Config();
var fabricPassword = config.Require("fabricPassword");
var fabricClientSecret = config.Require("fabricClientSecret");
// when using AD authentication with write-only password
var myFabricCredAdWo = new DbtCloud.Index.FabricCredential("my_fabric_cred_ad_wo", new()
{
ProjectId = dbtProject.Id,
Schema = "my_schema",
User = "my_user",
PasswordWo = fabricPassword,
PasswordWoVersion = 1,
SchemaAuthorization = "abcd",
});
// when using service principal authentication with write-only client secret
var myFabricCredServPrincWo = new DbtCloud.Index.FabricCredential("my_fabric_cred_serv_princ_wo", new()
{
ProjectId = dbtProject.Id,
Schema = "my_schema",
ClientId = "my_client_id",
TenantId = "my_tenant_id",
ClientSecretWo = fabricClientSecret,
ClientSecretWoVersion = 1,
SchemaAuthorization = "abcd",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.dbtcloud.FabricCredential;
import com.pulumi.dbtcloud.FabricCredentialArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var config = ctx.config();
// Using the classic sensitive attributes (stored in state)
// when using AD authentication
var myFabricCredAd = new FabricCredential("myFabricCredAd", FabricCredentialArgs.builder()
.projectId(dbtProject.id())
.schema("my_schema")
.user("my_user")
.password("my_password")
.schemaAuthorization("abcd")
.build());
// when using service principal authentication
var myFabricCredServPrinc = new FabricCredential("myFabricCredServPrinc", FabricCredentialArgs.builder()
.projectId(dbtProject.id())
.schema("my_schema")
.clientId("my_client_id")
.tenantId("my_tenant_id")
.clientSecret("my_secret")
.schemaAuthorization("abcd")
.build());
final var fabricPassword = config.require("fabricPassword");
final var fabricClientSecret = config.require("fabricClientSecret");
// when using AD authentication with write-only password
var myFabricCredAdWo = new FabricCredential("myFabricCredAdWo", FabricCredentialArgs.builder()
.projectId(dbtProject.id())
.schema("my_schema")
.user("my_user")
.passwordWo(fabricPassword)
.passwordWoVersion(1)
.schemaAuthorization("abcd")
.build());
// when using service principal authentication with write-only client secret
var myFabricCredServPrincWo = new FabricCredential("myFabricCredServPrincWo", FabricCredentialArgs.builder()
.projectId(dbtProject.id())
.schema("my_schema")
.clientId("my_client_id")
.tenantId("my_tenant_id")
.clientSecretWo(fabricClientSecret)
.clientSecretWoVersion(1)
.schemaAuthorization("abcd")
.build());
}
}
configuration:
# Using write-only attributes (not stored in state, requires Terraform >= 1.11)
# //
# // The password_wo and client_secret_wo values are never persisted in the Terraform state file.
# // Use password_wo_version / client_secret_wo_version to trigger an update when the secret changes.
fabricPassword:
type: string
fabricClientSecret:
type: string
resources:
# Using the classic sensitive attributes (stored in state)
# when using AD authentication
myFabricCredAd:
type: dbtcloud:FabricCredential
name: my_fabric_cred_ad
properties:
projectId: ${dbtProject.id}
schema: my_schema
user: my_user
password: my_password
schemaAuthorization: abcd
# when using service principal authentication
myFabricCredServPrinc:
type: dbtcloud:FabricCredential
name: my_fabric_cred_serv_princ
properties:
projectId: ${dbtProject.id}
schema: my_schema
clientId: my_client_id
tenantId: my_tenant_id
clientSecret: my_secret
schemaAuthorization: abcd
# when using AD authentication with write-only password
myFabricCredAdWo:
type: dbtcloud:FabricCredential
name: my_fabric_cred_ad_wo
properties:
projectId: ${dbtProject.id}
schema: my_schema
user: my_user
passwordWo: ${fabricPassword}
passwordWoVersion: 1
schemaAuthorization: abcd
# when using service principal authentication with write-only client secret
myFabricCredServPrincWo:
type: dbtcloud:FabricCredential
name: my_fabric_cred_serv_princ_wo
properties:
projectId: ${dbtProject.id}
schema: my_schema
clientId: my_client_id
tenantId: my_tenant_id
clientSecretWo: ${fabricClientSecret}
clientSecretWoVersion: 1
schemaAuthorization: abcd
Create FabricCredential Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new FabricCredential(name: string, args: FabricCredentialArgs, opts?: CustomResourceOptions);@overload
def FabricCredential(resource_name: str,
args: FabricCredentialArgs,
opts: Optional[ResourceOptions] = None)
@overload
def FabricCredential(resource_name: str,
opts: Optional[ResourceOptions] = None,
adapter_type: Optional[str] = None,
schema: Optional[str] = None,
project_id: Optional[int] = None,
client_secret_wo: Optional[str] = None,
client_secret_wo_version: Optional[int] = None,
password: Optional[str] = None,
password_wo: Optional[str] = None,
password_wo_version: Optional[int] = None,
client_secret: Optional[str] = None,
client_id: Optional[str] = None,
schema_authorization: Optional[str] = None,
tenant_id: Optional[str] = None,
user: Optional[str] = None)func NewFabricCredential(ctx *Context, name string, args FabricCredentialArgs, opts ...ResourceOption) (*FabricCredential, error)public FabricCredential(string name, FabricCredentialArgs args, CustomResourceOptions? opts = null)
public FabricCredential(String name, FabricCredentialArgs args)
public FabricCredential(String name, FabricCredentialArgs args, CustomResourceOptions options)
type: dbtcloud:FabricCredential
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args FabricCredentialArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args FabricCredentialArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args FabricCredentialArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FabricCredentialArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args FabricCredentialArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var fabricCredentialResource = new DbtCloud.FabricCredential("fabricCredentialResource", new()
{
AdapterType = "string",
Schema = "string",
ProjectId = 0,
ClientSecretWo = "string",
ClientSecretWoVersion = 0,
Password = "string",
PasswordWo = "string",
PasswordWoVersion = 0,
ClientSecret = "string",
ClientId = "string",
SchemaAuthorization = "string",
TenantId = "string",
User = "string",
});
example, err := dbtcloud.NewFabricCredential(ctx, "fabricCredentialResource", &dbtcloud.FabricCredentialArgs{
AdapterType: pulumi.String("string"),
Schema: pulumi.String("string"),
ProjectId: pulumi.Int(0),
ClientSecretWo: pulumi.String("string"),
ClientSecretWoVersion: pulumi.Int(0),
Password: pulumi.String("string"),
PasswordWo: pulumi.String("string"),
PasswordWoVersion: pulumi.Int(0),
ClientSecret: pulumi.String("string"),
ClientId: pulumi.String("string"),
SchemaAuthorization: pulumi.String("string"),
TenantId: pulumi.String("string"),
User: pulumi.String("string"),
})
var fabricCredentialResource = new FabricCredential("fabricCredentialResource", FabricCredentialArgs.builder()
.adapterType("string")
.schema("string")
.projectId(0)
.clientSecretWo("string")
.clientSecretWoVersion(0)
.password("string")
.passwordWo("string")
.passwordWoVersion(0)
.clientSecret("string")
.clientId("string")
.schemaAuthorization("string")
.tenantId("string")
.user("string")
.build());
fabric_credential_resource = dbtcloud.FabricCredential("fabricCredentialResource",
adapter_type="string",
schema="string",
project_id=0,
client_secret_wo="string",
client_secret_wo_version=0,
password="string",
password_wo="string",
password_wo_version=0,
client_secret="string",
client_id="string",
schema_authorization="string",
tenant_id="string",
user="string")
const fabricCredentialResource = new dbtcloud.FabricCredential("fabricCredentialResource", {
adapterType: "string",
schema: "string",
projectId: 0,
clientSecretWo: "string",
clientSecretWoVersion: 0,
password: "string",
passwordWo: "string",
passwordWoVersion: 0,
clientSecret: "string",
clientId: "string",
schemaAuthorization: "string",
tenantId: "string",
user: "string",
});
type: dbtcloud:FabricCredential
properties:
adapterType: string
clientId: string
clientSecret: string
clientSecretWo: string
clientSecretWoVersion: 0
password: string
passwordWo: string
passwordWoVersion: 0
projectId: 0
schema: string
schemaAuthorization: string
tenantId: string
user: string
FabricCredential Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The FabricCredential resource accepts the following input properties:
- Adapter
Type string - The type of the adapter (fabric)
- Project
Id int - Project ID to create the Fabric credential in
- Schema string
- The schema where to create the dbt models
- Client
Id string - The client ID of the Azure Active Directory service principal. This is only used when connecting to Azure SQL with an AAD service principal.
- Client
Secret string - The client secret of the Azure Active Directory service principal. This is only used when connecting to Azure SQL with an AAD service principal. Consider using
clientSecretWoinstead, which is not stored in state. - Client
Secret stringWo - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Write-only alternative to
clientSecret. The value is not stored in state. RequiresclientSecretWoVersionto trigger updates. - Client
Secret intWo Version - Version number for
clientSecretWo. Increment this value to trigger an update of the client secret when usingclientSecretWo. - Password string
- The password for the account to connect to. Only used when connection with AD user/pass. Consider using
passwordWoinstead, which is not stored in state. - Password
Wo string - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Write-only alternative to
password. The value is not stored in state. RequirespasswordWoVersionto trigger updates. - Password
Wo intVersion - Version number for
passwordWo. Increment this value to trigger an update of the password when usingpasswordWo. - string
- Optionally set this to the principal who should own the schemas created by dbt
- Tenant
Id string - The tenant ID of the Azure Active Directory instance. This is only used when connecting to Azure SQL with a service principal.
- User string
- The username of the Fabric account to connect to. Only used when connection with AD user/pass
- Adapter
Type string - The type of the adapter (fabric)
- Project
Id int - Project ID to create the Fabric credential in
- Schema string
- The schema where to create the dbt models
- Client
Id string - The client ID of the Azure Active Directory service principal. This is only used when connecting to Azure SQL with an AAD service principal.
- Client
Secret string - The client secret of the Azure Active Directory service principal. This is only used when connecting to Azure SQL with an AAD service principal. Consider using
clientSecretWoinstead, which is not stored in state. - Client
Secret stringWo - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Write-only alternative to
clientSecret. The value is not stored in state. RequiresclientSecretWoVersionto trigger updates. - Client
Secret intWo Version - Version number for
clientSecretWo. Increment this value to trigger an update of the client secret when usingclientSecretWo. - Password string
- The password for the account to connect to. Only used when connection with AD user/pass. Consider using
passwordWoinstead, which is not stored in state. - Password
Wo string - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Write-only alternative to
password. The value is not stored in state. RequirespasswordWoVersionto trigger updates. - Password
Wo intVersion - Version number for
passwordWo. Increment this value to trigger an update of the password when usingpasswordWo. - string
- Optionally set this to the principal who should own the schemas created by dbt
- Tenant
Id string - The tenant ID of the Azure Active Directory instance. This is only used when connecting to Azure SQL with a service principal.
- User string
- The username of the Fabric account to connect to. Only used when connection with AD user/pass
- adapter
Type String - The type of the adapter (fabric)
- project
Id Integer - Project ID to create the Fabric credential in
- schema String
- The schema where to create the dbt models
- client
Id String - The client ID of the Azure Active Directory service principal. This is only used when connecting to Azure SQL with an AAD service principal.
- client
Secret String - The client secret of the Azure Active Directory service principal. This is only used when connecting to Azure SQL with an AAD service principal. Consider using
clientSecretWoinstead, which is not stored in state. - client
Secret StringWo - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Write-only alternative to
clientSecret. The value is not stored in state. RequiresclientSecretWoVersionto trigger updates. - client
Secret IntegerWo Version - Version number for
clientSecretWo. Increment this value to trigger an update of the client secret when usingclientSecretWo. - password String
- The password for the account to connect to. Only used when connection with AD user/pass. Consider using
passwordWoinstead, which is not stored in state. - password
Wo String - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Write-only alternative to
password. The value is not stored in state. RequirespasswordWoVersionto trigger updates. - password
Wo IntegerVersion - Version number for
passwordWo. Increment this value to trigger an update of the password when usingpasswordWo. - String
- Optionally set this to the principal who should own the schemas created by dbt
- tenant
Id String - The tenant ID of the Azure Active Directory instance. This is only used when connecting to Azure SQL with a service principal.
- user String
- The username of the Fabric account to connect to. Only used when connection with AD user/pass
- adapter
Type string - The type of the adapter (fabric)
- project
Id number - Project ID to create the Fabric credential in
- schema string
- The schema where to create the dbt models
- client
Id string - The client ID of the Azure Active Directory service principal. This is only used when connecting to Azure SQL with an AAD service principal.
- client
Secret string - The client secret of the Azure Active Directory service principal. This is only used when connecting to Azure SQL with an AAD service principal. Consider using
clientSecretWoinstead, which is not stored in state. - client
Secret stringWo - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Write-only alternative to
clientSecret. The value is not stored in state. RequiresclientSecretWoVersionto trigger updates. - client
Secret numberWo Version - Version number for
clientSecretWo. Increment this value to trigger an update of the client secret when usingclientSecretWo. - password string
- The password for the account to connect to. Only used when connection with AD user/pass. Consider using
passwordWoinstead, which is not stored in state. - password
Wo string - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Write-only alternative to
password. The value is not stored in state. RequirespasswordWoVersionto trigger updates. - password
Wo numberVersion - Version number for
passwordWo. Increment this value to trigger an update of the password when usingpasswordWo. - string
- Optionally set this to the principal who should own the schemas created by dbt
- tenant
Id string - The tenant ID of the Azure Active Directory instance. This is only used when connecting to Azure SQL with a service principal.
- user string
- The username of the Fabric account to connect to. Only used when connection with AD user/pass
- adapter_
type str - The type of the adapter (fabric)
- project_
id int - Project ID to create the Fabric credential in
- schema str
- The schema where to create the dbt models
- client_
id str - The client ID of the Azure Active Directory service principal. This is only used when connecting to Azure SQL with an AAD service principal.
- client_
secret str - The client secret of the Azure Active Directory service principal. This is only used when connecting to Azure SQL with an AAD service principal. Consider using
clientSecretWoinstead, which is not stored in state. - client_
secret_ strwo - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Write-only alternative to
clientSecret. The value is not stored in state. RequiresclientSecretWoVersionto trigger updates. - client_
secret_ intwo_ version - Version number for
clientSecretWo. Increment this value to trigger an update of the client secret when usingclientSecretWo. - password str
- The password for the account to connect to. Only used when connection with AD user/pass. Consider using
passwordWoinstead, which is not stored in state. - password_
wo str - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Write-only alternative to
password. The value is not stored in state. RequirespasswordWoVersionto trigger updates. - password_
wo_ intversion - Version number for
passwordWo. Increment this value to trigger an update of the password when usingpasswordWo. - str
- Optionally set this to the principal who should own the schemas created by dbt
- tenant_
id str - The tenant ID of the Azure Active Directory instance. This is only used when connecting to Azure SQL with a service principal.
- user str
- The username of the Fabric account to connect to. Only used when connection with AD user/pass
- adapter
Type String - The type of the adapter (fabric)
- project
Id Number - Project ID to create the Fabric credential in
- schema String
- The schema where to create the dbt models
- client
Id String - The client ID of the Azure Active Directory service principal. This is only used when connecting to Azure SQL with an AAD service principal.
- client
Secret String - The client secret of the Azure Active Directory service principal. This is only used when connecting to Azure SQL with an AAD service principal. Consider using
clientSecretWoinstead, which is not stored in state. - client
Secret StringWo - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Write-only alternative to
clientSecret. The value is not stored in state. RequiresclientSecretWoVersionto trigger updates. - client
Secret NumberWo Version - Version number for
clientSecretWo. Increment this value to trigger an update of the client secret when usingclientSecretWo. - password String
- The password for the account to connect to. Only used when connection with AD user/pass. Consider using
passwordWoinstead, which is not stored in state. - password
Wo String - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Write-only alternative to
password. The value is not stored in state. RequirespasswordWoVersionto trigger updates. - password
Wo NumberVersion - Version number for
passwordWo. Increment this value to trigger an update of the password when usingpasswordWo. - String
- Optionally set this to the principal who should own the schemas created by dbt
- tenant
Id String - The tenant ID of the Azure Active Directory instance. This is only used when connecting to Azure SQL with a service principal.
- user String
- The username of the Fabric account to connect to. Only used when connection with AD user/pass
Outputs
All input properties are implicitly available as output properties. Additionally, the FabricCredential resource produces the following output properties:
- Credential
Id int - The internal credential ID
- Id string
- The provider-assigned unique ID for this managed resource.
- Credential
Id int - The internal credential ID
- Id string
- The provider-assigned unique ID for this managed resource.
- credential
Id Integer - The internal credential ID
- id String
- The provider-assigned unique ID for this managed resource.
- credential
Id number - The internal credential ID
- id string
- The provider-assigned unique ID for this managed resource.
- credential_
id int - The internal credential ID
- id str
- The provider-assigned unique ID for this managed resource.
- credential
Id Number - The internal credential ID
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing FabricCredential Resource
Get an existing FabricCredential resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: FabricCredentialState, opts?: CustomResourceOptions): FabricCredential@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
adapter_type: Optional[str] = None,
client_id: Optional[str] = None,
client_secret: Optional[str] = None,
client_secret_wo: Optional[str] = None,
client_secret_wo_version: Optional[int] = None,
credential_id: Optional[int] = None,
password: Optional[str] = None,
password_wo: Optional[str] = None,
password_wo_version: Optional[int] = None,
project_id: Optional[int] = None,
schema: Optional[str] = None,
schema_authorization: Optional[str] = None,
tenant_id: Optional[str] = None,
user: Optional[str] = None) -> FabricCredentialfunc GetFabricCredential(ctx *Context, name string, id IDInput, state *FabricCredentialState, opts ...ResourceOption) (*FabricCredential, error)public static FabricCredential Get(string name, Input<string> id, FabricCredentialState? state, CustomResourceOptions? opts = null)public static FabricCredential get(String name, Output<String> id, FabricCredentialState state, CustomResourceOptions options)resources: _: type: dbtcloud:FabricCredential get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Adapter
Type string - The type of the adapter (fabric)
- Client
Id string - The client ID of the Azure Active Directory service principal. This is only used when connecting to Azure SQL with an AAD service principal.
- Client
Secret string - The client secret of the Azure Active Directory service principal. This is only used when connecting to Azure SQL with an AAD service principal. Consider using
clientSecretWoinstead, which is not stored in state. - Client
Secret stringWo - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Write-only alternative to
clientSecret. The value is not stored in state. RequiresclientSecretWoVersionto trigger updates. - Client
Secret intWo Version - Version number for
clientSecretWo. Increment this value to trigger an update of the client secret when usingclientSecretWo. - Credential
Id int - The internal credential ID
- Password string
- The password for the account to connect to. Only used when connection with AD user/pass. Consider using
passwordWoinstead, which is not stored in state. - Password
Wo string - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Write-only alternative to
password. The value is not stored in state. RequirespasswordWoVersionto trigger updates. - Password
Wo intVersion - Version number for
passwordWo. Increment this value to trigger an update of the password when usingpasswordWo. - Project
Id int - Project ID to create the Fabric credential in
- Schema string
- The schema where to create the dbt models
- string
- Optionally set this to the principal who should own the schemas created by dbt
- Tenant
Id string - The tenant ID of the Azure Active Directory instance. This is only used when connecting to Azure SQL with a service principal.
- User string
- The username of the Fabric account to connect to. Only used when connection with AD user/pass
- Adapter
Type string - The type of the adapter (fabric)
- Client
Id string - The client ID of the Azure Active Directory service principal. This is only used when connecting to Azure SQL with an AAD service principal.
- Client
Secret string - The client secret of the Azure Active Directory service principal. This is only used when connecting to Azure SQL with an AAD service principal. Consider using
clientSecretWoinstead, which is not stored in state. - Client
Secret stringWo - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Write-only alternative to
clientSecret. The value is not stored in state. RequiresclientSecretWoVersionto trigger updates. - Client
Secret intWo Version - Version number for
clientSecretWo. Increment this value to trigger an update of the client secret when usingclientSecretWo. - Credential
Id int - The internal credential ID
- Password string
- The password for the account to connect to. Only used when connection with AD user/pass. Consider using
passwordWoinstead, which is not stored in state. - Password
Wo string - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Write-only alternative to
password. The value is not stored in state. RequirespasswordWoVersionto trigger updates. - Password
Wo intVersion - Version number for
passwordWo. Increment this value to trigger an update of the password when usingpasswordWo. - Project
Id int - Project ID to create the Fabric credential in
- Schema string
- The schema where to create the dbt models
- string
- Optionally set this to the principal who should own the schemas created by dbt
- Tenant
Id string - The tenant ID of the Azure Active Directory instance. This is only used when connecting to Azure SQL with a service principal.
- User string
- The username of the Fabric account to connect to. Only used when connection with AD user/pass
- adapter
Type String - The type of the adapter (fabric)
- client
Id String - The client ID of the Azure Active Directory service principal. This is only used when connecting to Azure SQL with an AAD service principal.
- client
Secret String - The client secret of the Azure Active Directory service principal. This is only used when connecting to Azure SQL with an AAD service principal. Consider using
clientSecretWoinstead, which is not stored in state. - client
Secret StringWo - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Write-only alternative to
clientSecret. The value is not stored in state. RequiresclientSecretWoVersionto trigger updates. - client
Secret IntegerWo Version - Version number for
clientSecretWo. Increment this value to trigger an update of the client secret when usingclientSecretWo. - credential
Id Integer - The internal credential ID
- password String
- The password for the account to connect to. Only used when connection with AD user/pass. Consider using
passwordWoinstead, which is not stored in state. - password
Wo String - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Write-only alternative to
password. The value is not stored in state. RequirespasswordWoVersionto trigger updates. - password
Wo IntegerVersion - Version number for
passwordWo. Increment this value to trigger an update of the password when usingpasswordWo. - project
Id Integer - Project ID to create the Fabric credential in
- schema String
- The schema where to create the dbt models
- String
- Optionally set this to the principal who should own the schemas created by dbt
- tenant
Id String - The tenant ID of the Azure Active Directory instance. This is only used when connecting to Azure SQL with a service principal.
- user String
- The username of the Fabric account to connect to. Only used when connection with AD user/pass
- adapter
Type string - The type of the adapter (fabric)
- client
Id string - The client ID of the Azure Active Directory service principal. This is only used when connecting to Azure SQL with an AAD service principal.
- client
Secret string - The client secret of the Azure Active Directory service principal. This is only used when connecting to Azure SQL with an AAD service principal. Consider using
clientSecretWoinstead, which is not stored in state. - client
Secret stringWo - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Write-only alternative to
clientSecret. The value is not stored in state. RequiresclientSecretWoVersionto trigger updates. - client
Secret numberWo Version - Version number for
clientSecretWo. Increment this value to trigger an update of the client secret when usingclientSecretWo. - credential
Id number - The internal credential ID
- password string
- The password for the account to connect to. Only used when connection with AD user/pass. Consider using
passwordWoinstead, which is not stored in state. - password
Wo string - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Write-only alternative to
password. The value is not stored in state. RequirespasswordWoVersionto trigger updates. - password
Wo numberVersion - Version number for
passwordWo. Increment this value to trigger an update of the password when usingpasswordWo. - project
Id number - Project ID to create the Fabric credential in
- schema string
- The schema where to create the dbt models
- string
- Optionally set this to the principal who should own the schemas created by dbt
- tenant
Id string - The tenant ID of the Azure Active Directory instance. This is only used when connecting to Azure SQL with a service principal.
- user string
- The username of the Fabric account to connect to. Only used when connection with AD user/pass
- adapter_
type str - The type of the adapter (fabric)
- client_
id str - The client ID of the Azure Active Directory service principal. This is only used when connecting to Azure SQL with an AAD service principal.
- client_
secret str - The client secret of the Azure Active Directory service principal. This is only used when connecting to Azure SQL with an AAD service principal. Consider using
clientSecretWoinstead, which is not stored in state. - client_
secret_ strwo - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Write-only alternative to
clientSecret. The value is not stored in state. RequiresclientSecretWoVersionto trigger updates. - client_
secret_ intwo_ version - Version number for
clientSecretWo. Increment this value to trigger an update of the client secret when usingclientSecretWo. - credential_
id int - The internal credential ID
- password str
- The password for the account to connect to. Only used when connection with AD user/pass. Consider using
passwordWoinstead, which is not stored in state. - password_
wo str - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Write-only alternative to
password. The value is not stored in state. RequirespasswordWoVersionto trigger updates. - password_
wo_ intversion - Version number for
passwordWo. Increment this value to trigger an update of the password when usingpasswordWo. - project_
id int - Project ID to create the Fabric credential in
- schema str
- The schema where to create the dbt models
- str
- Optionally set this to the principal who should own the schemas created by dbt
- tenant_
id str - The tenant ID of the Azure Active Directory instance. This is only used when connecting to Azure SQL with a service principal.
- user str
- The username of the Fabric account to connect to. Only used when connection with AD user/pass
- adapter
Type String - The type of the adapter (fabric)
- client
Id String - The client ID of the Azure Active Directory service principal. This is only used when connecting to Azure SQL with an AAD service principal.
- client
Secret String - The client secret of the Azure Active Directory service principal. This is only used when connecting to Azure SQL with an AAD service principal. Consider using
clientSecretWoinstead, which is not stored in state. - client
Secret StringWo - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Write-only alternative to
clientSecret. The value is not stored in state. RequiresclientSecretWoVersionto trigger updates. - client
Secret NumberWo Version - Version number for
clientSecretWo. Increment this value to trigger an update of the client secret when usingclientSecretWo. - credential
Id Number - The internal credential ID
- password String
- The password for the account to connect to. Only used when connection with AD user/pass. Consider using
passwordWoinstead, which is not stored in state. - password
Wo String - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Write-only alternative to
password. The value is not stored in state. RequirespasswordWoVersionto trigger updates. - password
Wo NumberVersion - Version number for
passwordWo. Increment this value to trigger an update of the password when usingpasswordWo. - project
Id Number - Project ID to create the Fabric credential in
- schema String
- The schema where to create the dbt models
- String
- Optionally set this to the principal who should own the schemas created by dbt
- tenant
Id String - The tenant ID of the Azure Active Directory instance. This is only used when connecting to Azure SQL with a service principal.
- user String
- The username of the Fabric account to connect to. Only used when connection with AD user/pass
Import
using import blocks (requires Terraform >= 1.5) import { to = dbtcloud_fabric_credential.my_fabric_credential id = “project_id:credential_id” }
import { to = dbtcloud_fabric_credential.my_fabric_credential id = “12345:6789” }
using the older import command
$ pulumi import dbtcloud:index/fabricCredential:FabricCredential my_fabric_credential "project_id:credential_id"
$ pulumi import dbtcloud:index/fabricCredential:FabricCredential my_fabric_credential 12345:6789
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- dbtcloud pulumi/pulumi-dbtcloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
dbtcloudTerraform Provider.
published on Friday, May 8, 2026 by Pulumi
