Add SKU Zone Validator for pre-deployment validation of VM availability and quota #848
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.
Problem Statement
Azure Virtual Desktop deployments were failing due to:
These failures resulted in interrupted customer sessions, eroded confidence, and extended delivery timelines. Teams had to manually retry deployments with different zones, request quota increases reactively, or delete and restart with alternative SKUs.
Solution Overview
This PR introduces a comprehensive SKU Zone Validator that prevents deployment failures by validating VM SKU availability and quota before provisioning resources. The solution provides:
Key Features
1. PowerShell Validation Script (
Test-AvdSkuZoneAvailability.ps1
)A standalone tool that validates:
-SuggestAlternatives
flag)Example Usage:
2. Portal UI Enhancements
Enhanced both baseline and brownfield deployment wizards with:
The existing dynamic zone filtering (via
resourceSkusApi
) is now supplemented with clear guidance to help users understand why zones may or may not appear and what actions to take.3. Documentation
Addresses Issue Requirements
-SuggestAlternatives
parameter finds and lists similar SKUs with zone infoChanges Made
New Files (5)
workload/scripts/Test-AvdSkuZoneAvailability.ps1
- Validation script (298 lines)workload/scripts/SkuZoneValidator-Readme.md
- Full documentationworkload/scripts/QUICKSTART.md
- Quick start guideworkload/scripts/Test-Scenarios.md
- Test scenariosIMPLEMENTATION_SUMMARY.md
- Implementation detailsModified Files (4)
readme.md
- Added validator to Add-ons and Tools sectionworkload/docs/baseline-troubleshooting-guide.md
- New SKU/Zone section with common issues and solutionsworkload/portal-ui/portal-ui-baseline.json
- Added 2 InfoBoxes (18 lines)workload/portal-ui/brownfield/portalUiNewSessionHosts.json
- Added 2 InfoBoxes (18 lines)Total: 1,288 lines added across 9 files
Testing & Validation
PSParser
and help systemBreaking Changes
None. This is an additive feature that:
Benefits
For End Users
For Operations Teams
For Organizations
Example Output
Next Steps
After merge, users can:
Closes #[issue-number]
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
www.powershellgallery.com
pwsh -Command Install-Module -Name PSScriptAnalyzer -Force -Scope CurrentUser -SkipPublisherCheck
(dns block)pwsh -Command Set-PSRepository -Name PSGallery -InstallationPolicy Trusted; Install-Module -Name PSScriptAnalyzer -Force -Scope CurrentUser
(dns block)pwsh -Command Register-PSRepository -Default -ErrorAction SilentlyContinue; Get-PSRepository
(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
Fixes #837
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.