Skip to content

Conversation

@Priyanka-Microsoft
Copy link
Contributor

@Priyanka-Microsoft Priyanka-Microsoft commented Jun 4, 2025

Purpose

  • ...
    This pull request introduces a quota validation mechanism for AI model deployments in Azure, ensuring sufficient resources are available before provisioning. The changes include adding preprovision hooks, updating parameters, and implementing scripts for quota validation across multiple regions.

Preprovision Hooks and Parameters:

  • Added preprovision hooks in azure.yaml for both POSIX and Windows environments to validate model deployment quotas before provisioning. These hooks run scripts to check quotas based on the subscription and location.
  • Introduced a new aiModelDeployments parameter in infra/main.parameters.json to define model deployment configurations, including model name, version, format, SKU, and capacity.

Quota Validation Scripts:

  • Created validate_model_deployment_quota.sh to validate quotas for all model deployments in a subscription and location using a loop and the jq tool for JSON parsing.
  • Created validate_model_deployment_quotas.ps1 for the same purpose as the shell script but tailored for Windows PowerShell, leveraging ConvertFrom-Json for JSON parsing.
  • Added validate_model_quota.ps1 to validate individual model quotas in a specific region, checking usage and limits via Azure CLI. Includes fallback region handling.
  • Added validate_model_quota.sh for similar functionality as the PowerShell script but implemented in Bash, with fallback region logic and quota checks.

Please refer to below screenshot:
Failed

image

Does this introduce a breaking change?

  • Yes
  • No

How to Test

  • Get the code
git clone [repo-address]
cd [repo-name]
git checkout [branch-name]
npm install
  • Test the code

What to Check

Verify that the following are valid

  • ...

Other Information

@Priyanka-Microsoft Priyanka-Microsoft changed the base branch from dev to hotfix June 5, 2025 08:05
@Priyanka-Microsoft Priyanka-Microsoft changed the base branch from hotfix to dev June 5, 2025 08:34
@Priyanka-Microsoft
Copy link
Contributor Author

Raised to wrong branch

@Priyanka-Microsoft Priyanka-Microsoft deleted the quota-auto-validation-macae branch July 14, 2025 04:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant