What's the Best Azure Configuration for Deploying a Spring Boot API with Azure File Share Integration?

Francesc Arolas 20 Reputation points
2023-10-05T19:50:28.1533333+00:00

Hello everyone!
I'm looking for recommendations on the best Azure setup for my specific requirements. I've experimented with several options, but it feels like I've been going in circles. Here's my situation:

I have a Spring Boot API that manipulates files stored in an Azure File Share. The File Share must be mounted because I need to perform operations that aren't supported by the Azure Client. I want to deploy this API to an Azure service while also ensuring the File Share is accessible there.

I initially considered using Azure Spring Apps service, but encountered two issues. Firstly, it's considerably more expensive than other options. Secondly, the Storage configuration option doesn't seem to appear in the configuration as described in the Azure documentation.

I've also thought about using Azure App Services, but I can't seem to find a way to mount the File Share with that approach.

What would you recommend as the most suitable setup for deploying this API in Azure with a mounted File Share?

Azure Files
Azure Files
An Azure service that offers file shares in the cloud.
1,322 questions
Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,269 questions
Azure Spring Apps
Azure Spring Apps
An Azure platform as a service for running Spring Boot applications at cloud scale. Previously known as Azure Spring Cloud.
127 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,030 questions
0 comments No comments
{count} votes

Accepted answer
  1. Sumarigo-MSFT 47,206 Reputation points Microsoft Employee
    2023-10-11T09:41:10.67+00:00

    @Francesc Arolas Welcome to Microsoft Q&A Forum, Thank you for posting your query here!

    Based on your requirements, I would recommend using Azure Virtual Machines to deploy your Spring Boot API and mount the Azure File Share.

    Here are the general steps to do so:

    1. Create an Azure Virtual Machine: Create an Azure Virtual Machine in the Azure portal. You can choose the operating system and size that best fits your needs.
    2. Mount the Azure File Share: Once the virtual machine is created, you can mount the Azure File Share to the virtual machine. You can follow the instructions in the Azure documentation to mount the file share.
    3. Install and configure Spring Boot: Install and configure Spring Boot on the virtual machine. You can follow the instructions in the Spring Boot documentation to install and configure Spring Boot.

    Deploy the API: Deploy your Spring Boot API to the virtual machine. You can use a tool such as Jenkins or Azure DevOps to automate the deployment process.

    By using Azure Virtual Machines, you can deploy your Spring Boot API and mount the Azure File Share, which can help to ensure that the API has access to the files it needs. Additionally, using Azure Virtual Machines can be more cost-effective than using Azure Spring Apps service, as you only pay for the resources that you use.

    Please let us know if you have any further queries. I’m happy to assist you further.     


    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

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