# How to secure API keys in Microsoft Fabric Gen2 dataflows with Azure Key Vault

DevFeed: [How to secure API keys in Microsoft Fabric Gen2 dataflows with Azure Key Vault](<https://devfeed.tech/articles/how-to-secure-api-keys-in-microsoft-fabric-gen2-dataflows-with-azure-key-vault-109775.md>)

Original publisher: [Read original article](<https://www.red-gate.com/simple-talk/data-analytics/how-to-secure-api-keys-in-microsoft-fabric-gen2-dataflows-with-azure-key-vault/>)

Author: John Kerski

Published: 2026-10-30T12:00:00Z

Content type: tutorial

Language: en

Sources: [Simple Talk](<https://devfeed.tech/sources/simple-talk.md>)

Topics: [Secrets Management](<https://devfeed.tech/topics/secrets-management.md>), [API keys](<https://devfeed.tech/topics/api-keys.md>), [secret rotation](<https://devfeed.tech/topics/secret-rotation.md>), [Azure](<https://devfeed.tech/topics/azure.md>), [API](<https://devfeed.tech/topics/api.md>), [Microsoft](<https://devfeed.tech/topics/microsoft.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [api-keys](<https://devfeed.tech/tags/api-keys.md>), [azure](<https://devfeed.tech/tags/azure.md>), [bi](<https://devfeed.tech/tags/bi.md>), [cloud](<https://devfeed.tech/tags/cloud.md>), [data-analysis](<https://devfeed.tech/tags/data-analysis.md>), [data-analytics](<https://devfeed.tech/tags/data-analytics.md>), [database](<https://devfeed.tech/tags/database.md>), [fabric](<https://devfeed.tech/tags/fabric.md>), [featured](<https://devfeed.tech/tags/featured.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [microsoft-fabric](<https://devfeed.tech/tags/microsoft-fabric.md>), [power-bi](<https://devfeed.tech/tags/power-bi.md>), [powerbi](<https://devfeed.tech/tags/powerbi.md>)

## AI overview

The guide describes a Microsoft Fabric Gen2 pattern for keeping API secrets out of dataflow code and source control: store the secret in Azure Key Vault, grant the workspace managed identity the Key Vault Secrets User role, then use a Fabric pipeline to retrieve the secret and pass it into an explicitly enabled public dataflow parameter at runtime. Secure Output and Secure Input mask the secret in pipeline logs, but the value remains a plain string inside the dataflow and must not be persisted or returned. Required parameters make runs fail when the pipeline does not supply a value; optional parameters can fall back to a placeholder. The pattern requires Gen2, pipeline support, and workspace admin rights, and is presented for endpoints without a suitable native OAuth connection; it does not replace available first-party secure connectors. The guide also warns to use a placeholder before Git sync and notes that an Entra client secret used in setup is visible only at creation and expires.

## Source excerpt

Learn how to pass API secrets into Microsoft Fabric Gen2 dataflows using Azure Key Vault, pipelines, and public parameters (no keys in code.)... The post How to secure API keys in Microsoft Fabric Gen2 dataflows with Azure Key Vault appeared first on Simple Talk.