简体   繁体   English

Azure中的自定义VM规格?

[英]Custom VM specs in Azure?

I'm spinning up VMs in Microsoft Azure Cloud, and want to set my own VM size/specs without using any of the existing DS / A / blah sizes. 我在Microsoft Azure Cloud中扩展虚拟机,并希望设置自己的虚拟机大小/规格而不使用任何现有的DS / A / blah大小。

eg 4 CPUs, 8GB RAM, 20GB SSD C: Drive - that is all I need, no more no less. 例如4个CPU,8GB RAM,20GB SSD C:驱动器-这就是我所需要的,至少没有更多。

Does Azure allow this level of customization, or am I stuck with their existing templates ? Azure是否允许这种级别的自定义,还是我停留在其现有模板上?

Does Azure allow this level of customization? Azure是否允许此级别的自定义?

For now, Azure does not support custom VM size. 现在,Azure 支持自定义虚拟内存大小。

Update: 更新:

As a workaround, we can create a VM in your local Hyper-V, and set VM's vhd size to 50GB. 解决方法是,我们可以在本地Hyper-V中创建 VM,并将VM的vhd大小设置为50GB。

After VM create completed, we can follow this link to prepare a VHD . VM创建完成后,我们可以单击此链接准备VHD like enable RDP, open windows firewall, install Azure VM agent and so on. 如启用RDP,打开Windows防火墙,安装Azure VM代理等。

Then we can use Azcopy to upload VHD to Azure storage account blob, script like this: 然后,我们可以使用Azcopy 将VHD上传到Azure存储帐户blob,如下所示:

AzCopy /Source:D:\test /Dest:https://jasondisk321.blob.core.windows.net/vhd/ /DestKey:K7aUYrCxxx7mJ/np0/SMZ2niXElHUxW7u8GUmbnz0C8nQvNmuEDpScvX4X9i+l8gtXSVy40215SOLpP8cCBAvQ== /Pattern:jason200.vhd /BlobType:page

We can download Azcopy from this page . 我们可以从此页面下载Azcopy。 Azcopy only work for windows. Azcopy仅适用于Windows。

After that, we can use template to create Azure VM with this VHD. 之后,我们可以使用模板使用此VHD创建Azure VM。 Like this: 像这样: 在此处输入图片说明

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

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