Rundeck 输出为可点击链接

问题描述

有谁知道是否有办法让已执行作业的输出成为可点击的链接?

我有一个脚本可以通过 powercli 获取 vCenter 中虚拟环境的链接,我想简化用户启动 vmdk 控制台的过程。他们目前必须选择->复制->粘贴到搜索栏才能使其工作。

这是我的脚本:

Echo "Your Virtual Machine is now created and is being retrieved now."
$vcenter_password= "@option.vcenter_password@"
$Template_Name= "@option.Template_Name@"
if(-not (Get-Module -Name VMware.PowerCLI -ListAvailable)){
Install-Module -Name VMware.PowerCLI -AllowClobber -Force -Confirm:$false
}
Connect-VIServer -Server {{vcenter}} -User [email protected] -Password $vcenter_password -Force
Get-VM $Template_Name | Select-Object @{N="IP Address";E={@($_.guest.IPAddress[0])}}
Echo "Your VM is available at the following URL for the next 30 seconds:"
Open-VMConsoleWindow -VM "$Template_Name" -urlonly

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)