question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AzureRmResourceGroupDeployment for storage account creation : The response for resource had empty or invalid content

See original GitHub issue

Template file

{ "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { "storageAccount_name": { "defaultValue": "stcr2130", "type": "String" } }, "variables": {}, "resources": [ { "type": "Microsoft.Storage/storageAccounts", "apiVersion": "2019-04-01", "name": "[parameters('storageAccount_name')]", "location": "southeastasia", "tags": { "Application": "STACR", "Purpose": "fileprocess", "AIRID": "2139" }, "sku": { "name": "Standard_LRS", "tier": "Standard" }, "kind": "StorageV2", "properties": { "supportsHttpsTrafficOnly": true, "encryption": { "services": { "file": { "enabled": true }, "blob": { "enabled": true } }, "keySource": "Microsoft.Storage" }, "accessTier": "Hot" } }, { "type": "Microsoft.Storage/storageAccounts/blobServices", "apiVersion": "2019-04-01", "name": "[concat(parameters('storageAccount_name'), '/default')]", "dependsOn": [ "[resourceId('Microsoft.Storage/storageAccounts', parameters('storageAccount_name'))]" ], "properties": { "cors": { "corsRules": [] }, "deleteRetentionPolicy": { "enabled": false } } } ] }

Getting below error

New-AzureRmResourceGroupDeployment : 10:01:30 AM - Resource Microsoft.Storage/storageAccounts 'stcr2130' failed with message '{
  "error": {
    "code": "ResourceDeploymentFailure",
    "message": "The response for resource had empty or invalid content."
  }
}'
At line:1 char:1
+ New-AzureRmResourceGroupDeployment -ResourceGroupName $resourcegroup  ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [New-AzureRmResourceGroupDeployment], Exception
    + FullyQualifiedErrorId : Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.NewAzureResourceGroupDeploymentCmdlet

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
jbocklecommented, Feb 24, 2021

I was able to fix my template, the subnets in this new subscription needed storage service endpoints added before the acl could be created, maybe this error is just stating some pre-req is required and was not found. Still, I think the error should probably be improved. @Rakesh201180 , since you aren’t using network acls, maybe confirm the storage account provider is added to the subscription. I’m not sure what other pre-reqs there would be for storage.

0reactions
anthony-c-martincommented, Nov 2, 2021

The storage RP team has confirmed that this has since been fixed - closing.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Azure Storage Account in a Virtual Network: The response for ...
Today I was writing a Bicep script to deploy an Azure Storage Account in a ... The response for resource had empty or...
Read more >
The response for resource had empty or invalid content. #1010
I have a streaming endpoint in ARM template: { "name": "[concat(variables('mediaServiceName'), '/2')]", "type": "Microsoft.
Read more >
AzureRmResourceGroupDeploy...
AzureRmResourceGroupDeployment for storage account creation : The response for resource had empty or invalid content.
Read more >
Azure AD B2C deployment fails with "The response for ...
Azure AD B2C deployment fails with "The response for resource had empty or invalid content." What could be the root cause of the...
Read more >
How to troubleshoot Azure Resource Manager (ARM ...
Deploying Azure Resource Manager (ARM) templates with the Azure PowerShell command New-AzureRmResourceGroupDeployment can fail for a variety ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found