feat(vm_extensions): add boot validation tests for Azure Security Linux Agent and Azure Monitor Linux Agent - #4675
Merged
Jayprakash gupta (Jaype-e) merged 2 commits intoAug 17, 2026
Conversation
Adds a dedicated boot-validation suite for the Azure Security Linux Agent VM extension (Microsoft.Azure.Security.Monitoring.AzureSecurityLinuxAgent), following the VmExtensionTestBase onboarding pattern. No boot-validation coverage existed for this extension; azsecpack.py uses it only as part of the AzSecPack AutoConfig scenario. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: dc8510fd-f72a-4f2b-be02-a3a73a022d93
Adds a dedicated boot-validation suite for the Azure Monitor Agent Linux VM extension (Microsoft.Azure.Monitor.AzureMonitorLinuxAgent), following the VmExtensionTestBase onboarding pattern. No boot-validation coverage existed for this extension; the existing AzureMonitorAgentLinux suite only provides a functional verify test. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: c0407c01-415f-4630-ad1f-d8db31824fa9
Jayprakash gupta (Jaype-e)
requested review from
LiliDeng,
Johnson (johnsongeorge-w) and
mayankdaruka-msft
as code owners
August 17, 2026 09:02
Copilot started reviewing on behalf of
Jayprakash gupta (Jaype-e)
August 17, 2026 09:05
View session
Contributor
There was a problem hiding this comment.
Pull request overview
Adds two new VM extension boot-validation test suites under runtime_extensions/, following the existing VmExtensionTestBase pattern, to cover basic install/provision/version/SSH-reachability/uninstall validation for Azure Security Linux Agent and Azure Monitor Linux Agent.
Changes:
- Introduces
AzureSecurityLinuxAgentTestsboot-validation suite forMicrosoft.Azure.Security.Monitoring.AzureSecurityLinuxAgent. - Introduces
AzureMonitorLinuxAgentTestsboot-validation suite forMicrosoft.Azure.Monitor.AzureMonitorLinuxAgent.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| lisa/microsoft/testsuites/vm_extensions/runtime_extensions/azure_security_linux_agent.py | New boot-validation suite for Azure Security Linux Agent using shared _boot_validation flow. |
| lisa/microsoft/testsuites/vm_extensions/runtime_extensions/azure_monitor_linux_agent.py | New boot-validation suite for Azure Monitor Linux Agent using shared _boot_validation flow. |
Suppressed comments (2)
lisa/microsoft/testsuites/vm_extensions/runtime_extensions/azure_security_linux_agent.py:31
simple_requirement()excludes Windows by default only when neithersupported_osnorunsupported_osis provided (seelisa/testsuite.py:446-449). By settingunsupported_os=[BSD]here, Windows becomes eligible for this suite, but this extension is Linux-only and will likely fail when scheduled on Windows images. Exclude Windows explicitly (or setsupported_os=[Linux]).
requirement=simple_requirement(
supported_features=[AzureExtension],
supported_platform_type=[AZURE],
unsupported_os=[BSD],
),
lisa/microsoft/testsuites/vm_extensions/runtime_extensions/azure_monitor_linux_agent.py:31
simple_requirement()excludes Windows by default only when neithersupported_osnorunsupported_osis provided (seelisa/testsuite.py:446-449). By settingunsupported_os=[BSD]here, Windows becomes eligible for this suite, but this extension is Linux-only and will likely fail when scheduled on Windows images. Exclude Windows explicitly (or setsupported_os=[Linux]).
requirement=simple_requirement(
supported_features=[AzureExtension],
supported_platform_type=[AZURE],
unsupported_os=[BSD],
),
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
LiliDeng
approved these changes
Aug 17, 2026
mcgov (mcgov)
pushed a commit
that referenced
this pull request
Aug 17, 2026
…ux Agent and Azure Monitor Linux Agent (#4675) * feat(vm_extensions): add Azure Security Linux Agent boot validation test Adds a dedicated boot-validation suite for the Azure Security Linux Agent VM extension (Microsoft.Azure.Security.Monitoring.AzureSecurityLinuxAgent), following the VmExtensionTestBase onboarding pattern. No boot-validation coverage existed for this extension; azsecpack.py uses it only as part of the AzSecPack AutoConfig scenario. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: dc8510fd-f72a-4f2b-be02-a3a73a022d93 * feat(vm_extensions): add Azure Monitor Linux Agent boot validation test Adds a dedicated boot-validation suite for the Azure Monitor Agent Linux VM extension (Microsoft.Azure.Monitor.AzureMonitorLinuxAgent), following the VmExtensionTestBase onboarding pattern. No boot-validation coverage existed for this extension; the existing AzureMonitorAgentLinux suite only provides a functional verify test. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: c0407c01-415f-4630-ad1f-d8db31824fa9 --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: dc8510fd-f72a-4f2b-be02-a3a73a022d93 Copilot-Session: c0407c01-415f-4630-ad1f-d8db31824fa9
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.
Summary
Adds dedicated boot-validation test suites for two VM extensions, following the existing
VmExtensionTestBaseonboarding pattern (same as CustomScript / AKS Linux Billing):Microsoft.Azure.Security.Monitoring.AzureSecurityLinuxAgentMicrosoft.Azure.Monitor.AzureMonitorLinuxAgentEach suite installs the extension with empty settings, asserts provisioning succeeds, verifies the installed version (when a full
Major.Minor.Patchis requested), confirms the VM stays reachable over SSH, then removes the extension. All logic is delegated to the shared_boot_validationhelper — no duplicated flow.No boot-validation coverage existed for either extension. The existing
AzureMonitorAgentLinuxsuite only provides a separate functionalverify_azuremonitoragent_linuxtest and is left untouched.Validation
Both files pass:
py_compile,flake8,isort,black, and strictmypy, and register correctly with the LISA test selector (area=vm_extension,category=functional,priority=5,maturity=preview).Version is read from the
extension_version(or the per-suite{key}_version) runbook variable; it is required (no default fallback), matching the boot-validation contract.Test guidance
Key Test Cases:
microsoft_azure_security_monitoring_azuresecuritylinuxagent_boot_validation_test|microsoft_azure_monitor_azuremonitorlinuxagent_boot_validation_test
Impacted LISA Features:
AzureExtension
Tested Azure Marketplace Images: