Skip to content

Commit 831b012

Browse files
Merge pull request #730 from microsoft/dev
fix: merging dev changes to main
2 parents 37dcebc + d34e84e commit 831b012

File tree

4 files changed

+577
-511
lines changed

4 files changed

+577
-511
lines changed

azure.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ hooks:
1616
Write-Host "Web app URL: "
1717
Write-Host "$env:WEB_APP_URL" -ForegroundColor Cyan
1818
Write-Host "`nRun the following command in your Bash terminal. It will grant the necessary permissions between resources and your user account, and also process and load the sample data into the application."
19-
Write-Host "bash ./infra/scripts/process_sample_data.sh $env:AZURE_RESOURCE_GROUP" -ForegroundColor Cyan
19+
Write-Host "bash ./infra/scripts/process_sample_data.sh" -ForegroundColor Cyan
2020
shell: pwsh
2121
continueOnError: false
2222
interactive: true
@@ -26,7 +26,7 @@ hooks:
2626
echo $WEB_APP_URL
2727
echo ""
2828
echo "Run the following command in your Bash terminal. It will grant the necessary permissions between resources and your user account, and also process and load the sample data into the application."
29-
echo "bash ./infra/scripts/process_sample_data.sh $env:AZURE_RESOURCE_GROUP"
29+
echo "bash ./infra/scripts/process_sample_data.sh"
3030
shell: sh
3131
continueOnError: false
3232
interactive: true

docs/AVMPostDeploymentGuide.md

