<?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 Call Azure Cognitive Services API from Notebook using Azure Entra ID that is logged on to Databricks in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/call-azure-cognitive-services-api-from-notebook-using-azure/m-p/93920#M38786</link>
    <description>&lt;P&gt;I would like to call Azure Cognitive Services API from Notebook using Azure Entra ID that is logged on to Databricks. The cognitive services key is not available as local authentication for cognitive services is not enables.&lt;/P&gt;</description>
    <pubDate>Mon, 14 Oct 2024 14:50:54 GMT</pubDate>
    <dc:creator>herbblinebury</dc:creator>
    <dc:date>2024-10-14T14:50:54Z</dc:date>
    <item>
      <title>Call Azure Cognitive Services API from Notebook using Azure Entra ID that is logged on to Databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/call-azure-cognitive-services-api-from-notebook-using-azure/m-p/93920#M38786</link>
      <description>&lt;P&gt;I would like to call Azure Cognitive Services API from Notebook using Azure Entra ID that is logged on to Databricks. The cognitive services key is not available as local authentication for cognitive services is not enables.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2024 14:50:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/call-azure-cognitive-services-api-from-notebook-using-azure/m-p/93920#M38786</guid>
      <dc:creator>herbblinebury</dc:creator>
      <dc:date>2024-10-14T14:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: Call Azure Cognitive Services API from Notebook using Azure Entra ID that is logged on to Databr</title>
      <link>https://community.databricks.com/t5/data-engineering/call-azure-cognitive-services-api-from-notebook-using-azure/m-p/94080#M38809</link>
      <description>&lt;P&gt;I have not done this, but as with any api you call programmatically, you will have to do the authentication first (using code in the notebook), then store the token (or whatever auth method you use) and do the actual call.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 11:27:25 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/call-azure-cognitive-services-api-from-notebook-using-azure/m-p/94080#M38809</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2024-10-15T11:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: Call Azure Cognitive Services API from Notebook using Azure Entra ID that is logged on to Databr</title>
      <link>https://community.databricks.com/t5/data-engineering/call-azure-cognitive-services-api-from-notebook-using-azure/m-p/94092#M38810</link>
      <description>&lt;P&gt;Thanks for the response. I am encountering an error when I attempt to obtain a credential from the databricks notebook:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;from azure.identity import DefaultAzureCredential&lt;BR /&gt;import requests&lt;/P&gt;&lt;P&gt;# Initialize DefaultAzureCredential&lt;BR /&gt;credential = DefaultAzureCredential()&lt;/P&gt;&lt;P&gt;# Get a token for Cognitive Services (Text Analytics, for example)&lt;BR /&gt;token = credential.get_token("https://**My Language Service Name**.cognitiveservices.azure.com/.default")&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DefaultAzureCredential failed to retrieve a token from the included credentials.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 12:10:38 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/call-azure-cognitive-services-api-from-notebook-using-azure/m-p/94092#M38810</guid>
      <dc:creator>herbblinebury</dc:creator>
      <dc:date>2024-10-15T12:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: Call Azure Cognitive Services API from Notebook using Azure Entra ID that is logged on to Databr</title>
      <link>https://community.databricks.com/t5/data-engineering/call-azure-cognitive-services-api-from-notebook-using-azure/m-p/94103#M38811</link>
      <description>&lt;P&gt;and what if you do not use a token but pass the credential in the cognitive services client (like&amp;nbsp; Text Analytics Client)?&lt;/P&gt;&lt;P&gt;It could also be a networking/firewall setting that prevents you from calling ACS.&lt;BR /&gt;Permissions can also be the cause.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 12:23:23 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/call-azure-cognitive-services-api-from-notebook-using-azure/m-p/94103#M38811</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2024-10-15T12:23:23Z</dc:date>
    </item>
  </channel>
</rss>

