Skip to content

Commit 1f4543b

Browse files
Update quota_check.md
1 parent 9aeebdd commit 1f4543b

File tree

1 file changed

+40
-21
lines changed

1 file changed

+40
-21
lines changed

docs/quota_check.md

Lines changed: 40 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,57 @@
1-
This file will contain instructions for checking quota availability using two different scripts
2-
31
## Check Quota Availability Before Deployment
42

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.
68

9+
---
710
## **If using Azure Portal and Cloud Shell**
811

912
1. Navigate to the [Azure Portal](https://portal.azure.com).
1013
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:**
1217

1318
```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"
1520
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
1730
```
31+
1832
## **If using VS Code or Codespaces**
1933

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:**
2137

2238
```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)
2440
```
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**).
3741

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

Comments
 (0)