Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
596 changes: 361 additions & 235 deletions docs/LOCAL_DEPLOYMENT.md

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions docs/azure_account_setup.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
## Azure account setup

1. Sign up for a [free Azure account](https://azure.microsoft.com/free/) and create an Azure Subscription.
2. Check that you have the necessary permissions:
* Your Azure account must have `Microsoft.Authorization/roleAssignments/write` permissions, such as [Role Based Access Control Administrator](https://learn.microsoft.com/azure/role-based-access-control/built-in-roles#role-based-access-control-administrator-preview), [User Access Administrator](https://learn.microsoft.com/azure/role-based-access-control/built-in-roles#user-access-administrator), or [Owner](https://learn.microsoft.com/azure/role-based-access-control/built-in-roles#owner).
* Your Azure account also needs `Microsoft.Resources/deployments/write` permissions on the subscription level.

You can view the permissions for your account and subscription by following the steps below:
- Navigate to the [Azure Portal](https://portal.azure.com/) and click on `Subscriptions` under 'Navigation'
- Select the subscription you are using for this accelerator from the list.
- If you try to search for your subscription and it does not come up, make sure no filters are selected.
- Select `Access control (IAM)` and you can see the roles that are assigned to your account for this subscription.
- If you want to see more information about the roles, you can go to the `Role assignments`
tab and search by your account name and then click the role you want to view more information about.
12 changes: 12 additions & 0 deletions docs/azure_openai_model_quota_settings.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
## How to Check & Update Quota

Please follow [quota check instructions guide](./QuotaCheck.md) to check quota availability by region.

1. **Navigate** to the [Azure AI Foundry portal](https://ai.azure.com/).
2. **Click** on view all resources and **Search** for OpenAI resource associated with this accelerator.
3. **Go to** the `Shared Resources` section in the bottom-left navigation menu.
4. Select `Quota`
- Click on the `GlobalStandard` dropdown.
- Select the required **GPT model** (`gpt-4.1` or `text-embedding-ada-002`).
- Choose the **region** where the deployment is hosted.
5. Request More Quota or delete any unused model deployments as needed.
94 changes: 94 additions & 0 deletions docs/customizing_azd_parameters.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
# Customizing Azure Deployment Parameters

By default this template will use the environment name as the prefix to prevent naming collisions within Azure. The parameters below show the default values. You only need to run the statements below if you need to change the values.

> To override any of the parameters, run `azd env set <PARAMETER_NAME> <VALUE>` before running `azd up`. On the first azd command, it will prompt you for the environment name. Be sure to choose 3-16 characters alphanumeric unique name.

## Core Configuration Parameters

| **Name** | **Type** | **Default Value** | **Purpose** |
|----------|----------|-------------------|-------------|
| `AZURE_ENV_NAME` | string | (prompted) | Sets the environment name prefix for all Azure resources (3-16 alphanumeric characters) |
| `AZURE_LOCATION` | string | (prompted) | Sets the primary location/region for all Azure resources |
| `APP_ENV` | string | `Prod` | Application environment (Prod, Dev, etc.) |

## Application Hosting Parameters

| **Name** | **Type** | **Default Value** | **Purpose** |
|----------|----------|-------------------|-------------|
| `AZURE_APP_SERVICE_HOSTING_MODEL` | string | `container` | Hosting model for web apps (container or code) |
| `HOSTING_PLAN_SKU` | string | `B3` | App Service plan pricing tier (B2, B3, S1, S2) |

## Database Configuration

| **Name** | **Type** | **Default Value** | **Purpose** |
|----------|----------|-------------------|-------------|
| `DATABASE_TYPE` | string | `PostgreSQL` | Type of database to deploy (PostgreSQL or CosmosDB) |

## Azure AI Configurations

| **Name** | **Type** | **Default Value** | **Purpose** |
|----------|----------|-------------------|-------------|
| `AZURE_SEARCH_USE_INTEGRATED_VECTORIZATION` | boolean | `false` | Enable integrated vectorization (must be false for PostgreSQL) |
| `AZURE_SEARCH_USE_SEMANTIC_SEARCH` | boolean | `false` | Enable semantic search capabilities |
| `AZURE_OPENAI_SKU_NAME` | string | `S0` | Azure OpenAI resource SKU |
| `AZURE_OPENAI_MODEL` | string | `gpt-4.1` | Model deployment name |
| `AZURE_OPENAI_MODEL_NAME` | string | `gpt-4.1` | Actual model name |
| `AZURE_OPENAI_MODEL_VERSION` | string | `2025-04-14` | Model version |
| `AZURE_OPENAI_MODEL_CAPACITY` | integer | `150` | Model capacity (TPM in thousands) |
| `AZURE_OPENAI_API_VERSION` | string | `2024-02-01` | Azure OpenAI API version |
| `AZURE_OPENAI_STREAM` | boolean | `true` | Enable streaming responses |
| `AZURE_OPENAI_EMBEDDING_MODEL` | string | `text-embedding-ada-002` | Embedding model deployment name |
| `AZURE_OPENAI_EMBEDDING_MODEL_NAME` | string | `text-embedding-ada-002` | Actual embedding model name |
| `AZURE_OPENAI_EMBEDDING_MODEL_VERSION` | string | `2` | Embedding model version |
| `AZURE_OPENAI_EMBEDDING_MODEL_CAPACITY` | integer | `100` | Embedding model capacity (TPM in thousands) |
| `USE_ADVANCED_IMAGE_PROCESSING` | boolean | `false` | Enable vision LLM and Computer Vision for images (must be false for PostgreSQL) |
| `ADVANCED_IMAGE_PROCESSING_MAX_IMAGES` | integer | `1` | Maximum images per vision model request |
| `AZURE_OPENAI_VISION_MODEL` | string | `gpt-4.1` | Vision model deployment name |
| `AZURE_OPENAI_VISION_MODEL_NAME` | string | `gpt-4.1` | Actual vision model name |
| `AZURE_OPENAI_VISION_MODEL_VERSION` | string | `2025-04-14` | Vision model version |
| `AZURE_OPENAI_VISION_MODEL_CAPACITY` | integer | `10` | Vision model capacity (TPM in thousands) |
| `AZURE_COMPUTER_VISION_LOCATION` | string | (empty) | Location for Computer Vision resource |
| `COMPUTER_VISION_SKU_NAME` | string | `S1` | Computer Vision SKU (F0 or S1) |
| `AZURE_COMPUTER_VISION_VECTORIZE_IMAGE_API_VERSION` | string | `2024-02-01` | API version for image vectorization |
| `AZURE_COMPUTER_VISION_VECTORIZE_IMAGE_MODEL_VERSION` | string | `2023-04-15` | Model version for image vectorization |
| `AZURE_SPEECH_RECOGNIZER_LANGUAGES` | string | `en-US,fr-FR,de-DE,it-IT` | Comma-separated list of speech recognition languages |

## Virtual Machine Configuration (Production Only)

| **Name** | **Type** | **Default Value** | **Purpose** |
|----------|----------|-------------------|-------------|
| `AZURE_ENV_JUMPBOX_SIZE` | string | (empty) | Size of the jump box VM |
| `AZURE_ENV_VM_ADMIN_USERNAME` | string | (auto-generated) | Administrator username for VMs |
| `AZURE_ENV_VM_ADMIN_PASSWORD` | string | (auto-generated) | Administrator password for VMs |


## How to Set a Parameter

To customize any of the above values, run the following command **before** `azd up`:

```bash
azd env set <PARAMETER_NAME> <VALUE>
```

### Examples

**Set a custom Azure region:**
```bash
azd env set AZURE_LOCATION eastus2
```

**Configure Azure OpenAI model capacity:**
```bash
azd env set AZURE_OPENAI_MODEL_CAPACITY 200
azd env set AZURE_OPENAI_EMBEDDING_MODEL_CAPACITY 150
```

## Important Notes

1. **PostgreSQL Limitations**: When using `DATABASE_TYPE=PostgreSQL`, you must set:
- `AZURE_SEARCH_USE_INTEGRATED_VECTORIZATION=false`
- `USE_ADVANCED_IMAGE_PROCESSING=false`
- `ORCHESTRATION_STRATEGY=semantic_kernel` (recommended)

2. **Region Compatibility**: Not all services are available in all regions. Verify service availability in your chosen region before deployment.
51 changes: 51 additions & 0 deletions docs/delete_resource_group.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Deleting Resources After a Failed Deployment in Azure Portal

If your deployment fails and you need to clean up the resources manually, follow these steps in the Azure Portal.

---

## **1. Navigate to the Azure Portal**
1. Open [Azure Portal](https://portal.azure.com/).
2. Sign in with your Azure account.

---

## **2. Find the Resource Group**
1. In the search bar at the top, type **"Resource groups"** and select it.
2. Locate the **resource group** associated with the failed deployment.

![Resource Groups](./images/resourcegroup.png)

![Resource Groups](./images/resource-groups.png)

---

## **3. Delete the Resource Group**
1. Click on the **resource group name** to open it.
2. Click the **Delete resource group** button at the top.

![Delete Resource Group](./images/DeleteRG.png)

3. Type the resource group name in the confirmation box and click **Delete**.

📌 **Note:** Deleting a resource group will remove all resources inside it.

---

## **4. Delete Individual Resources (If Needed)**
If you don’t want to delete the entire resource group, follow these steps:

1. Open **Azure Portal** and go to the **Resource groups** section.
2. Click on the specific **resource group**.
3. Select the **resource** you want to delete (e.g., App Service, Storage Account).
4. Click **Delete** at the top.

![Delete Individual Resource](./images/deleteservices.png)

---

## **5. Verify Deletion**
- After a few minutes, refresh the **Resource groups** page.
- Ensure the deleted resource or group no longer appears.

📌 **Tip:** If a resource fails to delete, check if it's **locked** under the **Locks** section and remove the lock.
Binary file added docs/images/DeleteRG.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/deleteservices.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/resource-groups.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/resourcegroup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading