Use built-in persistent storage in Azure Spring Apps

Note

Azure Spring Apps is the new name for the Azure Spring Cloud service. Although the service has a new name, you'll see the old name in some places for a while as we work to update assets such as screenshots, videos, and diagrams.

This article applies to: ✔️ Java ✔️ C#

This article applies to: ✔️ Basic/Standard ❌ Enterprise

Azure Spring Apps provides two types of built-in storage for your application: persistent and temporary.

By default, Azure Spring Apps provides temporary storage for each application instance. Temporary storage is limited to 5 GB per instance with /tmp as the default mount path.

Warning

If you restart an application instance, the associated temporary storage is permanently deleted.

Persistent storage is a file-share container managed by Azure and allocated per application. All instances of an application share data stored in persistent storage. An Azure Spring Apps instance can have a maximum of 10 applications with persistent storage enabled. Each application is allocated 50 GB of persistent storage. The default mount path for persistent storage is /persistent.

Enable or disable built-in persistent storage

You can enable or disable built-in persistent storage using the Azure portal or Azure CLI.

Use the following steps to enable or disable built-in persistent storage using the Azure portal.

  1. Go to your Azure Spring Apps instance in the Azure portal.

  2. Select Apps to view apps for your service instance, and then select an app to display the app's Overview page.

    Screenshot of Azure portal showing the Apps page.

  3. On the Overview page, select Configuration.

    Screenshot of Azure portal showing details for an app.

  4. On the Configuration page, select Persistent Storage.

    Screenshot of Azure portal showing the Configuration page.

  5. On the Persistent Storage tab, select Enable to enable persistent storage, or Disable to disable persistent storage.

    Screenshot of Azure portal showing the Persistent Storage tab.

If persistent storage is enabled, the Persistent Storage tab displays the storage size and path.

Warning

If you disable an application's persistent storage, all of that storage is deallocated and all of the stored data is permanently lost.

Next steps