Lines changed: 40 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,51 @@
11
# AVM Post Deployment Guide
2+
3+
> **📋 Note**: This guide is specifically for post-deployment steps after using the AVM template. For complete deployment from scratch, see the main [Deployment Guide](./DeploymentGuide.md).
4+
5+
---
6+
27
This document provides guidance on post-deployment steps after deploying the Build Your Own Copilot Accelerator from the [AVM (Azure Verified Modules) repository](https://github.com/Azure/bicep-registry-modules/tree/main/avm/ptn/sa/build-your-own-copilot).
38

49
## Post Deployment Steps
5-
1. Clone the Repository
6-
First, clone this repository to access the post-deployment scripts:
7-
```bash
8-
git clone https://github.com/microsoft/Build-your-own-copilot-Solution-Accelerator.git
9-
```
10-
```bash
11-
cd Build-your-own-copilot-Solution-Accelerator
12-
```
1310

14-
2. Import Sample Data -Run bash command printed in the terminal. The bash command will look like the following:
11+
### 1. Clone the Repository
12+
First, clone this repository to access the post-deployment scripts:
13+
14+
```bash
15+
git clone https://github.com/microsoft/Build-your-own-copilot-Solution-Accelerator.git
16+
cd Build-your-own-copilot-Solution-Accelerator
17+
```
18+
19+
### 2. Import Sample Data
20+
21+
**Choose the appropriate command based on your deployment method:**
22+
23+
**If you deployed using custom templates, ARM/Bicep deployments, or `az deployment group` commands:**
24+
```bash
25+
bash ./infra/scripts/process_sample_data.sh <your-resource-group-name>
26+
```
27+
> **Note**: Replace `<your-resource-group-name>` with the actual name of the resource group containing your deployed Azure resources.
28+
29+
> **💡 Tip**: If the deployment metadata does not exist in Azure or has been deleted, the script will prompt you to manually enter the required configuration values.
30+
31+
**If you deployed using `azd up` command:**
32+
```bash
33+
bash ./infra/scripts/process_sample_data.sh
34+
```
35+
> **Note**: The script will automatically take required values from your `azd` environment.
36+
37+
> **💡 Tip**: Since this guide is for AVM deployments, you'll most likely use the first command with your resource group name.
38+
39+
### 3. Configure Authentication
1540

16-
```bash
17-
bash ./infra/scripts/process_sample_data.sh <resourceGroupName>
18-
```
19-
If the deployment does not exist or has been deleted – The script will prompt you to manually enter the required values
41+
Follow the steps in [App Authentication](./AppAuthentication.md) to configure authentication in App Service.
2042

21-
3. Add Authentication Provider
43+
> **Note**: Authentication changes can take up to 10 minutes to propagate.
2244
23-
Follow steps in [App Authentication](https://github.com/microsoft/Build-your-own-copilot-Solution-Accelerator/blob/main/docs/AppAuthentication.md) to configure authentication in app service.
24-
>Note that Authentication changes can take up to 10 minutes.
45+
### 4. Troubleshooting: Cleaning Up After a Failed Deployment
2546

26-
4. Deleting Resources After a Failed Deployment
47+
If your deployment fails and you need to clean up resources, follow the steps in [Delete Resource Group](./DeleteResourceGroup.md).
2748

28-
Follow steps in [Delete Resource Group](https://github.com/microsoft/Build-your-own-copilot-Solution-Accelerator/blob/main/docs/DeleteResourceGroup.md) if your deployment fails and/or you need to clean up the resources.
49+
---
2950

30-
By following these steps, youll ensure a smooth transition from deployment to hands-on usage.
51+
By following these steps, you'll ensure a smooth transition from deployment to hands-on usage.

docs/DeploymentGuide.md

Lines changed: 28 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ You can run this solution using [GitHub Codespaces](https://docs.github.com/en/c
8686
</details>
8787

8888
<details>
89-
<summary><b>Deploy in VS Code</b></summary>
89+
<summary><b>Deploy in VS Code Dev Containers</b></summary>
9090

9191
### VS Code Dev Containers
9292

@@ -136,26 +136,7 @@ Consider the following settings during your deployment to modify specific settin
136136
<details>
137137
<summary><b>Configurable Deployment Settings</b></summary>
138138

139-
When you start the deployment, most parameters will have **default values**, but you can update the below settings by following the steps [here](CustomizingAzdParameters.md):
140-
141-
142-
| **Setting** | **Description** | **Default value** |
143-
| ------------------------------------ | -------------------------------------------------------------------------------------------------- | ------------------------ |
144-
| **Environment Name** | A **3-20 character alphanumeric value** used to generate a unique ID to prefix the resources. | `azdtemp` |
145-
| **Cosmos Location** | A **less busy** region for **CosmosDB**, useful in case of availability constraints. | `eastus2` |
146-
| **Deployment Type** | Select from a drop-down list (`Standard`, `GlobalStandard`). | `GlobalStandard` |
147-
| **GPT Model** | Azure OpenAI GPT model to deploy. | `gpt-4o-mini` |
148-
| **GPT Model Deployment Capacity** | Configure capacity for **GPT models**. Choose based on Azure OpenAI quota. | `30` |
149-
| **Embedding Model** | OpenAI embedding model used for vector similarity. | `text-embedding-ada-002` |
150-
| **Embedding Model Capacity** | Set the capacity for **embedding models**. Choose based on usage and quota. | `80` |
151-
| **Image Tag** | The version of the Docker image to use (e.g., `latest_waf`, `dev`, `hotfix`). | `latest_waf` |
152-
| **Azure OpenAI API Version** | Set the API version for OpenAI model deployments. | `2025-04-01-preview` |
153-
| **AZURE_LOCATION** | Sets the Azure region for resource deployment. | `<User selects during deployment>` |
154-
| **Existing Log Analytics Workspace** | To reuse an existing Log Analytics Workspace ID instead of creating a new one. | *(empty)* |
155-
| **Existing AI Foundry Project Resource ID** | To reuse an existing AI Foundry Project Resource ID instead of creating a new one. | *(empty)* |
156-
157-
158-
139+
When you start the deployment, most parameters will have **default values**, but you can update the below settings by following the steps [here](CustomizingAzdParameters.md)
159140

160141
</details>
161142

@@ -257,22 +238,35 @@ This will rebuild the source code, package it into a container, and push it to t
257238
258239
## Post Deployment Steps
259240
260-
1. **Import Sample Data**
261-
-Run bash command printed in the terminal. The bash command will look like the following:
262-
```shell
263-
bash ./infra/scripts/process_sample_data.sh
264-
```
265-
if you don't have azd env then you need to pass parameters along with the command. Then the command will look like the following:
266-
```shell
267-
bash ./infra/scripts/process_sample_data.sh <resourceGroupName> <cosmosDbAccountName> <storageAccount> <storageContainerName> <keyvaultName> <sqlServerName> <sqlDatabaseName> <webAppUserManagedIdentityClientId> <webAppUserManagedIdentityDisplayName> <aiFoundryResourceName> <aiSearchResourceName>
268-
```
241+
### 1. Import Sample Data
242+
243+
**Choose the appropriate command based on your deployment method:**
244+
245+
**If you deployed using `azd up` command:**
246+
```bash
247+
bash ./infra/scripts/process_sample_data.sh
248+
```
249+
> **Note**: The script will automatically take required values from your `azd` environment.
250+
251+
**If you deployed using custom templates, ARM/Bicep deployments, or `az deployment group` commands:**
252+
```bash
253+
bash ./infra/scripts/process_sample_data.sh <your-resource-group-name>
254+
```
255+
> **Note**: Replace `<your-resource-group-name>` with the actual name of the resource group containing your deployed Azure resources.
256+
257+
> **💡 Tip**: If the deployment metadata does not exist in Azure or has been deleted, the script will prompt you to manually enter the required configuration values.
258+
259+
> **💡 Tip**: Since this guide is for azd deployment, you'll most likely use the first command without resource group name.
260+
261+
### 2. Configure Authentication
262+
263+
Follow the steps in [App Authentication](./AppAuthentication.md) to configure authentication in App Service.
269264

270-
2. **Add Authentication Provider**
271-
- Follow steps in [App Authentication](./AppAuthentication.md) to configure authentication in app service. Note that Authentication changes can take up to 10 minutes.
265+
> **Note**: Authentication changes can take up to 10 minutes to propagate.
272266

273-
3. **Deleting Resources After a Failed Deployment**
267+
### 3. Troubleshooting: Cleaning Up After a Failed Deployment
274268

275-
- Follow steps in [Delete Resource Group](DeleteResourceGroup.md) if your deployment fails and/or you need to clean up the resources.
269+
If your deployment fails and you need to clean up resources, follow the steps in [Delete Resource Group](./DeleteResourceGroup.md).
276270

277271
## Environment configuration for local development & debugging
278272
> Set APP_ENV in your .env file to control Azure authentication. Set the environment variable to dev to use Azure CLI credentials, or to prod to use Managed Identity for production. **Ensure you're logged in via az login when using dev in local**.

0 commit comments

Comments
 (0)