Skip to content

Commit 9468516

Browse files
committed
test
1 parent e0702ef commit 9468516

File tree

1 file changed

+18
-14
lines changed

1 file changed

+18
-14
lines changed
Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,33 @@
11
## Create the AI service
22

3-
# [Azure OpenAI](#tab/azure-openai)
4-
5-
Choose of the options below to create an Azure OpenAI service.
6-
7-
### Use the Azure Developer CLI
3+
# [Use the Azure Developer CLI](#tab/azd)
84

95
[!INCLUDE [deploy-azd](deploy-azd.md)]
106

11-
### Use the Azure portal or Azure CLI
7+
# [Azure CLI](#tab/azure-cli)
128

13-
1. To provision an Azure OpenAI service using another tool such as the Azure portal or Azure CLI, complete the steps in the [Create and deploy an Azure OpenAI Service resource](/azure/ai-services/openai/how-to/create-resource?pivots=cli) article.
9+
1. To provision an Azure OpenAI service and model using the Azure CLI, complete the steps in the [Create and deploy an Azure OpenAI Service resource](/azure/ai-services/openai/how-to/create-resource?pivots=cli) article.
1410

15-
1. Assign the `Azure AI Developer` role to the account you used to sign-in to Visual Studio or the Azure CLI. The sample app uses a secretless approach to connect to the Azure OpenAI service using Microsoft Entra ID and `DefaultAzureCredential`.
11+
1. From a terminal or command prompt, navigate to the `src\quickstarts\azure-openai\01-HikeBenefitsSummary` directory.
1612

17-
1. In your project directory, set the Azure OpenAI deployment model name and endpoint as user secrets:
13+
1. Run the following commands to configure your OpenAI API key as a secret for the sample app:
1814

19-
```csharp
15+
```bash
2016
dotnet user-secrets init
21-
dotnet user-secrets set AZURE_OPENAI_ENDPOINT <your-openai-key>
22-
dotnet user-secrets set AZURE_OPENAI_GPT_NAME <your-openai-gpt-name>
17+
dotnet user-secrets set OpenAIKey <your-openai-key>
2318
```
2419

25-
# [OpenAI](#tab/openai)
20+
# [Azure Portal](#tab/azure-portal)
21+
22+
1. To provision an Azure OpenAI service and model using the Azure portal, complete the steps in the [Create and deploy an Azure OpenAI Service resource](/azure/ai-services/openai/how-to/create-resource?pivots=web-portal) article.
23+
24+
1. From a terminal or command prompt, navigate to the `src\quickstarts\azure-openai\01-HikeBenefitsSummary` directory.
2625

27-
If you plan to use an OpenAI Model, this quickstart assumes you already have a service setup and available. You'll need the access key and AI service endpoint to connect your code.
26+
1. Run the following commands to configure your OpenAI API key as a secret for the sample app:
27+
28+
```bash
29+
dotnet user-secrets init
30+
dotnet user-secrets set OpenAIKey <your-openai-key>
31+
```
2832

2933
---

0 commit comments

Comments
 (0)