Build Flows

Integrations · November 14, 2026 · 22 min read

Microsoft Fabric and Azure Key Vault: Secret Names, the Vault URI Handoff and How Pipelines Read Secrets

The last stretch of a secure credential setup: Fabric workspace access (Admin role, guest vs domain account, F2 cost), adding ten named secrets under Objects > Secrets > Generate/Import, Key Vault naming rules, what to send back to your partner and what never to send, how a Fabric pipeline reads secrets at run time with notebookutils getSecret and whose identity it uses, why Key Vault references in Fabric connections don't cover Procore, HubSpot or QuickBooks, and how to revoke access by removing one role assignment.

By Charley Forey, founder of Build Flows

Key takeaways

  • Add each secret under Objects > Secrets > + Generate/Import with the exact lowercase, dash-separated name. Leave content type and dates empty, and don't put quotes or spaces around values.
  • Send your partner the Vault URI, the Directory (tenant) ID, the subscription and resource group, the account given access, and which secrets are filled in. Never send a value.
  • For Procore, HubSpot and QuickBooks, a Fabric pipeline runs a Python notebook that calls notebookutils.credentials.getSecret. Key Vault references in Fabric connections don't support these APIs.
  • A Notebook activity in a pipeline reads the vault as the pipeline's last modified user. Use the same account for the Fabric workspace role and the Key Vault role, and test after anyone edits the pipeline.
  • Revoking access is one change: remove the partner's role assignment on the vault under Access control (IAM). The secrets and source credentials stay as they are.
  • An F2 capacity is enough to start. At $0.18 per CU-hour pay-as-you-go in East US, it's about $262.80 a month running 24/7, and you can pause it.

88 seconds · From a Build Flows walkthrough

Add each API credential as a named Key Vault secret

Shows Objects > Secrets > Generate/Import and the Create a secret form: the exact lowercase-with-dashes name, the pasted value, and no dates or content type. It creates one secret (procore-client-id). Repeat the same steps for the other secrets.

Read the clip transcript

So now we need to add these secrets. Go to Objects, then Secrets, then Generate/Import. We'll name each one of them. Here's the secret name. In this case, it's the Procore client ID. For the secret value, we give it the actual client ID. So we go find the client ID for Procore and paste it into the secret value. You could set activation or expiration dates, but you don't need to. Then just create it. That's done. Now do the same for every credential you're putting into Key Vault. Names are lowercase with dashes, exactly as listed. No spaces or quotes around values. Leave content type and dates empty. That's how you store all of your secrets in Key Vault.

Captions adapted from the source video; proper names may reflect automatic transcription. Original segment: 25:43–27:10. Watch at the source.

38 seconds · From a Build Flows walkthrough

Find your Vault URI and tenant ID to send back

Shows where the Vault URI and the directory (tenant) ID sit on the Key Vault Overview page, so you can send them instead of any secret values. The IDs are blurred in the video. The subscription and resource group names are on the same page.

Read the clip transcript

From there, you reply with the Vault URI. So where do you find the Vault URI and the tenant ID? For the Vault URI, open the vault's Overview page. This is the Vault URI the integration uses. It's your vault name followed by .vault.azure.net. Then the directory (tenant) ID. That's your Microsoft Entra ID.

Captions adapted from the source video; proper names may reflect automatic transcription. Original segment: 27:27–28:05. Watch at the source.

30 seconds · From a Build Flows walkthrough

Grant access to the vault instead of sending secrets

Explains why you never send the secret values: you give one account access to the vault, and a Fabric pipeline signs in as that account and reads each secret by name. It is a high-level explanation, not a pipeline build.

Read the clip transcript

You're not handing over the credentials you pulled from any of these systems. What you're providing is just access for the one account you provisioned. The secrets can then be referenced by name in Fabric. A Fabric pipeline signs in as the Build Flows account that was created and reads them.

Captions adapted from the source video; proper names may reflect automatic transcription. Original segment: 28:57–29:27. Watch at the source.

You have an Azure Key Vault and read-only credentials for Procore, HubSpot and QuickBooks Online. Now the values have to go into the vault under names a pipeline can find, and the partner building that pipeline needs enough information to reach them. This is where setups usually drift. Someone names a secret Procore Client ID, someone else pastes a value with a trailing space, and the "quick check" ends with a client secret sitting in an email thread.

