Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is Azure Functions creating V1 Storage Accounts?

We're usually using Azure Functions + SPA (e.g. Angular) for a lot of different projects. That means technically we can host the Functions and the web frontend inside the same Azure Storage Account, as long as it is v2 to support static website hosting.

However, whenever I create an Azure Function App and let it auto-create the storage account it creates a v1 account. Is there any reason why v1 would be better for Functions than v2?

From Microsofts docs:

General-purpose v2 accounts: Basic storage account type for blobs, files, queues, and tables. Recommended for most scenarios using Azure Storage.

General-purpose v1 accounts: Legacy account type for blobs, files, queues, and tables. Use general-purpose v2 accounts instead when possible.

I haven't seen any issues running Azure Functions in a v2 Storage Account so I'm wondering why v1 is still the default option?

like image 265
Thomas Avatar asked Oct 21 '25 02:10

Thomas


1 Answers

Azure Storage V1 has lower transaction costs than V2. Azure Functions, especially durable functions heavily use storage blobs and tables as synchronisation database generating extremely high bills for storage account. therefore recommendation is to use storage V1 due to lower costs.

See here: https://learn.microsoft.com/en-us/azure/storage/common/storage-account-overview#legacy-storage-account-types

General-purpose v1 accounts may not have the latest features or the lowest per-gigabyte pricing. Consider using it for these scenarios:

  • Your applications require the Azure classic deployment model.
  • Your applications are transaction-intensive or use significant geo-replication bandwidth, but don’t require large capacity. In this case, a general-purpose v1 account may be the most economical choice.
  • You use a version of the Azure Storage REST API that is earlier than February 14, 2014, or a client library with a version lower than 4.x, and you can’t upgrade your application.
  • You're selecting a storage account to use as a cache for Azure Site Recovery. Because Site Recovery is transaction-intensive, a general-purpose v1 account may be more cost-effective. For more information, see Support matrix for Azure VM disaster recovery between Azure regions.
like image 150
Miq Avatar answered Oct 23 '25 22:10

Miq