<?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 Databricks online store - Login to Azure SQL Database with Service Principal in Machine Learning</title>
    <link>https://community.databricks.com/t5/machine-learning/databricks-online-store-login-to-azure-sql-database-with-service/m-p/21943#M1231</link>
    <description>&lt;P&gt;I want to use Databricks Online Store with Azure SQL Database, however I am unable to autenthicate through Databricks Feature Store API. I need to use Service Principal credentials.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using Application ID as username and Secret as password, but no luck - `com.microsoft.sqlserver.jdbc.SQLServerException: Login failed for user &amp;amp;#39;[REDACTED]&amp;amp;#39;. ClientConnectionId:some-id-x-x-`.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried to generate AAD access Token and use it as a password, however I am getting&amp;nbsp;&lt;/P&gt;&lt;P&gt;`password exceeds maximum length of 128characters`..&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;When I use the same credentials to test it via JayDeBeApi everything works...&lt;/P&gt;&lt;P&gt;Code I am using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;from databricks.feature_store.online_store_spec import AzureSqlServerSpec
from databricks.feature_store import FeatureStoreClient
&amp;nbsp;
username = "application-id"
password = "application-secret"
tenantId = "tenant-id"
server_name = "server-name.database.windows.net"
port = "1433"
db_name = "database-name"
&amp;nbsp;
fs = FeatureStoreClient()
&amp;nbsp;
online_store = AzureSqlServerSpec(
    hostname=server_name,
    port=1433,
    database_name=db_name,
    user=username,
    password=password,
    table_name="TableName",
)
&amp;nbsp;
fs.publish_table(
  name='feature_store.TableName',
  online_store=online_store,
  mode='merge'
)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 28 Apr 2022 11:32:17 GMT</pubDate>
    <dc:creator>romanzdk</dc:creator>
    <dc:date>2022-04-28T11:32:17Z</dc:date>
    <item>
      <title>Databricks online store - Login to Azure SQL Database with Service Principal</title>
      <link>https://community.databricks.com/t5/machine-learning/databricks-online-store-login-to-azure-sql-database-with-service/m-p/21943#M1231</link>
      <description>&lt;P&gt;I want to use Databricks Online Store with Azure SQL Database, however I am unable to autenthicate through Databricks Feature Store API. I need to use Service Principal credentials.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using Application ID as username and Secret as password, but no luck - `com.microsoft.sqlserver.jdbc.SQLServerException: Login failed for user &amp;amp;#39;[REDACTED]&amp;amp;#39;. ClientConnectionId:some-id-x-x-`.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried to generate AAD access Token and use it as a password, however I am getting&amp;nbsp;&lt;/P&gt;&lt;P&gt;`password exceeds maximum length of 128characters`..&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;When I use the same credentials to test it via JayDeBeApi everything works...&lt;/P&gt;&lt;P&gt;Code I am using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;from databricks.feature_store.online_store_spec import AzureSqlServerSpec
from databricks.feature_store import FeatureStoreClient
&amp;nbsp;
username = "application-id"
password = "application-secret"
tenantId = "tenant-id"
server_name = "server-name.database.windows.net"
port = "1433"
db_name = "database-name"
&amp;nbsp;
fs = FeatureStoreClient()
&amp;nbsp;
online_store = AzureSqlServerSpec(
    hostname=server_name,
    port=1433,
    database_name=db_name,
    user=username,
    password=password,
    table_name="TableName",
)
&amp;nbsp;
fs.publish_table(
  name='feature_store.TableName',
  online_store=online_store,
  mode='merge'
)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 11:32:17 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/databricks-online-store-login-to-azure-sql-database-with-service/m-p/21943#M1231</guid>
      <dc:creator>romanzdk</dc:creator>
      <dc:date>2022-04-28T11:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks online store - Login to Azure SQL Database with Service Principal</title>
      <link>https://community.databricks.com/t5/machine-learning/databricks-online-store-login-to-azure-sql-database-with-service/m-p/21944#M1232</link>
      <description>&lt;P&gt;no one?&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2022 08:13:45 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/databricks-online-store-login-to-azure-sql-database-with-service/m-p/21944#M1232</guid>
      <dc:creator>romanzdk</dc:creator>
      <dc:date>2022-05-02T08:13:45Z</dc:date>
    </item>
  </channel>
</rss>

