You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/ai-foundry/how-to/develop/sdk-overview.md
+15-14Lines changed: 15 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ ms.date: 05/07/2025
12
12
ms.reviewer: dantaylo
13
13
ms.author: sgilley
14
14
author: sdgilley
15
-
zone_pivot_groups: foundry-sdk-languages
15
+
zone_pivot_groups: foundry-sdk-overview-languages
16
16
# customer intent: I want to learn how to use the Azure AI Foundry SDK to build AI applications on Azure.
17
17
---
18
18
@@ -26,11 +26,14 @@ The Azure AI Foundry SDK is a comprehensive toolchain designed to simplify the d
26
26
27
27
The Azure AI Foundry SDK is a set of client libraries and services designed to work together.
28
28
29
+
> [!NOTE]
30
+
> This article applies to a **[!INCLUDE [fdp](../../includes/fdp-project-name.md)]**. The code shown here doesn't work for a **[!INCLUDE [hub](../../includes/hub-project-name.md)]**. For more information, see [Types of projects](../../what-is-azure-ai-foundry.md#project-types).
31
+
29
32
## Prerequisites
30
33
31
34
* An Azure subscription. If you don't have one, create a [free account](https://azure.microsoft.com/free/).
32
-
*[Create a project](../create-projects.md) if you don't have one already.
33
-
* Sign in with the Azure CLI using the same account that you use to access your AI Project:
35
+
*[Create a [!INCLUDE [fdp-project-name](../../includes/fdp-project-name.md)]](../create-projects.md?pivots=fdp-project) if you don't have one already.
36
+
* Sign in with the Azure CLI using the same account that you use to access your project:
34
37
35
38
```bash
36
39
az login
@@ -48,7 +51,7 @@ The Azure AI Foundry Projects client library is a unified library that enables y
48
51
pip install azure-ai-projects azure-ai-identity
49
52
```
50
53
51
-
* Create a project client in code. **Copy** the Azure AI Foundry project endpoint from the Overview page of the project and update the connections string value.
54
+
* Create a project client in code. **Copy** the Azure AI Foundry project endpoint from the Overview page of the project and update the connections string value.
52
55
53
56
```python
54
57
from azure.identity import DefaultAzureCredential
@@ -68,7 +71,7 @@ The Azure AI Foundry Projects client library is a unified library that enables y
68
71
*`com.azure.ai.projects`
69
72
*`com.azure.core`
70
73
71
-
* Create a project client in code. **Copy** the Azure AI Foundry project endpoint from the Overview page of the project and update the connections string value.
74
+
* Create a project client in code. **Copy** the Azure AI Foundry project endpoint from the Overview page of the project and update the connections string value.
72
75
73
76
```java
74
77
import com.azure.ai.projects.ProjectsClient;
@@ -77,8 +80,8 @@ The Azure AI Foundry Projects client library is a unified library that enables y
77
80
78
81
String endpoint ="your_project_endpoint"; // Replace with your endpoint
79
82
80
-
ProjectsClient client = new ProjectsClientBuilder()
81
-
.credential(new AzureKeyCredential(apiKey))
83
+
ProjectsClient projectClient = new ProjectsClientBuilder()
84
+
.credential(new DefaultAzureCredential())
82
85
.endpoint(endpoint)
83
86
.buildClient();
84
87
```
@@ -95,7 +98,7 @@ The Azure AI Foundry Projects client library is a unified library that enables y
95
98
npm install @azure/ai-projects @azure/identity
96
99
```
97
100
98
-
* Create a project client in code. **Copy** the Azure AI Foundry project endpoint from the Overview page of the project and update the connections string value.
101
+
* Create a project client in code. **Copy** the Azure AI Foundry project endpoint from the Overview page of the project and update the connections string value.
99
102
100
103
101
104
```javascript
@@ -104,8 +107,6 @@ The Azure AI Foundry Projects client library is a unified library that enables y
104
107
105
108
const endpoint = "your_project_endpoint"; // Replace with your actual endpoint
106
109
const project = new AIProjectClient(endpoint, new DefaultAzureCredential());
107
-
108
-
const client = project.inference.azureOpenAI();
109
110
```
110
111
111
112
::: zone-end
@@ -120,7 +121,7 @@ The Azure AI Foundry Projects client library is a unified library that enables y
120
121
dotnet add package Azure.AI.Inference
121
122
```
122
123
123
-
* Create a project client in code. **Copy** the Azure AI Foundry project endpoint from the Overview page of the project and update the connections string value.
124
+
* Create a project client in code. **Copy** the Azure AI Foundry project endpoint from the Overview page of the project and update the connections string value.
124
125
125
126
```csharp
126
127
using Azure;
@@ -139,7 +140,7 @@ The Azure AI Foundry Projects client library is a unified library that enables y
0 commit comments