简体   繁体   English

Azure powershell中无法识别“azure”

[英]“azure” not recognized in Azure powershell

For the first time I'm trying out Azure Powershell. 我第一次尝试使用Azure Powershell。 I'm selected my subscription and am trying to run the following command: azure site log tail websitename 我选择了我的订阅,并尝试运行以下命令:azure site log tail websitename

However when I run the command I get the following error: 但是,当我运行该命令时,我收到以下错误:

azure : The term 'azure' is not recognized as the name of a cmdlet...

What am I doing wrong here? 我在这做错了什么?

Your example command is an Azure cross-platform command line command. 您的示例命令是Azure跨平台命令行命令。 The equivalent PowerShell command is: 等效的PowerShell命令是:

Get-AzureWebsiteLog websitename -Tail 

First you need to install the powershell tool for the azure from azure site. 首先,您需要为azure站点的azure安装powershell工具。 This is another utility which recognise all the cmdlts which is assosicated with azure. 这是另一个实用程序,它识别所有与天蓝色相关的cmdlts。 After that it's very easy to use powershell ise. 之后,使用powershell ise非常容易。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM