在Azure-runbook中,如何抑制cmdlet的输出以显示在摘要或历史日志中?
例如
Start-AzureVM -Name ...发出类似这样的东西
PSComputerName : localhost
PSSourceJobInstanceId : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Id : azure_adm@foo.com
Type : User
Subscriptions : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Tenants : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
PSComputerName : localhost
PSSourceJobInstanceId : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
OperationDescription : Start-AzureVM总结一下。
发布于 2015-07-01 17:53:00
在Azure-Runbook中只能在"InlineScript {}“中使用"out-null”
发布于 2020-01-07 01:26:27
如果您将输出赋给一个变量,那么它将不会将其写入控制台。
尝试将其分配给$null,如下所示:
$null = Start-AzureVM -Name ...https://stackoverflow.com/questions/31157328
复制相似问题