This guide covers that last stretch. You add each secret under Objects → Secrets → + Generate/Import, using one fixed set of names. You send back four pointers and never a value. You learn how a Microsoft Fabric pipeline actually reads those secrets when it runs, and how to cut off access later by removing one role assignment. It also covers the Fabric workspace access that has to be in place first.

Ten named secrets for Procore, HubSpot and QuickBooks Online sit inside an Azure Key Vault in your tenant. A Fabric pipeline signs in with an approved account and reads each secret by name at run time. A separate message to the partner carries only the Vault URI, tenant ID, subscription and resource group, and the account given access, with secret values marked as never sent.Values stay in your vault. Only names and pointers travel.

This is the end of Step 3 and the start of Step 4 in the secure API credential setup guide. If the vault doesn't exist yet, start with Azure Key Vault setup for data integrations. If you still need the credentials themselves, see the Procore DMSA, HubSpot service key and QuickBooks Online guides.

Before you start: Fabric workspace access

The pipeline that reads your vault lives in a Fabric workspace, and that workspace needs to be running on a capacity. Sort this out first. It takes about 10 minutes.

Give the partner a workspace role

  1. Sign in at app.fabric.microsoft.com and open (or create) the workspace, for example Reporting Analytics.
  2. On the workspace command bar, select Manage access. On narrow screens it sits under More options (...).
  3. Select Add people or groups.
  4. Enter the partner's account, choose Admin, and select Add.

Only workspace Admins and Members see Manage access. A Member can add people as Member, Contributor or Viewer, but only an Admin can add another Admin. Microsoft notes that role changes take effect the next time the person signs in to Fabric, so a "can't see the workspace" message right after the invite usually goes away after the person signs out and back in.

Why Admin? Microsoft's role table shows that Contributor can already create, edit and run lakehouses, notebooks and pipelines. Admin adds the workspace-level jobs: creating a workspace identity, connecting the workspace to Git, updating or deleting the workspace, and adding or removing other admins. The setup guide asks for Admin so none of those becomes a blocker mid-build. If your IT policy prefers Member or Contributor, that works for most builds. Agree on it up front.

Guest invite or an account on your domain

You can invite the partner's existing work account as a Microsoft Entra B2B guest, or create an account for them on your own domain. Both work with Fabric and Key Vault. The differences show up in licensing, MFA and offboarding.

Guest invite (for example charley@buildflows.ai)Account on your domain (for example buildflows@yourcompany.com)
Who controls sign-in and MFAThe partner's home tenant, unless your tenant requires its own MFA for guestsYou
Tenant settings to checkGuest invitations allowed, and guests allowed in FabricNone beyond normal users
LicensingDepends on the guest's license and your capacity; check before go-liveYou assign the license, so it's predictable
OffboardingRemove the guest and its role assignmentsDisable one account you own
Which identity runs the pipelineThe guestYour account, which you can hand to someone else later

The setup guide's own advice is that an account on your domain makes licensing and offboarding simpler. Guest account vs domain account for consultant access walks through both paths, including the tenant settings that block guests.

Whichever you pick, use the same account for the Fabric workspace role and the Key Vault role assignment. The pipeline signs in to the vault as that account, so the two have to match.

Capacity: F2 is enough to start

Fabric items need a capacity behind the workspace. For a contractor pulling Procore, HubSpot and QuickBooks data once or twice a day, an F2 (2 capacity units) is a reasonable start.

On November 14, 2026, the Azure Retail Prices API listed Fabric capacity at $0.18 per CU-hour pay-as-you-go in East US. For an F2 that is 2 × $0.18 × 730 hours, or about $262.80 a month if it runs 24/7. Pay-as-you-go capacity can be paused, and you aren't billed for compute while it's paused. A one-year reservation brings F2 to roughly $156 a month. Prices vary by region and change over time, so check the Fabric pricing page for your region. Is Microsoft Fabric F2 enough for construction reporting? covers pausing, reservations, Power BI viewer licensing and when to scale up.

Put the capacity and the Key Vault in the same region if you can. It keeps your data in one geography and keeps the network path simple.

Step 1: Add each secret to the vault

You need the Key Vault Secrets Officer role on the vault to do this. Owning the subscription isn't enough under the RBAC permission model. If + Generate/Import is greyed out, or you see "not authorized", the role is missing or hasn't applied yet. The Key Vault setup guide covers the role assignment.

