可以Azure的VM大小由服务配置中配置? [英] Can azure VM sizes be configured by service configuration?

查看:120
本文介绍了可以Azure的VM大小由服务配置中配置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的Azure部署部署不同的VM大小,这取决于云服务是目标(例如,我想在生产更大的情况下,但可以在测试用较小度日)。它出现在Visual Studio 2010中的大小必须在所有的服务配置相同。

I want to deploy different VM sizes in my Azure deployments, depending on which cloud service is the target (e.g., I want bigger instances in production, but can get by with smaller ones in testing). It appears in visual studio 2010 that the sizes must be the same across all service configurations.

有一种解决方法,或者这只是事情是这样的?

Is there a workaround, or is this just the way it is?

推荐答案

我已经找到了最好的解决办法是有两个不同的云项目。所以基本上你只需要创建两个不同的云项目,所有相同的角色加入到他们每个人,但在每个不同的配置。你一定要小心,每次你改变它的时间来更新这两个地方的所有配置。这相当于有两个CSDEFs,布伦特编程丝棉已经提到的,这只是为了实现这一目标的具体办法。

The best workaround I've found is to have two different cloud projects. So basically you just create two different cloud projects, add all the same roles into each of them, but have different configurations in each. You just have to be careful to update all the configurations in both places every time you change it. This amounts to having two CSDEFs, as Brent the Programming Simian mentioned already, this is just a concrete way to achieve that.

这也给你在其他方面的灵活性。例如,你可以有一个试验场HTTP和HTTPS端点,但生产现场只能有HTTPS。

This also gives you flexibility in other ways. For example, you can have a test site with both HTTP and HTTPS endpoints, but the production site can have only HTTPS.

这篇关于可以Azure的VM大小由服务配置中配置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