Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
190 views
in Technique[技术] by (71.8m points)

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?

question from:https://stackoverflow.com/questions/65881860/why-is-azure-functions-creating-v1-storage-accounts

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

As far as I know, the General-purpose v1 storage account is the legacy version of Azure storage account and can basically meet most of the needs, so it was the best choice for setting it with Azure Function by default.

As we can see from the official docs:

  1. General-purpose v2 storage accounts incorporate all of the functionality of general-purpose v1 and Blob storage accounts.
  2. Upgrading a general-purpose v1 or Blob storage account to general-purpose v2 is permanent and cannot be undone.

For better user experience, I think it's not a problem to set GPv1 storage account by default. If you need more functionality about Storage, you could consider upgrade to GPv2.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...