The walkthrough below shows the steps for the first secret, procore-client-id.

  1. In the Azure portal, open your vault.
  2. In the left menu, select Objects → Secrets.
  3. Select + Generate/Import.
  4. Fill in the Create a secret form:
    • Upload options: Manual
    • Name: the exact name from the table below, for example procore-client-id
    • Secret value: paste the value. Nothing before or after it.
    • Content type: leave empty
    • Set activation date and Set expiration date: leave unchecked
    • Enabled: Yes
  5. Select Create.

The Azure Key Vault Create a secret form. Upload options is set to Manual, Name is procore-client-id, Secret value is masked, Content type is empty, the activation and expiration date boxes are unchecked, Enabled is Yes, and the Create button is at the bottom.Create a secret: Manual, the exact name, the value, and nothing else.

The portal returns you to the Secrets list with a confirmation banner, and the new secret shows as Enabled.

The Key Vault Secrets blade with the Generate/Import button in the toolbar, a notification saying the secret procore-client-id has been successfully created, and procore-client-id listed with status Enabled.The secret is created and enabled. Repeat for each name in the table.

Repeat for every row in the table. Have the credentials open in one tab and the vault in another, and copy each value straight across. Some values are shown only once at the source, such as a Procore client secret or a HubSpot key. Paste them into the vault before you close that screen.

Why leave the dates empty? Microsoft describes a secret's expiration date as informational. Microsoft documents that a read still returns an expired or not-yet-active secret, and a date set here has no link to when Procore, HubSpot or Intuit actually expire a credential. The dates add a second, misleading source of truth and nothing else. Track real expiry dates separately. Monitoring integration credentials after go-live shows one way.

The secret names

Use these names exactly. They're what the pipeline code asks for, so a typo here is a failed run later.

Ten Key Vault secret names grouped by system. Procore: procore-client-id, procore-client-secret, procore-company-id and procore-base-url. HubSpot: hubspot-service-key. QuickBooks Online: quickbooks-client-id, quickbooks-client-secret, quickbooks-realm-id, quickbooks-environment and quickbooks-refresh-token, which is added during the setup call. The naming rules sit underneath: lowercase, dashes only, system name first, no quotes or spaces around values.Nine secrets you add yourself, plus one added on the call.

#Secret nameValueWhere to find it
1procore-client-idClient IDProcore Developer Portal → your app → production credentials
2procore-client-secretClient secretSame screen. Copy it straight into the vault
3procore-company-idCompany ID, numbers onlyThe long number in your Procore address, for example app.procore.com/1234567/company/home (on newer pages it follows /companies/)
4procore-base-urlhttps://api.procore.comType exactly as shown. Sandbox apps use https://sandbox.procore.com
5hubspot-service-keyThe service key valueHubSpot Settings → Integrations → Service Keys (or Development → Keys → Service keys) → your key → Copy
6quickbooks-client-idClient IDdeveloper.intuit.com → your app → Keys and credentials (Production)
7quickbooks-client-secretClient secretSame screen
8quickbooks-realm-idCompany (realm) IDQuickBooks → ⚙ Settings → Additional info. Admins also see it on the billing page (Account and settings → Billing & subscription in older menus)
9quickbooks-environmentproductionType exactly as shown. Use sandbox only for a sandbox company
10quickbooks-refresh-tokenRefresh tokenSkip for now. It's added during the setup call, after a QuickBooks admin clicks Connect once

So "all 9 done" means rows 1 to 9. The refresh token comes from the one-time OAuth connection, and QuickBooks issues new refresh tokens over time. That's why whoever runs the pipeline needs to be able to write that one secret. More on that below.

A note on the HubSpot name. Earlier versions of the setup guide asked for a private app token stored as hubspot-private-app-token. HubSpot has since moved simple integrations to service keys, and new legacy private apps can no longer be created. The walkthrough video shows the service key screen. Store the service key as hubspot-service-key. If your vault already has hubspot-private-app-token from an earlier setup, keep that name and tell your partner. A renamed secret breaks the pipeline, while a consistent old name doesn't. See HubSpot service key for read-only CRM API access.

Not sure where an ID lives? Where to find every integration ID has screenshots for each one.

Naming rules

Key Vault's own rules are short. A secret name is 1 to 127 characters, using only letters, numbers and dashes (0-9, a-z, A-Z, -). No spaces, no underscores, no dots. Names are case-insensitive, so Procore-Client-ID and procore-client-id are the same secret.

