Rob
Rob

Reputation: 21

Add storage to Azure resource manager

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?

Upvotes: 1

Views: 1800

Answers (2)

KK Yadav
KK Yadav

Reputation: 93

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')]"
        }
    }
]}

Upvotes: 2

BenV
BenV

Reputation: 12452

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).

Upvotes: 0

Related Questions