<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Funtion app to access warehouse with managed identity or other auth ways in Data Warehouse</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Funtion-app-to-access-warehouse-with-managed-identity-or-other/m-p/4999463#M4207</link>
    <description>&lt;P&gt;I am now trying to get connection from function app to warehouse.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can do it once and only once since the MI will be blocked by default after the successful connection.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is said that there is no email address with the service principal I am using hence the token will expire after the 1st use. Any idea how to get it up and running?&lt;/P&gt;</description>
    <pubDate>Fri, 06 Feb 2026 16:38:46 GMT</pubDate>
    <dc:creator>simontaylor</dc:creator>
    <dc:date>2026-02-06T16:38:46Z</dc:date>
    <item>
      <title>Funtion app to access warehouse with managed identity or other auth ways</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Funtion-app-to-access-warehouse-with-managed-identity-or-other/m-p/4999463#M4207</link>
      <description>&lt;P&gt;I am now trying to get connection from function app to warehouse.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can do it once and only once since the MI will be blocked by default after the successful connection.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is said that there is no email address with the service principal I am using hence the token will expire after the 1st use. Any idea how to get it up and running?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Feb 2026 16:38:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Funtion-app-to-access-warehouse-with-managed-identity-or-other/m-p/4999463#M4207</guid>
      <dc:creator>simontaylor</dc:creator>
      <dc:date>2026-02-06T16:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: Funtion app to access warehouse with managed identity or other auth ways</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Funtion-app-to-access-warehouse-with-managed-identity-or-other/m-p/4999495#M4208</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="51336" data-lia-user-login="simontaylor" class="lia-mention lia-mention-user"&gt;simontaylor&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe you are referring to Fabric User Defined Functions. These do indeed support Managed Identity or Service Principal, as outlined in the blog below.&lt;/P&gt;&lt;P&gt;&lt;A title="https://blog.fabric.microsoft.com/en-us/blog/service-principal-and-private-library-support-for-fabric-user-data-functions/" href="https://blog.fabric.microsoft.com/en-US/blog/service-principal-and-private-library-support-for-fabric-user-data-functions/" target="_blank" rel="noreferrer noopener"&gt;Service principal and private library support for Fabric User data functions | Microsoft Fabric Blo…&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By default, the use of Service Principals is restricted until access is granted at either the workspace or item level, and the relevant tenant setting is enabled to allow Service Principals to use Fabric APIs. If these steps are not completed, the initial attempt may succeed due to cached credentials, but subsequent attempts will fail.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To grant SPN access to the Fabric item, please refer to the following link:&lt;/P&gt;&lt;P&gt;&lt;A title="https://learn.microsoft.com/en-us/fabric/data-warehouse/service-principals" href="https://learn.microsoft.com/en-us/fabric/data-warehouse/service-principals" target="_blank" rel="noreferrer noopener"&gt;Service Principals in Fabric Data Warehouse - Microsoft Fabric | Microsoft Learn&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The tenant setting to enable can be found in:&lt;/P&gt;&lt;P&gt;Fabric Admin Portal &amp;gt; Tenant settings &amp;gt; Developer settings &amp;gt; “Service principals can use Fabric APIs”&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Feb 2026 17:24:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Funtion-app-to-access-warehouse-with-managed-identity-or-other/m-p/4999495#M4208</guid>
      <dc:creator>deborshi_nag</dc:creator>
      <dc:date>2026-02-06T17:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: Funtion app to access warehouse with managed identity or other auth ways</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Funtion-app-to-access-warehouse-with-managed-identity-or-other/m-p/4999533#M4210</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;logging&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;info&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"Trying with UAMI to do auth for fabric data warehouse connection"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;# Put your UAMI Client ID in an env var or config&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;uami_client_id&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;os&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;environ&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;get&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"UAMI_CLIENT_ID"&lt;/SPAN&gt;&lt;SPAN&gt;) &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;# e.g. "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;if&lt;/SPAN&gt; &lt;SPAN&gt;not&lt;/SPAN&gt; &lt;SPAN&gt;uami_client_id&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;raise&lt;/SPAN&gt; &lt;SPAN&gt;ValueError&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"UAMI_CLIENT_ID is not set. Please set it to the User Assigned Managed Identity Client ID."&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;credential&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; ManagedIdentityCredential(&lt;/SPAN&gt;&lt;SPAN&gt;client_id&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;uami_client_id&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;token&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;credential&lt;/SPAN&gt;&lt;SPAN&gt;.get_token(&lt;/SPAN&gt;&lt;SPAN&gt;self&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;SQL_SCOPE&lt;/SPAN&gt;&lt;SPAN&gt;).token&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;token_bytes&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;token&lt;/SPAN&gt;&lt;SPAN&gt;.encode(&lt;/SPAN&gt;&lt;SPAN&gt;"utf-16-le"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;token_struct&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;struct&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;pack&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"&amp;lt;I"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;len&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;token_bytes&lt;/SPAN&gt;&lt;SPAN&gt;)) &lt;/SPAN&gt;&lt;SPAN&gt;+&lt;/SPAN&gt; &lt;SPAN&gt;token_bytes&lt;/SPAN&gt;&lt;SPAN&gt; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;# [1](&lt;A href="https://blog.fabric.microsoft.com/en-us/blog/announcing-support-for-workspace-identity-authentication-in-new-fabric-connectors-and-for-dataflow-gen2/" target="_blank"&gt;https://blog.fabric.microsoft.com/en-us/blog/announcing-support-for-workspace-identity-authentication-in-new-fabric-connectors-and-for-dataflow-gen2/&lt;/A&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;logging&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;info&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;f&lt;/SPAN&gt;&lt;SPAN&gt;"Auth mode resolved to '&lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;SPAN&gt;auth_mode&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;'. Target server: &lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;SPAN&gt;self&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;server&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt; | DB: &lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;SPAN&gt;self&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;database&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;logging&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;info&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"Ready to use the token to try the connection."&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;self&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;connection&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;pyodbc&lt;/SPAN&gt;&lt;SPAN&gt;.connect(&lt;/SPAN&gt;&lt;SPAN&gt;base_conn_str&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;attrs_before&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;SPAN&gt;self&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;SQL_COPT_SS_ACCESS_TOKEN&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;token_struct&lt;/SPAN&gt;&lt;SPAN&gt;})&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;self&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;connection&lt;/SPAN&gt;&lt;SPAN&gt;.autocommit &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;False&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Here is my function app python code to get connections to Data Warehouse. I need to find a way to do auth so that data warehouse connection token won't expire.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 06 Feb 2026 17:49:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Funtion-app-to-access-warehouse-with-managed-identity-or-other/m-p/4999533#M4210</guid>
      <dc:creator>simontaylor</dc:creator>
      <dc:date>2026-02-06T17:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: Funtion app to access warehouse with managed identity or other auth ways</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Funtion-app-to-access-warehouse-with-managed-identity-or-other/m-p/4999534#M4211</link>
      <description>&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Data-Warehouse/Using-Managed-Identity-for-Fabric-Lakehouse-SQL-Analytics/m-p/4812955" target="_blank"&gt;Solved: Using Managed Identity for Fabric Lakehouse SQL An... - Microsoft Fabric Community&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I think the solution of the above link may work for my case. But I am not sure if I need to use key vault cert or federated credentials to do auth.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Feb 2026 17:54:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Funtion-app-to-access-warehouse-with-managed-identity-or-other/m-p/4999534#M4211</guid>
      <dc:creator>simontaylor</dc:creator>
      <dc:date>2026-02-06T17:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: Funtion app to access warehouse with managed identity or other auth ways</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Funtion-app-to-access-warehouse-with-managed-identity-or-other/m-p/4999625#M4212</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="51336" data-lia-user-login="simontaylor" class="lia-mention lia-mention-user"&gt;simontaylor&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for supplying the details. It seems you're using Python to access a SQL Endpoint. Unfortunately&lt;/P&gt;&lt;DIV&gt;Managed Identity (MI) does not currently work when connecting from Azure services (e.g., Azure Container Apps, Functions) to Fabric Lakehouse/Warehouse SQL endpoints. The recommended workaround is to use a Service Principal instead.&lt;DIV&gt;&amp;nbsp;&lt;DIV&gt;You can however store the SPN secret in Key Vault and use Managed Identity to access Key Vault.&amp;nbsp;&lt;DIV&gt;&amp;nbsp;&lt;DIV&gt;I've added small changes to add those bits -&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;LI-CODE lang="python"&gt;import pyodbc
