Azure Runbook - GetAzurermlog

时间:2016-02-22 10:46:00

标签: powershell azure

我无法在Azure Runbook中运行'Get-Azurermlog'。我收到错误"术语' Get-Azurermlog'不被识别为cmdlet,函数,脚本文件或可操作程序的名称"。它是标准的PowerShell cmdlet,可在我的笔记本电脑PS控制台上正常工作。请指教。

   workflow Write-SB
  { 
$Cred = Get-AutomationPSCredential -Name ‘Cre’
 Add-AzureAccount -Credential $Cred
Select-AzureSubscription -SubscriptionName “My subscription” 
InlineScript
  { 
 Get-Azurermlog }    
  }

1 个答案:

答案 0 :(得分:1)

您必须安装Azure Powershell。

您可以按照此处的说明操作: https://azure.microsoft.com/en-us/documentation/articles/powershell-install-configure/

相关问题