Use built-in persistent storage in Azure Spring Cloud

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

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

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

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. Data stored in persistent storage is shared by all instances of an application. An Azure Spring Cloud 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.

Warning

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

Enable or disable built-in persistent storage

You can modify the state of built-in persistent storage using the Azure portal or by using the Azure CLI.

Enable or disable built-in persistent storage with the portal

The portal can be used to enable or disable built-in persistent storage.

  1. From the Home page of your Azure portal, select All Resources.

    Locate the All Resources icon

  2. Select the Azure Spring Cloud resource that needs persistent storage. In this example, the selected application is called upspring.

    Select your application

  3. Under the Settings heading, select Apps.

  4. Your Azure Spring Cloud services appear in a table. Select the service that you want to add persistent storage to. In this example, the gateway service is selected.

    Select your service

  5. From the service's configuration page, select Configuration

  6. Select the Persistent Storage tab and select Enable to turn on persistent storage, or select Disable to turn off persistent storage.

    Enable persistent storage

If persistent storage is enabled, its size and path are shown on the Persistent Storage tab.

Warning

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

Next steps