What are the differences between Azure PowerShell Commandlets and Command-Line Tools?
Azure PowerShell命令行开关和命令行工具之间有什么区别?
- is there a difference in capabilities?
- 能力有区别吗?
- are new versions published at around the same time?
- 是大约在同一时间发布的新版本吗?
- is one of them the 'preferred' way to manage Azure resources?
- 是其中一种管理Azure资源的“首选”方式?
I am interested in managing web sites, VMs and cloud services from developer's machine and also from Ci server (TeamCity/MSBuild - starting / stopping VMs).
我有兴趣从开发人员的机器以及Ci服务器(TeamCity / MSBuild - 启动/停止VM)管理网站,虚拟机和云服务。
I've noticed that Command-Line Tools is just a small ~5MB download while PowerShell commandlets have several dependencies (~22MB) and June 2013 version still relies on Azure SDK 1.8 October 2012.
我注意到命令行工具下载量只有5MB左右,而PowerShell命令行开关有几个依赖项(~22MB),而2013年6月版仍然依赖于Azure SDK 1.8 2012年10月。
3 个解决方案
#1
9
The PowerShell cmdlets work only in PowerShell (on Windows machines). They're great for automating several concurrent tasks (i.e. scripting out an entire environment), or carrying out single tasks.
PowerShell cmdlet仅适用于PowerShell(在Windows计算机上)。它们非常适合自动执行多个并发任务(即编写整个环境的脚本)或执行单个任务。
The command-line tools are cross platform tools (work on Windows, Linux, etc.) These are written in node.js. They're not as good for scripting multiple actions, but are great for developers that prefer the command line to execute tasks (instead of going to the Azure management portal).
命令行工具是跨平台工具(适用于Windows,Linux等)。这些工具是用node.js编写的。它们不适合编写多个操作的脚本,但对于喜欢命令行执行任务(而不是转到Azure管理门户)的开发人员来说非常好。
As far as I can tell, they are not on a synced release schedule. You can follow the progress of each via their github.com repositories (https://github.com/WindowsAzure/azure-sdk-tools-xplat and https://github.com/WindowsAzure/azure-sdk-tools).
据我所知,他们没有处于同步的发布时间表。您可以通过他们的github.com存储库(https://github.com/WindowsAzure/azure-sdk-tools-xplat和https://github.com/WindowsAzure/azure-sdk-tools)跟踪每个进度。
#2
1
It appears that Powershell is a wrapper for the node tools. If you get an error in PS it will reference a .js file.
似乎Powershell是节点工具的包装器。如果在PS中出现错误,它将引用.js文件。
To test this simply allow your authentication token to expire without a login. The error message in the .json file it sends you to indicates a failure in a Javascript file.
要测试它,只需允许您的身份验证令牌在没有登录的情况下过期。它发送给您的.json文件中的错误消息表明Javascript文件中的失败。
#3
0
The release schedule for WIndows Azure PowerShell and the command line tools are both approximately once every 3 weeks. You can get the latest from the github repo at any time (as shown above).
WIndows Azure PowerShell和命令行工具的发布计划大约每3周一次。您可以随时从github仓库获取最新信息(如上所示)。
#1
9
The PowerShell cmdlets work only in PowerShell (on Windows machines). They're great for automating several concurrent tasks (i.e. scripting out an entire environment), or carrying out single tasks.
PowerShell cmdlet仅适用于PowerShell(在Windows计算机上)。它们非常适合自动执行多个并发任务(即编写整个环境的脚本)或执行单个任务。
The command-line tools are cross platform tools (work on Windows, Linux, etc.) These are written in node.js. They're not as good for scripting multiple actions, but are great for developers that prefer the command line to execute tasks (instead of going to the Azure management portal).
命令行工具是跨平台工具(适用于Windows,Linux等)。这些工具是用node.js编写的。它们不适合编写多个操作的脚本,但对于喜欢命令行执行任务(而不是转到Azure管理门户)的开发人员来说非常好。
As far as I can tell, they are not on a synced release schedule. You can follow the progress of each via their github.com repositories (https://github.com/WindowsAzure/azure-sdk-tools-xplat and https://github.com/WindowsAzure/azure-sdk-tools).
据我所知,他们没有处于同步的发布时间表。您可以通过他们的github.com存储库(https://github.com/WindowsAzure/azure-sdk-tools-xplat和https://github.com/WindowsAzure/azure-sdk-tools)跟踪每个进度。
#2
1
It appears that Powershell is a wrapper for the node tools. If you get an error in PS it will reference a .js file.
似乎Powershell是节点工具的包装器。如果在PS中出现错误,它将引用.js文件。
To test this simply allow your authentication token to expire without a login. The error message in the .json file it sends you to indicates a failure in a Javascript file.
要测试它,只需允许您的身份验证令牌在没有登录的情况下过期。它发送给您的.json文件中的错误消息表明Javascript文件中的失败。
#3
0
The release schedule for WIndows Azure PowerShell and the command line tools are both approximately once every 3 weeks. You can get the latest from the github repo at any time (as shown above).
WIndows Azure PowerShell和命令行工具的发布计划大约每3周一次。您可以随时从github仓库获取最新信息(如上所示)。