On top of that, follow these conventions:

  • Lowercase, with dashes, exactly as in the table. Case doesn't matter to Key Vault, but humans compare names by eye in logs and checklists.
  • System name first. procore-, hubspot-, quickbooks-. The Secrets list sorts alphabetically, so each system's secrets group together.
  • No environment suffix in the name. Keep sandbox and production in separate vaults instead of procore-client-id-prod and procore-client-id-dev. The code stays the same and only the Vault URI changes.
  • Never put a value in the name. Names show up in logs, audit events and error messages. procore-company-1234567 leaks the ID.
  • No quotes or spaces around values. A pasted "abc123" or abc123 is a different value, and the API will reject it with a confusing 401.
  • To change a value, add a new version. Open the secret and select + New Version. Don't delete it and create it again. The name stays the same and readers get the latest version. Rotating secrets without breaking pipelines covers this in detail.

The API credential setup checklist generates the full name list for the systems you're connecting, so you can copy names instead of typing them.

Step 2: Send back the pointers, never the values

Once the secrets are in, your partner needs four things to connect, and none of them is a secret value. All of them are on the vault's Overview page under Essentials.

  1. Open the vault and select Overview.
  2. Copy the Vault URI. It has the form https://<vault-name>.vault.azure.net/, for example https://kv-reporting-analytics.vault.azure.net/. Use the copy icon next to it.
  3. Copy the Directory ID. This is your Microsoft Entra tenant ID. It's also shown as Tenant ID under Microsoft Entra ID → Overview.
  4. Note the Subscription name and the Resource group name.

The Essentials section of a Key Vault Overview page, showing where Resource group, Subscription, Subscription ID, Vault URI and Directory ID sit. Their values are blurred. Sku (Pricing tier) shows Standard, Directory Name shows buildflows.ai, Soft-delete is Enabled and Purge protection is Disabled.Everything you send back is on this one panel. The values are blurred here.

In the walkthrough video the Vault URI is described as "your resource group" followed by .vault.azure.net. It's the vault name, not the resource group name. Copy it from the Overview page and you can't get it wrong.

Then send a short reply with this list:

ItemExampleWhy the partner needs it
Vault URIhttps://kv-reporting-analytics.vault.azure.net/The address the pipeline code reads from
Directory (tenant) IDA GUIDSigns in against your tenant, not the partner's
Subscription and resource groupReporting / rg-reporting-analyticsTo find the vault in the portal and check its settings
Account given accessThe email from the role assignmentConfirms which identity the pipeline must run as
Secrets added"All 9 done", or the names that are missingSo nobody has to guess which runs will fail

Two panels from the setup guide. Reply with: Vault URI, Directory tenant ID, subscription and group, account given access, and secrets added, with a note to never send the secret values themselves. How Fabric connects to it: a Fabric pipeline signs in as the approved account and reads your Key Vault, and removing one role assignment cuts off access.The reply checklist and the connection model, from the setup guide.

Is the tenant ID sensitive? It isn't a credential. Nobody can sign in with it alone. But it identifies your organization, so don't post it publicly. The same goes for the subscription ID. Email is fine for these pointers. It is not fine for anything from the vault itself.

A trust boundary diagram. Inside your Azure tenant: the Key Vault holding ten secret values. Crossing the boundary in a reply email: the Vault URI, tenant ID, subscription and resource group, account given access, and the list of secret names added. Blocked at the boundary: client secrets, the HubSpot service key and the QuickBooks refresh token.Pointers cross the boundary. Values never do.

If someone asks you to "just send the key so I can test it", say no and offer a screen-share instead. Never email an API key explains the full handoff and what to do if a value has already been sent.

How a Fabric pipeline reads the secrets at run time

Once the partner has the Vault URI and a role on the vault, nothing about the secrets is stored in Fabric. Each run signs in, reads each secret by name, uses it in memory and discards it. Fabric gives you three ways to do that. For Procore, HubSpot and QuickBooks, one of them clearly fits best.

Option 1: a notebook calls getSecret (the one we use)

A Fabric notebook reads a secret with one line:

VAULT_URL = "https://kv-reporting-analytics.vault.azure.net/"  # the Vault URI you sent back

client_id = notebookutils.credentials.getSecret(VAULT_URL, "procore-client-id")

