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
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."
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."
> **📋 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
+
2
7
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).
3
8
4
9
## Post Deployment Steps
5
-
1. Clone the Repository
6
-
First, clone this repository to access the post-deployment scripts:
> **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.
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.
20
42
21
-
3. Add Authentication Provider
43
+
> **Note**: Authentication changes can take up to 10 minutes to propagate.
22
44
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
25
46
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).
27
48
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
+
---
29
50
30
-
By following these steps, you’ll 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.
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):
|**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**, usefulincase 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)
159
140
160
141
</details>
161
142
@@ -257,22 +238,35 @@ This will rebuild the source code, package it into a container, and push it to t
257
238
258
239
## Post Deployment Steps
259
240
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:
> **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.
269
264
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.
272
266
273
-
3. **Deleting Resources After a Failed Deployment**
267
+
### 3. Troubleshooting: Cleaning Up After a Failed Deployment
274
268
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).
276
270
277
271
## Environment configuration for local development & debugging
278
272
> 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 forproduction. **Ensure you're loggedin via az login when using dev in local**.
0 commit comments