Azure Compute Blog · ~3 min read
We're excited to announce the public preview of Azure Platform Validation. With this new service, VM image publishers and enterprise platform teams can run Azure's certification-grade quality and security checks on their images in their own Azure subscriptions, at any point in the build process. Before, these checks only ran when you submitted an offer on Partner Center to publish on Azure Marketplace. Now these tests can be run not only for images being published to azure marketplace but also distributed using galleries and other distribution platforms across Windows, Linux and covers variety of testcases which is continuously expanding.
Find issues while they're still cheap to fix
Image publishers often learn about quality, security or compliance problems late, when an image fails certification at submission. By then customers may already be waiting for the release, and every fix means another full submission. Enterprise teams that build their own images face a similar problem: checks before production are often manual, inconsistent and hard to automate.
Platform Validation lets you run the same kinds of checks Azure uses for certification earlier, on every build, so you can catch problems while you're still building the image.
Key benefits
- Self-service validation: Start and manage validation runs in your own subscription without working through Microsoft teams. You choose the tests, the timing and how often to run them.
- Shift-left quality and security: Check bootability, OS configuration and platform compatibility, and scan for malware and vulnerabilities, before you submit or deploy.
- Built for CI/CD: Validation is a native Azure resource with an API. You can add it to your pipelines as a release gate and validate every image build automatically.
- Choose individual tests: Run the whole suite or select only the tests you need, so you can iterate faster on a specific fix.
- Clear, actionable results: Every test you request returns a result. Failed tests and tests that couldn't run include stable error codes and a clear reason, so your engineers know what to fix next.
- Faster path to Marketplace: Fixing issues before submission means fewer certification to-and-fro cycles and faster releases.
- Generalized Validation Platform: Can validate images to be distributed using galleries and other distribution platforms across Windows, Linux and covers variety of testcases which is continuously expanding.
What you can validate in public preview
Public preview includes these validation capabilities for VM images:
- VHD validation: checks image format and structure.
- VM validation: checks that the VM boots and provisions.
- Linux quality validation: uses LISA (Linux Integration Services Automation) tests through Azure's test infrastructure.
- Specialized Azure feature validation: checks for kernel tests, NVMe, MANA support and user can also author and contribute tests.
- Windows quality validation
- Malware scanning: powered by Microsoft Defender and Azure's existing malware scanning.
- Vulnerability validation: powered by Microsoft Defender.
Note: Platform Validation complements the certification Azure Marketplace runs at publishing time; it doesn't replace it. Final certification still runs through Partner Center when you submit your offer.
How it works
Platform Validation is exposed through the new Microsoft.PlatformValidation resource provider. You create a validation resource in your subscription, point it at your image, choose the tests you want, and start a run. Azure provisions the test environment, runs each test, cleans up the resources it created and returns a result for every test you asked for. Results show which tests passed, failed or couldn't run, and why.
You can start runs and read results through the REST API, ARM templates, or the Azure SDKs for .NET, Python, Java, JavaScript and Go.
Get started
To try Platform Validation during public preview:
- Register the resource provider: Register Microsoft.PlatformValidation in your Azure subscription.
- Prepare your image: Have the VHD or image you want to validate ready in your subscription.
- Create a validation run: Choose your tests and start a run with the REST API, an ARM template or your preferred SDK.
- Review and iterate: Check the per-test results and diagnostics, fix any issues, and run again. Add the run to your CI/CD pipeline to validate every build.
Public preview is available in [Central US, North Central US, South Central US, Sweden Central, Japan East and Australia East]
For prerequisites, quickstarts and API reference, Azure Platform Validation documentation link would be updated by 11/20. We'd love your feedback during preview at: computevalidationonboardingsupport@microsoft.com
What's next
We're continuing to expand Platform Validation, with more validation partners, offer types and closer alignment with the checks run during Marketplace certification.