从辅助角色创建新的 Windows Azure 托管服务
使用我存储在 Blob 存储中的包和配置从运行角色创建新的 Windows Azure 托管服务的最佳方法是什么?
我猜测我可以使用服务管理 REST API 创建部署请求,但是从我的辅助角色运行 cmdlet 可能会更好。有什么想法吗?如果 cmdlet 路线更好,如果您能为我指明如何从辅助角色运行它们的正确方向,我会加分。
What is the best way to create a new Windows Azure Hosted service from a running role using a package and configuration that I have stored in blob storage?
I am guessing that I could use a Service Management REST API Create Deployment request, however running a cmdlet from my worker role might be better. Any thoughts? If the cmdlet route is better, bonus points if you can point me in the right direction on how to run them from a worker role.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不确定这里什么是“最好的”,因为这取决于您想要做什么。如果您只需要以编程方式创建托管服务,那么创建 REST 客户端、上传证书并执行此操作与使用 cmdlet 或其他任何内容大致相同。
作为 cmdlet 的创建者,它们在我心中占有特殊的位置,但我可能会坚持使用它们来执行 IT 管理任务。他们非常适合命令行自动化。
话虽这么说,推出自己的客户端并不难,但我通常建议您下载 来自 csmanage 的服务管理合同。这样,您就有了一个简单的包装器来开始。虽然它确实使用了 WCF,但并不太繁重。
Not sure what is 'best' here because it depends on what you are trying to do. If you just need to create a hosted service programmatically it would be about the same to create a REST client, upload a cert, and just do it versus using the cmdlets or anything else.
As the creator of the cmdlets, they have a special place in my heart, but I would probably stick to using those for IT admin tasks. They rock for cmd line automation.
That being said, it is not terribly hard to roll your own client, but I typically recommend that you download the Service Managements contracts from csmanage. That way, you have a simple wrapper around this to get going. While it does use WCF, it is not too onerous.