Please... create your Fabric connections via Service Principals
A connection tied to someone's personal account is fine, right up until that person leaves. Here's why every Fabric connection should be owned by a Service Principal instead.
Someone on our team left. I took over their work. Simple enough, until I tried to fix a failing pipeline and found the data source connections it depended on were owned by an account that no longer existed. I couldn't edit them, I couldn't see the credentials, I couldn't even tell what they were pointing at without opening the pipeline and reverse-engineering it. The connections weren't broken yet, but I had no way to touch them if they ever were.
That's when it clicked: a connection owned by a person is a connection with an expiration date. Here's why.
It doesn't survive offboarding
When someone leaves, their account gets disabled. Every connection they created is tied to that account, so every connection they created is now, functionally, unowned. Nobody can open it, edit the credentials, or even see who it's supposed to authenticate as. It keeps working right up until a token expires or a password rotates, and then it just stops, with no clear owner to page.
You don't find out at offboarding time. You find out weeks or months later, when a refresh silently fails and someone has to go spelunking through pipelines to figure out which connection is the problem and who used to own it.
It's a bus factor of one, even before anyone leaves
You don't need someone to quit for this to bite you. If a connection is owned by one person's account, that person is the only one who can update the credentials, fix a broken reference, or grant someone else access to it. On holiday? Out sick? In a meeting? The pipeline waits.
A connection owned by a Service Principal isn't owned by a person at all. Anyone with the right role on that SPN can manage it. Ownership becomes a team property instead of an individual's, especially if the connection is defined in Terraform: the definition itself lives in a repo, reviewable and changeable by anyone on the team, not locked in one person's head or one person's UI session.
It doesn't work for automation anyway
Personal accounts assume a person is present: MFA prompts, conditional access, interactive sign-in. None of that plays well with a scheduled refresh or a pipeline trigger running at 3am. You either end up with a personal account that has MFA quietly excluded (which should make you nervous for other reasons), or a connection that "works" until a conditional access policy changes and locks it out.
Service Principals don't have this problem. No interactive sign-in, no MFA, no session to expire. Client credentials, a short-lived token, done. It's the same authentication method most of the automation on your platform already uses, so a personally-owned connection is the odd one out, not the norm.
It's invisible until it breaks
Nobody audits "whose personal account is this connection using" as a recurring task, because there's no natural trigger for it. It's not visible in the connection list, it doesn't show up in a permissions review, and it doesn't fail until the underlying account does something unexpected. The only time anyone looks is after it's already broken.
A Service Principal doesn't remove the need to think about ownership, but it does make the answer to "who owns this" a stable one: it's the SPN, and the SPN's owners are whoever you assigned in Entra. That's something you can actually document and review.
resource "fabric_connection" "example" {
display_name = "example"
connectivity_type = "ShareableCloud"
privacy_level = "Organizational"
connection_details = {
type = "Sql"
creation_method = "Sql.Contents"
parameters = [
{ name = "server", value = "example.database.windows.net" },
{ name = "database", value = "example-db" },
]
}
credential_details = {
credential_type = "ServicePrincipal"
connection_encryption = "Encrypted"
single_sign_on_type = "None"
skip_test_connection = false
service_principal_credentials = {
client_id = var.spn_client_id
tenant_id = var.spn_tenant_id
client_secret_wo = var.spn_client_secret
client_secret_wo_version = 1
}
}
}
Nobody created this by hand, so nobody's personal account is on the hook for it. Set it up this way from the start and offboarding stops being an event that breaks things. The person leaves, their account gets disabled, and the connections keep working, because they were never tied to that person in the first place.