如果你知道如何编写 PowerShell 并且需要构建一个图形仪表板来表示几乎任何数据,请查看PowerShell Universal Dashboard(UD)。UD是一种直观的方式,只需使用 PowerShell 就可以构建漂亮的仪表板甚至表单。幸运的是,Universal PowerShell Dashboard 可以在 Azure 中运行!
Universal PowerShell Dashboard 是一个 PowerShell 模块,可以通过运行Install-Module -Name UniversalDashboard.Community
来安装。社区模块是免费的,但我鼓励你购买完整版本。
I’m not going to go into the ins and outs of UD, Adam Driscoll (UD’s developer) has written extensive documentation already on the topic.
UD 需要一个 Web 服务器来运行。你可以选择在IIS上运行 UD,也可以在 Azure Web App 中运行。我讨厌搞定地方基础设施,所以我总是选择在可能的情况下将资源部署到云中。由于 UD 本地支持在 Azure Web App 中运行,它是完美的云候选者。
I found that even though UD has docs for setting it up in Azure, I still was struggling with an easy way to get it going. I managed to come up with a rough PowerShell script to setup the latest instance for you all in one swoop.
它可能需要一些改进,但我只是需要它用于即将进行的Pluralsight课程。随时根据需要进行改进。希望里面的注释足够清楚地解释了一切。
I called the script New-UDAzureInstance.ps1 and launch it like:
在 Azure 中设置好 UD 后,您将修改 dashboard.ps1 文件以构建您需要的任何类型的仪表板。
浏览到 Azure Web 应用的 URL,沐浴在新安装的 Universal PowerShell 仪表板实例的荣耀中。

I hope this saves some people some time setting up Universal Powershell Dashboard in Azure!
Source:
https://adamtheautomator.com/powershell-universal-dashboard/