Problem:
When deploying an Azure Storage Account, you receive the following error:
{"code":"DeploymentFailed","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.","details":[{"code":"ResourceDeploymentFailure","message":"The response for resource had empty or invalid content."}]}
Solution:
Enable the appropriate Azure service endpoint on your subnet before adding a service endpoint to an Azure resource.
Explanation:
In my scenario, this error was thrown because I did not automate or pre-stage a service endpoint on my subnet for “Microsoft.Storage” before trying to enable a service endpoint on my storage account. The subnet needs to be configured first before you can enable service endpoints for an Azure resource.