Skip to content
This repository has been archived by the owner on Sep 19, 2019. It is now read-only.

Latest commit

 

History

History
43 lines (26 loc) · 2.16 KB

File metadata and controls

43 lines (26 loc) · 2.16 KB
services platforms author
storage
java
sribhat-MSFT

Getting Started with Azure File Service in Java

Azure File Service Sample - Demonstrates how to perform common tasks using the Microsoft Azure File Service.

The Azure File service exposes file shares using the standard SMB protocol. Applications running in Azure can now easily share files between VMs using standard and familiar file system APIs like ReadFile and WriteFile. In addition, the files can also be accessed at the same time via a REST interface, which opens a variety of hybrid scenarios. Azure Files is built on the same technology as the Blob, Table, and Queue Services, which means Azure Files is able to leverage the existing availability, durability, scalability, and geo redundancy that is built into the Azure platform.

Note: If you don't have a Microsoft Azure subscription you can get a FREE trial account here

Running this sample

This sample can be run using your Azure Storage account by updating the config.properties file with your "AccountName" and "Key", or using the Azure CLI.

To run the sample using the Azure Storage File Service:

  1. Create a Storage Account through the Azure Portal and provide your account name and account key in the config.properties file.
  2. Set breakpoints and run the project.

To run the sample using Azure CLI:

  1. Install Azure CLI
  2. Login with Azure CLI
  3. Run node setup.js
  4. mvn compile exec:java
  5. Run node teardown.js

More information

What is a Storage Account

Getting Started with Files

File Service Concepts

File Service REST API

Azure Storage Java API