Skip to content

Latest commit

 

History

History
86 lines (72 loc) · 2.91 KB

File metadata and controls

86 lines (72 loc) · 2.91 KB

Check Quota Availability Before Deployment

Before deploying the accelerator, ensure sufficient quota availability for the required model. \

📌 Default Models & Capacities:

gpt-4o:30, text-embedding-ada-002:80, gpt-4:30

📌 Default Regions:

eastus, uksouth, eastus2, northcentralus, swedencentral, westus, westus2, southcentralus, canadacentral

Usage Scenarios:

  • No parameters passed → Default models and capacities will be checked in default regions.
  • Only model(s) provided → The script will check for those models in the default regions.
  • Only region(s) provided → The script will check default models in the specified regions.
  • Both models and regions provided → The script will check those models in the specified regions.

Input Formats

✔️ Run without parameters to check default models & regions:

./quota_check_params.sh

✔️ Model name and required capacity in the format:

./quota_check_params.sh gpt-4o:30

✔️ Multiple models can be passed, separated by commas:

./quota_check_params.sh gpt-4o:30,text-embedding-ada-002:80

✔️ Passing Both models and regions:

./quota_check_params.sh gpt-4o:30 eastus,westus2

✔️ Check default models in specific regions:

./quota_check_params.sh "" eastus,westus2

Sample Output

The final table lists regions with available quota. You can select any of these regions for deployment.

quota-check-ouput


If using Azure Portal and Cloud Shell

  1. Navigate to the Azure Portal.

  2. Click on Azure Cloud Shell in the top right navigation menu.

  3. Run the appropriate command based on your requirement:

    To check quota for the deployment

    curl -L -o quota_check_params.sh "https://raw.githubusercontent.com/microsoft/document-generation-solution-accelerator/main/scripts/quota_check_params.sh"
    chmod +x quota_check_params.sh
    ./quota_check_params.sh

If using VS Code or Codespaces

  1. Open the terminal in VS Code or Codespaces.

  2. If you're using VS Code, click the dropdown on the right side of the terminal window, and select Git Bash. git_bash

  3. Navigate to the scripts folder where the script files are located and make the script as executable:

     cd scripts
     chmod +x quota_check_params.sh
  4. Run the appropriate script based on your requirement:

    To check quota for the deployment

    ./quota_check_params.sh
  5. If you see the error _bash: az: command not found_, install Azure CLI:

    curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
    az login
  6. Rerun the script after installing Azure CLI.