feat: Added Quota Auto Validation Scripts #119
Merged
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
solutionLocation
parameter: Added a new parameter,solutionLocation
, to specify the location for all resources except AI Foundry. This replaces hardcodedlocation
anddblocation
variables in multiple modules (infra/main.bicep
). [1] [2] [3] [4] [5] [6] [7] [8] [9]infra/main.bicepparam
: Adjusted default values forAzureAiServiceLocation
and introducedsolutionLocation
to 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_quota
scripts 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.ps1
andvalidate_model_quota.sh
to validate individual model quotas, ensuring sufficient capacity in the specified region or suggesting alternatives. [1] [2]AI Model Deployment Configuration
aiModelDeployments
parameter: Added toinfra/main.parameters.json
to 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