为Azure资源管理API引入Azure资源浏览器

When managing Azure resources (Virtual Machines, Web Apps, etc) I like to do most of my work in Azure from the command line using the "Azure xplat cli" - the Azure Cross Platform Command Line Interface. It's an Open Source node.js app that you can get with "npm install -g azure-cli" and it calls the backend REST services that all of Azure uses to manage itself. In fact, when you are using the Azure Portal it's calling the same backend.

在管理Azure资源(虚拟机,Web应用程序等)时,我希望使用“ Azure xplat cli”(Azure跨平台命令行界面)从命令行在Azure中完成大部分工作。 这是一个开源的node.js应用程序,可通过“ npm install -g azure-cli”获得,它调用了所有Azure都用来管理自身的后端REST服务。 实际上,当您使用Azure门户时,它会调用相同的后端。

It's mostly an "Azure Noun Verb" structure, as you can see in the figure below. You can Azure Site Create or Azure VM Restart, etc.

如下图所示,它主要是“ Azure名词动词”结构。 您可以创建Azure网站或重新启动Azure VM等。

You can ALSO add --json to the xplat cli to see a JSON representation of the result of your call. So Azure Site List --json gives you a lot more information than without the json switch.

您还可以在xplat cli中添加--json,以查看调用结果的JSON表示形式。 因此,与没有json开关相比,Azure网站列表--json为您提供了更多信息。

There's a PowerShell interface to Azure, this xplat nodejs one I'm using, as well as other libraries like the Azure Management Libraries for .NET again, all calling the backend REST API.

我有一个用于Azure的PowerShell接口,这个我正在使用的xplat nodejs,以及其他库,例如适用于.NETAzure管理库,都调用了后端REST API。

However, that REST API is huge and confusing. Enter David Ebbo, a Principal Development Lead on the Azure App Platform. He's made the Azure Resource Explorer at https://resources.azure.com as a great way to explore the Azure Resource Management APIs visually and interactively!

但是,该REST API庞大且令人困惑。 输入Azure App Platform的首席开发主管David Ebbo 。 他通过https://resources.azure.com制作了Azure资源浏览器,这是一种以可视方式和交互方式浏览Azure资源管理API的好方法!

And, wait for it, Azure Resource Explorer is, of course, Open Source and hosted here at GitHub https://github.com/projectkudu/ARMExplorer. It's a preview/beta and not done, but we're all interested in what YOU think! Does it do what you'd expect? Feel free to add issues and get involved in the repository.

而且,等待它,Azure资源浏览器当然是开源的,并托管在GitHub https://github.com/projectkudu/ARMExplorer上。 这是一个预览版/测试版,尚未完成,但是我们都对您的想法感兴趣! 它能达到您的期望吗? 随时添加问题并参与存储库。

Go hit http://resources.azure.com/ and login with your Azure Credentials. It's an Object Explorer if you've ever used Visual Studio to move around a large object model, except this is a resource try of all the hypermedia nodes within your view of Azure.

转到http://resources.azure.com/,然后使用您的Azure凭据登录。 如果您曾经使用Visual Studio在大型对象模型中移动,则它是一个对象资源管理器,除非这是Azure视图中所有超媒体节点的资源尝试。

Azure Resource Explorer

Here I am moving around my Web Applications that I host in the West US Region of Azure. I can see the deployment slots for staging and production, the source control system and web hooks that deploy my site and lots more. Notice that I can click Actions as well, and (when I turn Read-Only off) perform POST and DELETE calls that will affect my Azure resources.

在这里,我将在位于美国西部Azure的Web应用程序中移动。 我可以看到用于登台和生产的部署插槽,用于部署我的站点的源代码管理系统和Web挂钩等等。 请注意,我也可以单击“操作”,并且(当我关闭“只读”时)执行将影响我的Azure资源的POST和DELETE调用。

If you're familiar with Postman, the REST API development tool, this is kind of like Postman for Azure. Here's a 5 min YouTube video by David Ebbo walking you through the Azure Resource Explorer.

如果您熟悉REST API开发工具Postman ,则有点像Postman for Azure。 这是David Ebbo的5分钟YouTube视频,带您通过Azure资源浏览器。

To be clear, this is NOT a new Portal, and it IS very low level. This is a tool for folks who want to know what's really going on when an Azure API is called. Perhaps you're creating your own explorer or your own API client in another language. This tool can give you documentation and live examples on how to call those APIs correctly.

需要明确的是,这不是一个新的门户,它的级别很低。 对于那些想知道调用Azure API时真正发生了什么的人们来说,这是一个工具。 也许您正在用另一种语言创建自己的资源管理器或API客户端。 该工具可以为您提供有关如何正确调用这些API的文档和实时示例。

Again, it's Open Source and hosted here at GitHub. They would be thrilled to hear your thoughts. Is this useful? In what direction would you like it to go?

同样,它是开源的,托管在GitHub上。 他们会很高兴听到您的想法。 这有用吗? 您希望它朝哪个方向发展?

By the way, if you'd like to try Azure for an hour for free without signing up for any trials or anything, go check out http://try.azurewebsites.net and play! Also, check out Azure Friday at http://friday.azure.com and subscribe on iTunes.

顺便说一句,如果您想免费试用一个小时的Azure而无需注册任何试用版或任何东西,请访问http://try.azurewebsites.net并开始玩! 另外,请在http://friday.azure.com上查看Azure Friday ,并在iTunes上进行订阅。

翻译自: https://www.hanselman.com/blog/introducing-azure-resource-explorer-for-the-azure-resource-management-apis

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值