awesomemypro
awesomemypro

Reputation: 561

How to limit or change the size of Azure BLOB container?

Is there any way to change the size of an Azure blob container? For example, initially, I will set the limit to X. Then, using the Java SDK, I want to change that limit.

Is such an implementation possible? If not, what are the alternatives?

Upvotes: 2

Views: 5647

Answers (1)

Gaurav Mantri
Gaurav Mantri

Reputation: 136126

It is not possible to set a quota for a blob container. It can grow up to the size of a storage account.

If it's possible, do take a look at Azure File Service. Equivalent to a blob container in blob storage is a share in file storage and you can define quota for a share. You can also change the quota of a share as well. The method you would want to use there is setQuota or setQuotaWithResponse available in ShareClient.

Upvotes: 3

Related Questions