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-services/agents/how-to/tools/openapi-spec.md
+31Lines changed: 31 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,26 @@ work together, generate client code, create tests, apply design standards, and m
30
30
## Set up
31
31
1. Ensure you've completed the prerequisites and setup steps in the [quickstart](../../quickstart.md).
32
32
33
+
1.[optional]If your OpenAPI spec requires API key, you can store your API key in a `custom keys` connection and use `connection` authentication
34
+
35
+
1. Go to the [Azure AI Foundry portal](https://ai.azure.com/) and select the AI Project. Click **connected resources**.
36
+
:::image type="content" source="../../media/tools/bing/project-settings-button.png" alt-text="A screenshot of the settings button for an AI project." lightbox="../../media/tools/bing/project-settings-button.png":::
37
+
38
+
1. Select **+ new connection** in the settings page.
39
+
>[!NOTE]
40
+
> If you re-generate the API key at a later date, you need to update the connection with the new key.
41
+
42
+
:::image type="content" source="../../media/tools/bing/project-connections.png" alt-text="A screenshot of the connections screen for the AI project." lightbox="../../media/tools/bing/project-connections.png":::
43
+
44
+
1. Select **custom keys** in **other resource types**.
- Connection name: `YOUR_CONNECTION_NAME` (You will use this connection name in the sample code below.)
51
+
- Access: you can choose either *this project only* or *shared to all projects*. Just make sure in the sample code below, the project you entered connection string for has access to this connection.
Your connection ID looks like `/subscriptions/{subscription ID}/resourceGroups/{resource group name}/providers/Microsoft.MachineLearningServices/workspaces/{project name}/connections/{connection name}`.
93
+
94
+
If you want to use managed identity for authentication, replace the line with
0 commit comments