小编Pet*_*lka的帖子

检查Azure资源组是否存在 - Azure Powershell

我正在尝试验证ResourceGroup是否存在所以我认为以下代码应返回true或false,但它不输出任何内容.

$RSGtest = Find-AzureRmResource | Format-List ResourceGroupName | get-unique
$RSGtest -Match "$myResourceGroupName"
Run Code Online (Sandbox Code Playgroud)

为什么我没有得到任何输出?

powershell azure-powershell azure-resource-manager

15
推荐指数
2
解决办法
9593
查看次数

具有多个输入字段的Powershell输入框

我发现这段代码可以为 powershell 创建简单的输入框:

[void][Reflection.Assembly]::LoadWithPartialName('Microsoft.VisualBasic')

$title = 'Demographics'
$msg   = 'Enter your demographics:'

$text = [Microsoft.VisualBasic.Interaction]::InputBox($msg, $title)
Run Code Online (Sandbox Code Playgroud)

有谁知道如何添加更多输入字段?

powershell

3
推荐指数
1
解决办法
6096
查看次数