The pipeline runs that notebook with a Notebook activity, on a schedule. The notebook gets a Procore token with client credentials, calls HubSpot with the service key, and refreshes QuickBooks. When QuickBooks returns a new refresh token, the notebook saves it back with notebookutils.credentials.putSecret.

Things to know, from Microsoft's NotebookUtils docs:

  • getSecret works in Python notebooks and Spark notebooks (PySpark, Scala, R). putSecret works only in Python notebooks. Spark notebooks don't support it, even when they run PySpark. The QuickBooks token rotation is the reason to use a Python notebook.
  • getSecret uses the credentials of whoever the notebook runs as. The secret comes back as plain text in memory.
  • Fabric tries to redact a secret value printed in cell output. Microsoft calls this a best-effort safeguard, not a security boundary. Never print, log or display() a secret, and never pass one as a notebook parameter.
  • You'll see mssparkutils.credentials.getSecret in older posts. notebookutils is the current name.

The full code for all three systems is in read Azure Key Vault secrets in a Fabric notebook.

Who the notebook runs as

This is the part that decides which account needs the vault role. Microsoft's notebook docs list three cases:

How the run startsIdentity that reads the vault
Someone presses Run in the notebookThat person
A notebook scheduleThe user who created or last updated the schedule
A Notebook activity in a pipelineThe pipeline's last modified user, not its owner and not the notebook's owner

That's what the setup guide means by "the pipeline signs in with the account you approved." The partner's account builds and last edits the production pipeline, so the scheduled run reads the vault as that account. That account is the one in your role assignment.

The catch: if someone else edits the pipeline later, even just a retry setting, the next run reads the vault as them. If they have no role on the vault, the run fails with a 403 from Key Vault. Agree who owns the production pipeline and test after every edit.

A sequence of six steps. One: a schedule triggers the Fabric pipeline. Two: the Notebook activity starts and runs as the pipeline's last modified user, the approved account. Three: the notebook calls getSecret with the Vault URI and a secret name. Four: Key Vault checks the account's role assignment on this vault. Five: the value returns into memory only. Six: the notebook calls Procore, HubSpot or QuickBooks with read-only access and writes raw data to the lakehouse. A side branch shows that with no role assignment, step four returns 403 Forbidden and the run stops.Every scheduled run signs in, reads by name, and keeps the value in memory only.

Which role that account needs

  • Key Vault Secrets User lets an identity read secret values and nothing else. It's the least-privilege role for a pipeline that only reads.
  • Key Vault Secrets Officer can also create, update and delete secrets. The setup guide asks for Officer because the pipeline writes the rotated QuickBooks refresh token back with putSecret, and because the partner adds that token during the setup call.

If you'd rather keep write access tighter, there's a middle path. Give the partner's account Officer during setup. Afterwards, change it to Secrets User and move the QuickBooks refresh into a step that runs as an identity you control. It's more work, and most small teams keep Officer scoped to this one vault. Either way, assign the role on the vault itself, not on the resource group or subscription. In the walkthrough video, the narration says the role was assigned "for the subscription". The role assignment list shows it's scoped to This resource, the vault, which is correct.

Option 2: Azure Key Vault references in Fabric connections

Fabric Data Factory can also store a pointer to a Key Vault secret inside a connection, so copy activities and dataflows can authenticate without anyone typing a password into Fabric. To set it up:

  1. In Fabric, select the gear icon → Manage connections and gateways.
  2. On the Azure Key Vault references tab, select New. Enter a Reference alias, the vault's Account Name, and sign in with OAuth 2.0 under Edit credentials. Select Create.
  3. On the Connections tab, select New → Cloud, choose a supported connection type, and select the AKV reference icon next to the password or secret field. Pick the reference and type the secret name.

What Microsoft's docs say about it today:

  • Fabric stores only the vault URI, the secret name and the credential used to reach the vault. It never stores the secret value.
  • It always reads the latest version of a secret. You can't pin a version.
  • You can't create these connections from the Get Data pane, only from Manage connections and gateways.
  • The vault must be reachable from the public network, or through an on-premises data gateway with line of sight to its private endpoint.
  • The person creating the reference needs read access to the vault's secrets. The page lists "at least Key Vault Certificate User" and also asks for Get and List permissions. In an RBAC vault, Key Vault Secrets User is the role that grants reading secret values, so if a reference won't come online, check that role first.

