|
1 | | -This file will contain instructions for checking quota availability using two different scripts |
2 | | - |
3 | 1 | ## Check Quota Availability Before Deployment |
4 | 2 |
|
5 | | -Before deploying the accelerator, check the quota availability for the model to ensure sufficient capacity. |
| 3 | +Before deploying the accelerator, **ensure sufficient quota availability** for the required model. |
| 4 | +Use one of the following scripts based on your needs: |
| 5 | + |
| 6 | +- **`quota_check_params.sh`** → If you **know the model and capacity** required. |
| 7 | +- **`quota_check_all_regions.sh`** → If you **want to check available capacity across all regions** for supported models. |
6 | 8 |
|
| 9 | +--- |
7 | 10 | ## **If using Azure Portal and Cloud Shell** |
8 | 11 |
|
9 | 12 | 1. Navigate to the [Azure Portal](https://portal.azure.com). |
10 | 13 | 2. Click on **Azure Cloud Shell** in the top right navigation menu. |
11 | | -3. Run the following commands: |
| 14 | +3. Run the appropriate command based on your requirement: |
| 15 | + |
| 16 | + **To check quota for a specific model and capacity:** |
12 | 17 |
|
13 | 18 | ```sh |
14 | | - curl -L -o check_azure_quota_public.sh "https://raw.githubusercontent.com/microsoft/Conversation-Knowledge-Mining-Solution-Accelerator/main/infra/scripts/quota_check_params.sh" |
| 19 | + curl -L -o quota_check_params.sh "https://raw.githubusercontent.com/microsoft/Conversation-Knowledge-Mining-Solution-Accelerator/main/infra/scripts/quota_check_params.sh" |
15 | 20 | chmod +x quota_check_params.sh |
16 | | - ./quota_check_params.sh <model_name:capacity> [<model_region>] |
| 21 | + ./quota_check_params.sh <model_name:capacity> [<model_region>] (e.g., gpt-4o-mini:30,text-embedding-ada-002:20 eastus) |
| 22 | + ``` |
| 23 | + |
| 24 | + **To check available quota across all regions for supported models:** |
| 25 | + |
| 26 | + ```sh |
| 27 | + curl -L -o quota_check_all_regions.sh "https://raw.githubusercontent.com/microsoft/Conversation-Knowledge-Mining-Solution-Accelerator/main/infra/scripts/quota_check_all_regions.sh" |
| 28 | + chmod +x quota_check_all_regions.sh |
| 29 | + ./quota_check_all_regions.sh |
17 | 30 | ``` |
| 31 | + |
18 | 32 | ## **If using VS Code or Codespaces** |
19 | 33 |
|
20 | | -1. Run the script: |
| 34 | +1. Run the appropriate script based on your requirement: |
| 35 | + |
| 36 | + **To check quota for a specific model and capacity:** |
21 | 37 |
|
22 | 38 | ```sh |
23 | | - ./quota_check_params.sh <model_name:capacity> [<model_region>] |
| 39 | + ./quota_check_params.sh <model_name:capacity> [<model_region>] (e.g., gpt-4o-mini:30,text-embedding-ada-002:20 eastus) |
24 | 40 | ``` |
25 | | - |
26 | | - If you see this error: _bash: az: command not found_ |
27 | | - |
28 | | - ```sh |
29 | | - curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash |
30 | | - az login |
31 | | - ``` |
32 | | -Then, rerun the script. |
33 | | - |
34 | | -**Parameters** |
35 | | -- `<model_name:capacity>`: The name and required capacity for each model, in the format model_name:capacity (**e.g., gpt-4o-mini:30,text-embedding-ada-002:20**). |
36 | | -- `[<model_region>] (optional)`: The Azure region to check first. If not provided, all supported regions will be checked (**e.g., eastus**). |
37 | 41 |
|
38 | | -If sufficient quota is available, proceed with the deployment. |
| 42 | + **To check available quota across all regions for supported models:** |
| 43 | + |
| 44 | + ```sh |
| 45 | + ./quota_check_all_regions.sh |
| 46 | + ``` |
| 47 | +2. If you see the error `_bash: az: command not found_`, install Azure CLI: |
| 48 | + |
| 49 | + ```sh |
| 50 | + curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash |
| 51 | + az login |
| 52 | + ``` |
| 53 | +3. Rerun the script after installing Azure CLI. |
| 54 | + |
| 55 | + **Parameters** |
| 56 | + - `<model_name:capacity>`: The name and required capacity for each model, in the format model_name:capacity (**e.g., gpt-4o-mini:30,text-embedding-ada-002:20**). |
| 57 | + - `[<model_region>] (optional)`: The Azure region to check first. If not provided, all supported regions will be checked (**e.g., eastus**). |
0 commit comments