Problem:
When deploying an ARM template to Azure you may 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 Service Endpoint for the appropriate Azure service on your subnet.
Explanation:
In my scenario, I was creating code to deploy an Azure Storage Account with different endpoints and this test deployment focused on Service Endpoints. I created the “NetworkAcls” on the storage account resource but when I deployed the solution, I was getting the error mentioned above. While this is generic error and could be many things, in my case it was the service endpoint on the subnet. It must be enabled first before creating a resource that relies on it.