feat: Added Quota Auto Validation Scripts#119
Merged
Conversation
Abdul-Microsoft
requested review from
Avijit-Microsoft,
Prajwal-Microsoft,
Roopan-Microsoft,
Vinay-Microsoft,
aniaroramsft and
marktayl1
as code owners
June 5, 2025 10:02
Roopan-Microsoft
approved these changes
Jun 5, 2025
|
🎉 This PR is included in version 1.4.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Ritesh-Microsoft
pushed a commit
that referenced
this pull request
Oct 10, 2025
feat: Added Quota Auto Validation Scripts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This pull request introduces significant updates to the infrastructure and deployment scripts to enhance flexibility, improve quota validation for AI model deployments, and streamline resource location management. Key changes include adding pre-provision hooks for quota validation, introducing new parameters for resource location, and implementing validation scripts for both PowerShell and Bash.
Infrastructure Updates
solutionLocationparameter: Added a new parameter,solutionLocation, to specify the location for all resources except AI Foundry. This replaces hardcodedlocationanddblocationvariables in multiple modules (infra/main.bicep). [1] [2] [3] [4] [5] [6] [7] [8] [9]infra/main.bicepparam: Adjusted default values forAzureAiServiceLocationand introducedsolutionLocationto align with the new infrastructure design.Quota Validation Enhancements
azure.yaml: Added hooks to validate quota availability for AI model deployments before provisioning, supporting both POSIX and Windows environments.validate_model_deployment_quotascripts in both PowerShell (validate_model_deployment_quota.ps1) and Bash (validate_model_deployment_quota.sh) to check deployment quotas against Azure Cognitive Services. These scripts handle missing parameters, validate JSON configuration, and provide fallback region suggestions. [1] [2]validate_model_quota.ps1andvalidate_model_quota.shto validate individual model quotas, ensuring sufficient capacity in the specified region or suggesting alternatives. [1] [2]AI Model Deployment Configuration
aiModelDeploymentsparameter: Added toinfra/main.parameters.jsonto define deployment details for AI models, including name, version, format, and SKU.These changes improve the robustness of the deployment process by ensuring that quota requirements are met before provisioning and by enabling more flexible resource location management.
Please refer to the screenshots below for the output of the quota auto-validation script during azd up execution:
CodeSpace
Failure Scenario
Success Scenario
Local Machine (Windows)
Failure Scenario
Success Scenario
Does this introduce a breaking change?
Golden Path Validation
Deployment Validation
What to Check
Verify that the following are valid
Other Information