-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
94f4104
commit 17be75e
Showing
10 changed files
with
221 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
author: jmatthiesen | ||
ms.author: jomatthi | ||
ms.date: 07/03/2024 | ||
ms.topic: include | ||
--- | ||
|
||
A GitHub repository is available that contains all the sample apps for all of the quickstarts. Clone the repository using the following command: | ||
|
||
```bash | ||
git clone https://github.com/dotnet/ai-samples.git | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
author: jmatthiesen | ||
ms.author: jomatthi | ||
ms.date: 07/03/2024 | ||
ms.topic: include | ||
--- | ||
|
||
## Deploy the Azure resources | ||
|
||
Ensure that you follow the [Prerequisites](#prerequisites) to have access to Azure OpenAI Service as well as the Azure Developer CLI, and then follow the following guide to set started with the sample application. | ||
|
||
1. Clone the repository: [dotnet/ai-samples](https://github.com/dotnet/ai-samples) | ||
1. From a terminal or command prompt, navigate to the _src\quickstarts\azure-openai_ directory (on macOS or Linux, replace the '\\' character with a '/'. | ||
1. This provisions the Azure OpenAI resources. It may take several minutes to create the Azure OpenAI service and deploy the model. | ||
|
||
```azdeveloper | ||
azd up | ||
``` | ||
|
||
> [!NOTE] | ||
> If you encounter an error during the `azd up` deployment, visit the [troubleshooting](#troubleshoot) section. | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
## Troubleshoot | ||
|
||
On Windows, you might get the following error messages after running `azd up`: | ||
|
||
> *postprovision.ps1 is not digitally signed. The script will not execute on the system* | ||
The script **postprovision.ps1** is executed to set the .NET user secrets used in the application. To avoid this error, run the following PowerShell command: | ||
|
||
```powershell | ||
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass | ||
``` | ||
|
||
Then re-run the `azd up` command. | ||
|
||
Another possible error: | ||
|
||
> 'pwsh' is not recognized as an internal or external command, | ||
> operable program or batch file. | ||
> WARNING: 'postprovision' hook failed with exit code: '1', Path: '.\infra\post-script\postprovision.ps1'. : exit code: 1 | ||
> Execution will continue since ContinueOnError has been set to true. | ||
The script **postprovision.ps1** is executed to set the .NET user secrets used in the application. To avoid this error, manually run the script using the following PowerShell command: | ||
|
||
```powershell | ||
.\infra\post-script\postprovision.ps1 | ||
``` | ||
|
||
The .NET AI apps now have the user-secrets configured and they can be tested. | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.