【发布时间】:2015-02-05 11:18:48
【问题描述】:
是否可以将存储添加到资源组? IIRC 我的存储组是在我使用“旧”版门户时自动创建的。 我可以在组中看到我的域和虚拟机,但没有存储空间。如何添加?
【问题讨论】:
标签: azure azure-storage azure-resource-manager
是否可以将存储添加到资源组? IIRC 我的存储组是在我使用“旧”版门户时自动创建的。 我可以在组中看到我的域和虚拟机,但没有存储空间。如何添加?
【问题讨论】:
标签: azure azure-storage azure-resource-manager
您也可以通过 ARM API 或 Powershell 使用以下模板在资源组中创建存储帐户:
{
"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"name": {
"type": "string"
},
"location": {
"type": "string"
},
"accountType": {
"type": "string"
}
},
"resources": [
{
"apiVersion": "2014-06-01",
"name": "[parameters('name')]",
"type": "Microsoft.ClassicStorage/StorageAccounts",
"location": "[parameters('location')]",
"properties": {
"accountType": "[parameters('accountType')]"
}
}
]}
【讨论】:
假设您指的是存储帐户,您可以在 preview portal 的资源组中创建一个存储帐户。不过,您还不能通过 ARM API 或 Powershell 来实现(请参阅 this question)。
【讨论】: