feat: quota auto validation script #247
Closed
+648
−251
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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:
azure.yamlfor 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.aiModelDeploymentsparameter ininfra/main.parameters.jsonto define model deployment configurations, including model name, version, format, SKU, and capacity.Quota Validation Scripts:
validate_model_deployment_quota.shto validate quotas for all model deployments in a subscription and location using a loop and thejqtool for JSON parsing.validate_model_deployment_quotas.ps1for the same purpose as the shell script but tailored for Windows PowerShell, leveragingConvertFrom-Jsonfor JSON parsing.validate_model_quota.ps1to validate individual model quotas in a specific region, checking usage and limits via Azure CLI. Includes fallback region handling.validate_model_quota.shfor similar functionality as the PowerShell script but implemented in Bash, with fallback region logic and quota checks.Please refer to below screenshot:
Failed
Does this introduce a breaking change?
How to Test
What to Check
Verify that the following are valid
Other Information