Function app backups are routinely failing with "Encrypted value padding is invalid"

Cindy 30 Reputation points Microsoft Employee
2026-07-27T20:45:54.7266667+00:00

All of the attempted backups for my service are failing. The error message is "Encrypted value padding is invalid".

I have attempted to reconfigure the custom backup with a new container and have reset it as needed, but still unable to have a successful backup.

Please refer to the Backups page here: PII

PII

Azure Functions
Azure Functions

An Azure service that provides an event-driven serverless compute platform.


2 answers

Sort by: Most helpful
  1. kagiyama yutaka 4,915 Reputation points
    2026-07-27T23:15:29.1833333+00:00

    I think the next step is to open the failed backup entry and read its detail log, and when the error doesn’t match any of the listed causes, sending a support ticket is the next action for Function App backups. This error isn’t in the backup failure list, so the flow ends up being log check and then a ticket.

    Was this answer helpful?

    0 comments No comments

  2. AI answer

    2026-07-27T20:46:12.2166667+00:00

    For App Service and Function App custom backups, the supported self-service fixes in the documented error list are:

    1. Reconfigure the backup storage if the failure is storage-access related.
      • In the Azure portal, go to the app’s Backups page.
      • Select Configure custom backups.
      • Choose a storage account in the same subscription and a container.
      • Complete Configure, then run Backup Now.
    2. Verify the storage account supports Shared Access Signature (SAS) authorization.
      • App Service backup and restore do not support Managed Identity–based authentication to the storage account.
    3. If databases are included, verify the database connection strings.
      • Supported databases appear only when their connection strings exist under Configuration > Connection strings.
      • If the backup failure is database-related, the documented fixes are to correct the connection string or use an administrative user where required.
    4. Open the failed backup entry to inspect the detailed log.
      • On the Backups page, select the failed line item to view the error details.
      • If the failure is not one of the documented backup errors, the documented next step is to open a support ticket.

    Relevant limits and compatibility checks:

    • Each backup is a complete copy, not incremental.
    • Linked databases are backed up only for custom backups.
    • Custom backups with linked databases support only Single Server tiers of Azure Database for MySQL and PostgreSQL. Flexible Server should use native database backup tools.
    • If maximum backup size or database size is exceeded, the backup fails.
    • TLS/SSL-enabled Azure Database for MySQL and PostgreSQL backups are not supported through App Service linked-database backup.

    The specific error text "Encrypted value padding is invalid" is not listed in the documented App Service backup error table. Since reconfiguring the container has already been tried, the supported next action is to select a failed backup entry for full log details and, if the error still isn’t covered by the documented errors, open a support ticket.


    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.