Working with Azure Storage Blobs with a Java Azure Function

Developer Support

Developer

Bryan Soltis shows how to create a simple Java Azure Function to work with Azure Storage files.


If you’ve spent much time around me, you know that I’m a huge fan of Azure Functions. Being able to code stand-alone, serverless functions to handle tasks is an extremely powerful addition to any application. While my preference is C#, Azure Functions supports a number of other languages, allowing developers of all flavors to use the platform. In this article, I’ll show you how to create a simple Java Azure Function to work with Azure Storage files.

In my role as a Microsoft Cloud Solution Architect, I work with a lot of different companies, all with different skillsets and development stacks. While my forte is certainly the .NET stack, most companies use a blend of platforms to build their solutions. With a lineage back to 1991, Java has one of the largest followings, due to its immense versatility and capability. To help me work with clients who specialize in Java, I decided to create an Azure Function using Java to work with Azure Storage blobs.

NOTE

This blog is in no way an “expert” level article on Java programming. I’m just sharing some stuff I learned to hopefully help the next C# dev find their way.

Setup

To get going, I add Java support to Visual Studio Code. Now, there are a lot of IDE’s available for Java, and IntelliJ is probably one of the best. Just for fun, I wanted to see VS Code could do. Luckily, there’s a collection of extensions you can install to get up and going with Java quickly: The Java Extension Pack.

Check out the step-by-step example here.

0 comments

Comments are closed. Login to edit/delete your existing comments