Search code examples
azureazure-storageazure-functions

Azure Functions storage account: Used capacity is constantly rising


I use a storage account to host 3 simple Azure Functions, which perform read, write and delete operations on a database. Surprisingly the Used Capacity value under Metrics is constantly increasing (please see screenshot below). Why? Those functions don't write anything to this storage. Since one pays for capacity used - am I going to pay more and more, if it continues to increase like that? I am a "Pay-as-you-go" customer by the way.

enter image description here

Edit#1: If I check the folder size of File Shares it says 2MB (see below). No clue where the values in Metrics are coming from... enter image description here

Edit#2: Below are the Application Settings. Just the default values + Link to the MongoDB Atlas cluster. Could it be related to AzureWebJobsStorage? enter image description here


Solution

  • Every Azure Function requires a storage account.

    Storage account requirements

    When creating a function app in App Service, you must create or link to a general-purpose Azure Storage account that supports Blob, Queue, and Table storage. Internally, Functions uses Storage for operations such as managing triggers and logging function executions.

    Note

    When using the Consumption hosting plan, your function code and binding configuration files are stored in Azure File storage in the main storage account. When you delete the main storage account, this content is deleted and cannot be recovered.