diff --git a/Tasks/AzureMysqlDeploymentV1/Window-MysqlCli-Installer.ps1 b/Tasks/AzureMysqlDeploymentV1/Window-MysqlCli-Installer.ps1 index 22810b3c8b45..2589e7394a5c 100644 --- a/Tasks/AzureMysqlDeploymentV1/Window-MysqlCli-Installer.ps1 +++ b/Tasks/AzureMysqlDeploymentV1/Window-MysqlCli-Installer.ps1 @@ -158,7 +158,7 @@ function Add-MachinePathItem return Set-MachinePath -NewPath $newPath } -$command = Get-Command -Name 'mysql' +$command = Get-Command -Name 'mysql' -ErrorAction SilentlyContinue if($command) { return 0; @@ -240,4 +240,4 @@ if ($exitCode -eq 0 -or $exitCode -eq 3010) else { return $exitCode; -} \ No newline at end of file +}