from typing import Callable
from azure.identity import DefaultAzureCredential, ClientSecretCredential
from azure.keyvault.secrets import SecretClient


KEYVAULT_URL = # e.g., "https://my-kv.vault.azure.net"
FABRIC_SERVER = # e.g., "xxxx.datawarehouse.fabric.microsoft.com"
FABRIC_DATABASE = # exact Warehouse/Lakehouse name

# Key Vault secret names (your choice)
TENANT_SECRET_NAME = "fabric-sp-tenant-id"
CLIENT_ID_SECRET_NAME = "fabric-sp-client-id"
CLIENT_SECRET_NAME = "fabric-sp-client-secret"
    

cred = DefaultAzureCredential()  # picks MI in Azure, falls back to other dev creds locally
client = SecretClient(vault_url=KEYVAULT_URL, credential=cred)

tenant_id = with_retry(lambda: client.get_secret(TENANT_SECRET_NAME).value)
client_id = with_retry(lambda: client.get_secret(CLIENT_ID_SECRET_NAME).value)
client_secret = with_retry(lambda: client.get_secret(CLIENT_SECRET_NAME).value)


sp_cred = ClientSecretCredential(tenant_id=tenant_id, client_id=client_id, client_secret=client_secret)
    token = with_retry(lambda: sp_cred.get_token("https://database.windows.net/.default").token)

    # ODBC connection string (no Authentication keyword; we'll pass token via attrs_before)
    conn_str = (
        "Driver={ODBC Driver 18 for SQL Server};"
        f"Server={FABRIC_SERVER};"
        f"Database={FABRIC_DATABASE};"
        "Encrypt=Yes;TrustServerCertificate=No;Connection Timeout=30;"
    )

    # Convert token to the format expected by the SQL Server ODBC driver
    token_bytes = token.encode("utf-16-le")
    token_struct = struct.pack("&amp;lt;I", len(token_bytes)) + token_bytes
    SQL_COPT_SS_ACCESS_TOKEN = 1256

    # Connect with token
    return pyodbc.connect(conn_str, attrs_before={SQL_COPT_SS_ACCESS_TOKEN: token_struct}) &lt;/LI-CODE&gt;&lt;P&gt;Please ensure your MI has appropriate grants to read the SPN details from the KV.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Feb 2026 20:19:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Funtion-app-to-access-warehouse-with-managed-identity-or-other/m-p/4999625#M4212</guid>
      <dc:creator>deborshi_nag</dc:creator>
      <dc:date>2026-02-06T20:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: Funtion app to access warehouse with managed identity or other auth ways</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Funtion-app-to-access-warehouse-with-managed-identity-or-other/m-p/4999628#M4213</link>
      <description>&lt;P&gt;Sorry. SPN + Secret is not my choice. I can't use it in that way.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Feb 2026 20:21:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Funtion-app-to-access-warehouse-with-managed-identity-or-other/m-p/4999628#M4213</guid>
      <dc:creator>simontaylor</dc:creator>
      <dc:date>2026-02-06T20:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: Funtion app to access warehouse with managed identity or other auth ways</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Funtion-app-to-access-warehouse-with-managed-identity-or-other/m-p/4999633#M4214</link>
      <description>&lt;P&gt;&lt;SPAN&gt;AME key vault cert or federated credentials?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Feb 2026 20:24:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Funtion-app-to-access-warehouse-with-managed-identity-or-other/m-p/4999633#M4214</guid>
      <dc:creator>simontaylor</dc:creator>
      <dc:date>2026-02-06T20:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: Funtion app to access warehouse with managed identity or other auth ways</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Funtion-app-to-access-warehouse-with-managed-identity-or-other/m-p/4999639#M4215</link>
      <description>&lt;P&gt;no fed cred - not supported, only option to use AME.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Feb 2026 20:43:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Funtion-app-to-access-warehouse-with-managed-identity-or-other/m-p/4999639#M4215</guid>
      <dc:creator>deborshi_nag</dc:creator>
      <dc:date>2026-02-06T20:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: Funtion app to access warehouse with managed identity or other auth ways</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Funtion-app-to-access-warehouse-with-managed-identity-or-other/m-p/4999648#M4216</link>
      <description>&lt;P&gt;AME can access corp fabric data warehouse?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Feb 2026 21:01:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Funtion-app-to-access-warehouse-with-managed-identity-or-other/m-p/4999648#M4216</guid>
      <dc:creator>simontaylor</dc:creator>
      <dc:date>2026-02-06T21:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: Funtion app to access warehouse with managed identity or other auth ways</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Funtion-app-to-access-warehouse-with-managed-identity-or-other/m-p/4999663#M4217</link>
      <description>&lt;P&gt;not sure what you mean by corp fabric data warehouse, but for any Fabric Warehouse recommended secretless method today for secure app authentication is&amp;nbsp;SPN + Certificate (e.g., AME cert).&lt;/P&gt;</description>
      <pubDate>Fri, 06 Feb 2026 21:36:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Funtion-app-to-access-warehouse-with-managed-identity-or-other/m-p/4999663#M4217</guid>
      <dc:creator>deborshi_nag</dc:creator>
      <dc:date>2026-02-06T21:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: Funtion app to access warehouse with managed identity or other auth ways</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Funtion-app-to-access-warehouse-with-managed-identity-or-other/m-p/4999670#M4218</link>
      <description>&lt;P&gt;My situation doesn't support SPN + cert. I am checking whether I can upload the cert file to deploy it to linux server.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Feb 2026 22:04:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Funtion-app-to-access-warehouse-with-managed-identity-or-other/m-p/4999670#M4218</guid>
      <dc:creator>simontaylor</dc:creator>
      <dc:date>2026-02-06T22:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: Funtion app to access warehouse with managed identity or other auth ways</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Funtion-app-to-access-warehouse-with-managed-identity-or-other/m-p/4999671#M4219</link>
      <description>&lt;P&gt;If I can use the key in the pfx file anc then I think it should work to do auth.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Feb 2026 22:05:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Funtion-app-to-access-warehouse-with-managed-identity-or-other/m-p/4999671#M4219</guid>
      <dc:creator>simontaylor</dc:creator>
      <dc:date>2026-02-06T22:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: Funtion app to access warehouse with managed identity or other auth ways</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Funtion-app-to-access-warehouse-with-managed-identity-or-other/m-p/5005406#M4231</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="51336" data-lia-user-login="simontaylor" class="lia-mention lia-mention-user"&gt;simontaylor&lt;/a&gt;,&lt;BR /&gt;Thank you for posting your query in Microsoft Fabric Community Forum. Also, thanks to&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1445078" data-lia-user-login="deborshi_nag" class="lia-mention lia-mention-user"&gt;deborshi_nag&lt;/a&gt;&amp;nbsp;&amp;nbsp;,&amp;nbsp; for those inputs on this thread.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Direct Managed Identity authentication from Azure services such as Functions or Container Apps to Fabric Warehouse/Lakehouse SQL endpoints is generally not supported currently and that the currently supported production approach is to authenticate using a Service Principal. They are also right that a more secure pattern is to avoid client secrets and instead use certificate-based authentication, with the certificate stored in Key Vault and accessed using the Function App’s Managed Identity.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SQL access tokens are not single-use; they are short-lived (typically about one hour) and must simply be requested again whenever a new connection is created. Token expiry is expected behavior and does not prevent repeated connections as long as the application refreshes the token.&lt;/P&gt;
