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/use-your-own-vnet.md
+10-8Lines changed: 10 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,7 +57,7 @@ ms.custom: azure-ai-agents
57
57
</summary>
58
58
59
59
**The Bicep template automates the following configurations and resource provisions:**
60
-
* Creates a User Assigned Identify. [Learn more](https://learn.microsoft.com/en-us/entra/identity/managed-identities-azure-resources/how-manage-user-assigned-managed-identities?pivots=identity-mi-methods-azp#create-a-user-assigned-managed-identity)
60
+
* Creates a User Assigned Identify. [Learn more](https://learn.microsoft.com/entra/identity/managed-identities-azure-resources/how-manage-user-assigned-managed-identities?pivots=identity-mi-methods-azp#create-a-user-assigned-managed-identity)
61
61
* The User Assigned Managed Identity requires the following Role Based Access Roles: KeyVault Secret Officer, KeyVault Contributor , Storage Blob Data Owner, Storage Queue Data Contributor, Cognitive Services Contributor, Cognitive Services OpenAI User, Search Index Data Contributor, Search Service Contributor
62
62
63
63
* Configures a managed virtual network with two subnet resources:
@@ -141,23 +141,26 @@ ms.custom: azure-ai-agents
141
141
142
142
**The following code shows how to create and run an agent using Python (Azure SDK):**
143
143
144
-
* C#: See the [C# quickstart](https://learn.microsoft.com/azure/ai-services/agents/quickstart?pivots=programming-language-csharp)
145
-
* Python OpenAI SDK: See the [Python OpenAI SDK quickstart](https://learn.microsoft.com/azure/ai-services/agents/quickstart?pivots=programming-language-python-openai)
144
+
* C#: See the [C# quickstart](../includes/quickstart-csharp.md)
145
+
* Python OpenAI SDK: See the [Python OpenAI SDK quickstart](../includes/quickstart-python-openai.md)
146
146
147
147
Run the following commands to install the python packages.
148
148
149
149
```console
150
150
pip install azure-ai-projects
151
151
pip install azure-identity
152
152
```
153
+
Next, to authenticate your API requests and run the program, use the [az login](/cli/azure/authenticate-azure-cli-interactively) command to sign into your Azure subscription.
154
+
155
+
```azurecli
156
+
az login
157
+
```
153
158
154
159
Use the following code to create and run an agent. To run this code, you will need to create a connection string using information from your project. This string is in the format:
> You can also find your connection string in the **overview** for your project in the [Azure AI Foundry portal](https://ai.azure.com/), under **Project details** > **Project connection string**.
160
-
> :::image type="content" source="portal-connection-string.png" alt-text="A screenshot showing the connection string in the Azure AI Foundry portal." lightbox="portal-connection-string.png":::
`HostName` can be found by navigating to your `discovery_url` and removing the leading `https://` and trailing `/discovery`. To find your `discovery_url`, run this CLI command:
0 commit comments