|
| 1 | +## Check Quota Availability Before Deployment |
| 2 | + |
| 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. |
| 8 | + |
| 9 | +--- |
| 10 | +## **If using Azure Portal and Cloud Shell** |
| 11 | + |
| 12 | +1. Navigate to the [Azure Portal](https://portal.azure.com). |
| 13 | +2. Click on **Azure Cloud Shell** in the top right navigation menu. |
| 14 | +3. Run the appropriate command based on your requirement: |
| 15 | + |
| 16 | + **To check quota for a specific model and capacity:** |
| 17 | + |
| 18 | + ```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" |
| 20 | + chmod +x quota_check_params.sh |
| 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 |
| 30 | + ``` |
| 31 | + |
| 32 | +## **If using VS Code or Codespaces** |
| 33 | + |
| 34 | +1. Run the appropriate script based on your requirement: |
| 35 | + |
| 36 | + **To check quota for a specific model and capacity:** |
| 37 | + |
| 38 | + ```sh |
| 39 | + ./quota_check_params.sh <model_name:capacity> [<model_region>] (e.g., gpt-4o-mini:30,text-embedding-ada-002:20 eastus) |
| 40 | + ``` |
| 41 | + |
| 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