ARM模板创建VM [英] ARM Template create VM

查看:93
本文介绍了ARM模板创建VM的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我想通过模板构建虚拟机。 

Suppose I would like to build a vm through template. 

资源已经存在:存储帐户/资源组/ vnet /子网。 

THe resource already have are : storage account/ resource group/ vnet/ subnet. 

我想制作 

I would like to make 

vmname<虚拟机名称 

vmname < virtual machine name 

vmnicname< network interfacename 

vmnicname < network interfacename 

vmpublicip< VMpublic IP名称 

vmpublicip < VMpublic IP name 

datadiskname<额外数据磁盘的名称

datadiskname < Name of the extra data disk

模板应该是什么?

推荐答案

HI,

看一下
quickstart
模板。

如果这是快速启动模板,我们将创建5个资源。由于您已经拥有存储帐户,因此可以删除存储帐户资源。

If this quick start templates, we are creating 5 resources. Since you have the storage account already, you can delete the storage account resource.

根据您的要求,我发现您只需要虚拟机资源。只保留该资源并删除剩余资源。

From your requirement i see that you need only virtual machine resource only. Keep only that resource and delete the remaining ones.


文档
将帮助您理解ARM模板。我建议您在编写模板之前先完成此操作。

This document will help you to understand the ARM templates. I recommend you to go through this before writing a template.

您也可以从azure docs本身找到对模板的引用服务。

You can also find the reference to the templates from the azure docs itself for most of the services.

此引用将包含所有可用的api版本及其选项。

This reference will have the all available api versions and the options for them.

试试看,告诉我。


这篇关于ARM模板创建VM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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