none
Cannot create a simple storage account

    Question

  • New to Azure and been trying to create a simple storage account using Azure interface but no matter what I do the validation fails, something wrong with my subscription? or...

    Here is the errors I get:

    • Error code
      InvalidTemplateDeployment
    • Message
      The template deployment 'Microsoft.StorageAccount-20170130231245' is not valid according to the validation procedure. The tracking id is 'bcaa1700-a417-4436-808e-3353c3ac7868'. See inner errors for details. Please see https://aka.ms/arm-deploy for usage details.

    JSON:

        "resourceGroupName": "StorageRG",
        "resourceProviderName": {
            "value": "microsoft.resources",
            "localizedValue": "Microsoft Resources"
        },
        "resourceType": {
            "value": "microsoft.resources/deployments",
            "localizedValue": "microsoft.resources/deployments"
        },
        "resourceId": "/subscriptions/4aaae645-4274-4f02-8722-227898a7cd37/resourcegroups/StorageRG/providers/microsoft.resources/deployments/Microsoft.StorageAccount-20170130231245",
        "status": {
            "value": "Failed",
            "localizedValue": "Failed"
        },
        "subStatus": {
            "value": "BadRequest",
            "localizedValue": "Bad Request (HTTP Status Code: 400)"
        },
        "submissionTimestamp": "2017-01-31T07:13:00.7298596Z",
        "subscriptionId": "4aaae645-4274-4f02-8722-227898a7cd37",
        "properties": {
            "statusCode": "BadRequest",
            "serviceRequestId": null,
            "statusMessage": "{\"error\":{\"code\":\"InvalidTemplateDeployment\",\"message\":\"The template deployment 'Microsoft.StorageAccount-20170130231245' is not valid according to the validation procedure. The tracking id is 'bcaa1700-a417-4436-808e-3353c3ac7868'. See inner errors for details. Please see https://aka.ms/arm-deploy for usage details.\",\"details\":[{\"code\":\"PreflightValidationCheckFailed\",\"message\":\"Preflight validation failed. Please refer to the details for the specific errors.\",\"details\":[{\"code\":\"AccountPropertyIsInvalid\",\"target\":\"01logix\",\"message\":\"Account property sku is invalid for the request.\"},{\"code\":\"AccountPropertyIsInvalid\",\"target\":\"01logix\",\"message\":\"Account property kind is invalid for the request.\"},{\"code\":\"AccountTypeMissing\",\"message\":\"The accountType field is missing from the request.\"},{\"code\":\"AccountEncryptionNotAllowed\",\"message\":\"Account Encryption is not allowed for versions before 2016-01-01.\"}]}]}}"
        },

    Tuesday, January 31, 2017 8:36 AM

All replies

  • There is issue with creating storage for few hours. Azure team deployed hotfix and should work now.

    Mustafa Toroman, Azure MVP

    • Proposed as answer by Md Shihab Monday, February 6, 2017 5:34 AM
    Tuesday, January 31, 2017 9:44 AM
  • What apiVersion did you send in your deployment?

    I have tried: 2015-06-15 and 2016-01-01 - but still get the same error you are getting. 

    Is it that now the 'sku' is required now and not accountType?

    "resources": [
        {
          "apiVersion""2015-06-15",
          "name""[parameters('insolstorageaccountname')]",
          "type""Microsoft.Storage/storageAccounts",
          "location""[resourceGroup().location]",
          "dependsOn": [],
          "tags": {
            "displayName""[parameters('insolstorageaccountname')]"
          },
          "properties": {
            "accountType""[parameters('accountType')]"
          }
        },

    I am doing 'validateOnly' on the deployment.


    Appreneur Application Architect Software Ronin

    Friday, March 3, 2017 4:01 AM
  • Same issue here.

    (Get-AzureRMLog -ResourceGroup $deploymentGroupName -MaxEvents 10 -DetailedOutput | Where-Object Status -eq 'Failed')  

    gives me:

    Id : /subscriptions/98c67d1e-1b85-4c28-8b54-f7a634f94ef5/resourcegroups/creditorhubG/providers/Microsoft.Resources/deployments/57dff7ba-ecab-41d3-ae96-1c6bcf5fb6fa/events/18971cdb-5e3a-4333-86e6-90692ed5963d/ticks/636241098693806029

    Properties.statusMessage .error.details.details[0].message :  "The accountType field is missing from the request."

    and

    Properties.statusMessage .error.details.details[3] : {"code": "AccountPropertyIsInvalid", "message": "Account property accountType is invalid for the request."}


    Appreneur Application Architect Software Ronin

    Friday, March 3, 2017 4:05 AM
  • Service is working again.

    Appreneur Application Architect Software Ronin

    Friday, March 3, 2017 6:35 AM