1

Is it possible to add storage to a resource groups? IIRC my storage group was created automatically when I used the 'old' version of the portal. I can see my domain and VM in the group, but no storage. How do I add it?

BenV
  • 12,052
  • 13
  • 64
  • 92
Rob
  • 21
  • 5

2 Answers2

2

You can create the storage account with in a resource group by using following template via ARM API or Powershell as well:

{
"$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')]"
        }
    }
]}
KK Yadav
  • 91
  • 4
  • Did you actually try that? I'm guessing you'll get an error. *Eventually* this will work, but currently only the Azure portal can use the ARM API for storage. See [this comment thread](http://azure.microsoft.com/en-us/documentation/articles/azure-preview-portal-using-resource-groups/#comment-1739284751) for details. – BenV Mar 13 '15 at 21:23
  • Yeah, that's because they just added that functionality 2 days ago: http://azure.microsoft.com/blog/2015/04/29/build-2015-azure-storage-announcements/ – BenV May 01 '15 at 14:24
0

Assuming you mean storage account, you can create a storage account within a resource group in the preview portal. You cannot yet do it via the ARM API or Powershell though (see this question).

Community
  • 1
  • 1
BenV
  • 12,052
  • 13
  • 64
  • 92