The limitation that matters here is the supported connector list. It covers Azure Blob Storage, ADLS Gen2, Azure Table Storage, Databricks, Dataverse, OData, Oracle Cloud Storage, PostgreSQL, SharePoint Online list, Snowflake, SQL Server and Web, plus Azure DevOps and GitHub for source control. There's no Procore, HubSpot or QuickBooks connector in it. The Web connector supports only basic and service principal authentication with a Key Vault reference. That doesn't fit a Procore client-credentials token exchange, a HubSpot bearer key or a QuickBooks refresh token. Key Vault references are great for a SQL password or a storage key, but they won't carry these three APIs.

Option 3: Fabric connections inside notebooks (preview)

Fabric can also hand a connection's credentials to a notebook with notebookutils.connections.getCredential. You have to tick Allow Code-First Artifacts like Notebooks to access this connection (Preview) when you create the connection, and you can't change it later. OAuth 2.0 connections aren't supported. For Key Vault connections that use a service principal or workspace identity, Microsoft's page asks for vault access policies, which is the legacy model this setup avoids. For now, getSecret is simpler.

Side by side

Notebook getSecretKey Vault reference in a connectionConnection in a notebook
StatusGenerally availableGenerally availablePreview
Works for Procore, HubSpot, QuickBooks REST callsYesNo supported connectorNot for OAuth 2.0
Can write a rotated token backYes, putSecret in a Python notebookNoNo
Identity that reads the vaultThe notebook's run identityThe credential saved on the referenceThe connection's credential
Version readLatest unless you code otherwiseAlways latestDepends on the connection
Good forAPI integrations like this oneSQL, storage, Snowflake and similar sourcesReusing an existing non-OAuth connection

Revoke access by removing one role assignment

Here's the payoff for doing it this way. The partner never had the values, so cutting them off doesn't need any secret to change. Their access is one role assignment on one vault.

  1. In the Azure portal, open the vault.
  2. Select Access control (IAM) → Role assignments.
  3. Find the Key Vault Secrets Officer (or Secrets User) row for the partner's account, scoped to This resource.
  4. Tick it, select Delete on the toolbar (some portal versions label it Remove), then confirm.

The Key Vault Access control (IAM) Role assignments tab. An Owner assignment is listed as inherited, and a Key Vault Secrets Officer assignment for charley@buildflows.ai is scoped to This resource.One row grants access to this vault. Removing it is the off switch.

From then on, the partner's account gets 403 Forbidden on every read, and the scheduled pipeline fails at its first getSecret. Your Procore, HubSpot and QuickBooks credentials keep working for anything else that uses them. Microsoft notes that role assignment changes can take up to 10 minutes to apply.

Before and after. Before: the approved account's role assignment connects the Fabric pipeline to the Key Vault and the secrets are read. After: that one role assignment is removed, the pipeline's next read returns 403 Forbidden, and the vault, the secrets and the source system credentials are unchanged.Remove one row and the partner is out. Nothing else needs to change.

Two things removing the role does not do:

  • It doesn't un-read values already read. A run that was in progress still has values in memory until it ends. If you believe a value was copied out, rotate it at the source and add a new version in the vault.
  • It doesn't remove Fabric access. For a full offboarding, also remove the account from the workspace under Manage access, and reassign the pipeline and schedules to someone who still has a vault role, or they'll stop working. Then disable the account, or remove the guest.

Common mistakes

  • Names that almost match. procore_client_id, Procore Client ID (not allowed anyway) or procore-clientid. The pipeline asks for an exact name. Copy from the table or the checklist tool.
  • Whitespace or quotes in values. A trailing space from a copy, or quotes around the value, gets you a 401 from the API that looks like a bad credential.
  • Sending values "just to check". Send the Vault URI and the list of names you filled. Your partner can confirm each secret exists without ever seeing its value.
  • Using a different account for Fabric and the vault. The pipeline reads the vault as the account that last edited it. If that account has the workspace role but not the vault role, every run fails with 403.
  • Editing the production pipeline as someone without a vault role. You just changed the identity it runs as. Test a run after every edit.
  • Assigning the role at subscription scope. That grants access to every vault in the subscription, now and later. Assign it on the vault.
  • Expecting Key Vault references to cover Procore, HubSpot or QuickBooks. They don't. Use a notebook with getSecret.
  • Reading secrets in a Spark notebook and then trying putSecret. It isn't supported there. Use a Python notebook for anything that writes the QuickBooks token back.
  • Deleting a secret to change it. Add a new version instead. A deleted secret sits in soft delete and blocks reusing the name until it's purged or recovered.
  • Running the F2 around the clock when nobody needs it. Pay-as-you-go capacity can be paused. Schedule loads within the hours it runs, or reserve it if it truly runs all month.

Checklist

  • Fabric workspace created on an F2 (or larger) capacity, in the same region as the vault if possible
  • Partner added under Manage access → Add people or groups as Admin (or the role you agreed)
  • Decided: guest invite or an account on your domain, and the same account used for Fabric and Key Vault
  • Key Vault Secrets Officer assigned to you and the partner's account, scoped to the vault
  • Secrets added under Objects → Secrets → + Generate/Import with the exact names
  • procore-client-id, procore-client-secret, procore-company-id, procore-base-url
  • hubspot-service-key (or the existing hubspot-private-app-token, and the partner told which)
  • quickbooks-client-id, quickbooks-client-secret, quickbooks-realm-id, quickbooks-environment
  • quickbooks-refresh-token left for the setup call
  • No quotes or spaces in values, content type and dates left empty
  • Reply sent with Vault URI, Directory (tenant) ID, subscription and resource group, account given access, and secrets added
  • No secret value sent by email, chat, text or document
  • Agreed who owns and edits the production pipeline
  • You know where the role assignment is, so you can remove it later

Doing it together

If you'd rather not do this alone, Build Flows can walk through it with you on a short screen-share. You stay signed in to your own tenant and type every value yourself. We check the names, the role scope and the reply details as we go, and add the QuickBooks refresh token when your admin clicks Connect. Email charley@buildflows.ai or start at buildflows.ai.

Related guides

References

Frequently asked questions

What names should I use for Procore, HubSpot and QuickBooks secrets in Azure Key Vault?

Use procore-client-id, procore-client-secret, procore-company-id, procore-base-url, hubspot-service-key, quickbooks-client-id, quickbooks-client-secret, quickbooks-realm-id, quickbooks-environment and quickbooks-refresh-token. Key Vault allows 1 to 127 letters, numbers and dashes, and names are case-insensitive. Keep them lowercase with the system name first so they group together in the portal.

Is it safe to email the Vault URI and tenant ID?

Yes. Neither is a credential, and nobody can read a secret without a role assignment on the vault that you control. They do identify your organization, so don't post them publicly. Never email a secret value, even once to test it.

How does a Microsoft Fabric notebook read a secret from Azure Key Vault?

Call notebookutils.credentials.getSecret with the Vault URI and the secret name. It signs in as whoever the notebook runs as and returns the value as plain text in memory. Don't print or log it. Fabric's output redaction is best-effort, not a security boundary. The older name for the same utility is mssparkutils.

Which account does a scheduled Fabric pipeline use to read Key Vault?

A notebook run by a pipeline's Notebook activity runs as the pipeline's last modified user, not its owner. A notebook schedule runs as whoever created or last updated the schedule. That account needs a Key Vault role on the vault. If someone else edits the pipeline, the next run uses their identity.

Can I use Azure Key Vault references in Fabric connections for Procore, HubSpot or QuickBooks?

Not today. Key Vault references work with a set list of connectors, such as SQL Server, Snowflake, Azure storage and Web. The Web connector supports only basic and service principal authentication with a reference. Procore client credentials, HubSpot bearer keys and QuickBooks refresh tokens need a notebook that calls getSecret.

Does the pipeline account need Key Vault Secrets Officer or Secrets User?

Secrets User is enough to read. The setup uses Secrets Officer because QuickBooks issues new refresh tokens, and the notebook writes them back with putSecret. putSecret works only in Python notebooks. Either way, scope the role to the vault, not the subscription.

How do I cut off a consultant's access to my Key Vault?

Open the vault, go to Access control (IAM) > Role assignments, select their row and choose Delete (Remove in some portal versions). The change can take up to 10 minutes to apply, and after that their reads return 403. For a full offboarding, also remove them from the Fabric workspace, reassign their pipelines and schedules, and rotate any value you think was copied.

Next step

Need this connection in your environment?

Scope one integration: the records, direction, timing, and business rules behind the connection.

Prefer email? charley@buildflows.ai

Keep learning