<?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 Re: Secret Creation for Service Principal using API in Administration &amp; Architecture</title>
    <link>https://community.databricks.com/t5/administration-architecture/secret-creation-for-service-principal-using-api/m-p/112229#M3108</link>
    <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/83510"&gt;@AnkurMittal008&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In general, I do not recommend using tokens anymore. Instead, if you want to log in via databricks cli, you can use this command:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;databricks auth login --host https://accounts.azuredatabricks.net/ --account-id &amp;lt;YOUR_ACCOUNT_ID&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;This will open a web browser, and you can authenticate. (This is an example with Azure Databricks)&lt;/P&gt;&lt;P&gt;If you want to run an application, use M2M-Authentication. Have a look at the documentation here: &lt;A href="https://docs.databricks.com/aws/en/dev-tools/auth/" target="_blank"&gt;https://docs.databricks.com/aws/en/dev-tools/auth/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope, that helps.&lt;/P&gt;</description>
    <pubDate>Tue, 11 Mar 2025 05:52:07 GMT</pubDate>
    <dc:creator>Stefan-Koch</dc:creator>
    <dc:date>2025-03-11T05:52:07Z</dc:date>
    <item>
      <title>Secret Creation for Service Principal using API</title>
      <link>https://community.databricks.com/t5/administration-architecture/secret-creation-for-service-principal-using-api/m-p/112228#M3107</link>
      <description>&lt;P&gt;There is API available to create a secret for Service Principal.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;/api/2.0/accounts/{account_id}/servicePrincipals/{service_principal_id}/credentials/secrets&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV&gt;Can anyone please help what has to be passed as authentication for this API ?&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;This is looking a Account level API so i think we will not be able to pass Personal access token of a User which is normally created from workspace.&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 11 Mar 2025 05:22:49 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/secret-creation-for-service-principal-using-api/m-p/112228#M3107</guid>
      <dc:creator>AnkurMittal008</dc:creator>
      <dc:date>2025-03-11T05:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: Secret Creation for Service Principal using API</title>
      <link>https://community.databricks.com/t5/administration-architecture/secret-creation-for-service-principal-using-api/m-p/112229#M3108</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/83510"&gt;@AnkurMittal008&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In general, I do not recommend using tokens anymore. Instead, if you want to log in via databricks cli, you can use this command:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;databricks auth login --host https://accounts.azuredatabricks.net/ --account-id &amp;lt;YOUR_ACCOUNT_ID&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;This will open a web browser, and you can authenticate. (This is an example with Azure Databricks)&lt;/P&gt;&lt;P&gt;If you want to run an application, use M2M-Authentication. Have a look at the documentation here: &lt;A href="https://docs.databricks.com/aws/en/dev-tools/auth/" target="_blank"&gt;https://docs.databricks.com/aws/en/dev-tools/auth/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope, that helps.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2025 05:52:07 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/secret-creation-for-service-principal-using-api/m-p/112229#M3108</guid>
      <dc:creator>Stefan-Koch</dc:creator>
      <dc:date>2025-03-11T05:52:07Z</dc:date>
    </item>
  </channel>
</rss>

