Skip to content

The getting started sample demonstrates how to perform common tasks using the Azure File Service in Java including creating a directory, uploading files to a directory, downloading files, as well as listing all the files in a directory.

License

Notifications You must be signed in to change notification settings

manojsp12/storage-file-java-getting-started

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

The getting started sample demonstrates how to perform common tasks using the Azure File Service in Java including creating a directory, uploading files to a directory, downloading files, as well as listing all the files in a directory.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 90.4%
  • JavaScript 9.6%