Menu

Virtual Geek

Tales from real IT system administrators world and non-production environment

Terraform error retrieving storage account failure responding to request StatusCode 404 StorageAccountNotFound The storage account was not found

While working with Terraform Azure provider and creating storage account with service endpoints (subnets), I was receiving below strange error.

Error: retrieving Storage Account: (name: "storageaccount" / Resource Group "resourcegroup")"  storage.AccountsClient#GetProperties: Failure responding to request: StatusCode=404 -- Original Error: autorest/azure: Service returned an error. Status=404 Code"StorageAccountNotFound" Messages="The storage account was not found"

Terraform azure storage account cloud storageaccountnotfound azurerm_storage_account resource module deployment resource group hashicorp hcl tf vars.png

To resolve this error issue. Go to Virtual Network > Subnet which you are going to associate with Storage Account for private service endpoint. Click the subnet, from right hand side panel In the services endpoints, select Microsoft.Storage and Save the settings.

Azure Terraform storage account not found subentes add vnet virtual network hub and spoke service endpoint microsoft.storage resource subnet delegation network policy.png

After this terraform apply was successful and storage account deployed successfully.

Useful Articles
Terraform clone virtual machine template in VMware vSphere vCenter from CSV file
Using terraform to clone a virtual machine on VMware vSphere infrastructure
Terraform module clone VMware vSphere Linux and Windows virtual machine
Terraform VMware vSphere Virtual Machine customization clone failed on Windows
Terraform VMware vSphere Virtual Machine cloning Operating system not found
How to Install Minikube on Ubuntu - Step by Step
MINIKUBE Unable to start VM - This computer doesn't have VT-X AMD-v enabled
Install and Setup your own Kubernetes Cluster with K3s
Rancher k3s.yaml permission denied when using kubectl - Kubernetes

Go Back

Comment

Blog Search

Page Views

10420277

Follow me on Blogarama