使用Rest Template将Premium SSD非托管磁盘添加到VM [英] Adding Premium SSD unmanaged disk to VM using Rest Template

查看:105
本文介绍了使用Rest Template将Premium SSD非托管磁盘添加到VM的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI,

对于托管磁盘,我们可以在json中提供属性storageAccountType,并提供Standard_LRS或Premium_LRS以获取标准HDD和高级SSD磁盘.

For managed disks we can provide attribute storageAccountType in json and give Standard_LRS or Premium_LRS to get standard HDD and premium SSD disks. 

但是对于非托管磁盘,我们如何构建json以获取高级ssd磁盘和标准HDD磁盘.

But for unmanaged disks how can we build the json to get premium ssd disk and standard HDD disk. 

请让我知道它是否可用.

Please let me know whether it is available or not.

此致

Naveen.

推荐答案

You have to mention the storage account SKU either Standard_LRS/Premium_LRS for unmanaged disks to get premium SSD disk or standard HDD disk. See the below JSON template to create a storage account with Standard_LRS or Premium_LRS.

{

类型":"Microsoft.Storage/storageAccounts",

    "type": "Microsoft.Storage/storageAccounts",

名称":"[[variables('storageAccountName')]"",

    "name": "[variables('storageAccountName')]",

"apiVersion":"2016-01-01",

    "apiVersion": "2016-01-01",

位置":"[[resourceGroup().location]"",

    "location": "[resourceGroup().location]",

"sku":{

    "sku": {

""名称":"Standard_LRS "

        "name": "Standard_LRS"

},

    },

种类":存储",

    "kind": "Storage",

属性":{}

    "properties": {}

}

参考:

Reference: https://docs.microsoft.com/en-us/azure/virtual-machines/linux/using-managed-disks-template-deployments


这篇关于使用Rest Template将Premium SSD非托管磁盘添加到VM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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