&lt;P&gt;Given the current platform capabilities, the practical solution is to use a Service Principal authenticated with a certificate (not a secret), store the certificate securely in Key Vault, allow the Function App’s Managed Identity to retrieve it and then obtain a fresh SQL access token for each connection attempt.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Hope the above provided information help you resolve the issue, if you have any further concerns or queries, please feel free to reach out to us.&lt;BR /&gt;Best Regards,&lt;BR /&gt;Community Support Team.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Feb 2026 11:19:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Funtion-app-to-access-warehouse-with-managed-identity-or-other/m-p/5005406#M4231</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2026-02-11T11:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: Funtion app to access warehouse with managed identity or other auth ways</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Funtion-app-to-access-warehouse-with-managed-identity-or-other/m-p/5005769#M4232</link>
      <description>&lt;P&gt;Great. Then can you please let me know how to create the cert in corp?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Feb 2026 15:19:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Funtion-app-to-access-warehouse-with-managed-identity-or-other/m-p/5005769#M4232</guid>
      <dc:creator>simontaylor</dc:creator>
      <dc:date>2026-02-11T15:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: Funtion app to access warehouse with managed identity or other auth ways</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Funtion-app-to-access-warehouse-with-managed-identity-or-other/m-p/5006246#M4233</link>
      <description>&lt;P&gt;I can use MI to get it connected and then write query result to kusto with three consecutive successes now.&lt;/P&gt;&lt;P&gt;Will circle back once I get next one after some hours.&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Feb 2026 00:22:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Funtion-app-to-access-warehouse-with-managed-identity-or-other/m-p/5006246#M4233</guid>
      <dc:creator>simontaylor</dc:creator>
      <dc:date>2026-02-12T00:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: Funtion app to access warehouse with managed identity or other auth ways</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Funtion-app-to-access-warehouse-with-managed-identity-or-other/m-p/5006462#M4234</link>
      <description>&lt;P&gt;MI works. I can close it now.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Feb 2026 05:00:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Funtion-app-to-access-warehouse-with-managed-identity-or-other/m-p/5006462#M4234</guid>
      <dc:creator>simontaylor</dc:creator>
      <dc:date>2026-02-12T05:00:04Z</dc:date>
    </item>
  </channel>
</rss>

