From 6915660929972e483299e5ac2e029401bbe12bff Mon Sep 17 00:00:00 2001 From: Rakshaa Viswanathan <46165429+rakshaa2000@users.noreply.github.com> Date: Tue, 18 Oct 2022 14:53:12 +0530 Subject: [PATCH] Add azsecd tool for LISA (#2311) --- lisa/sut_orchestrator/azure/tools.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/lisa/sut_orchestrator/azure/tools.py b/lisa/sut_orchestrator/azure/tools.py index 94f9264a6..9062a0fb3 100644 --- a/lisa/sut_orchestrator/azure/tools.py +++ b/lisa/sut_orchestrator/azure/tools.py @@ -380,3 +380,17 @@ class AzCmdlet(Tool): f"-CommandId 'RunPowerShellScript' " f"-Parameter @{{'PublicKey'='{public_key_data}'}}" ) + + +class Azsecd(Tool): + @property + def command(self) -> str: + return "azsecd" + + @property + def can_install(self) -> bool: + return True + + def install(self) -> bool: + self.node.os.install_packages("azure-security") # type: ignore + return self._check_exists()