page_type: sample languages:
The Storage Blob SDK package version in this repo is 11.x.x. It's strongly recommended that you use the latest version of the Storage Blob SDK package, please refer to the following examples:
If you don't have an Azure subscription, create a free account before you begin.
Step 1 : Create a new general-purpose storage account to use for this tutorial.
Resource group
, create a new one and give it a unique name.Location
to use for your Storage Account.Account kind
to StorageV2(general purpose v2).Performance
to Standard.Replication
to Locally-redundant storage (LRS).Secure transfer required
to Disabled.Step 2 : Copy and save keys.
Linux
export AZURE_STORAGE_ACCOUNT="<YourAccountName>"
export AZURE_STORAGE_ACCESS_KEY="<YourAccountKey>"
Windows
setx AZURE_STORAGE_ACCOUNT "<YourAccountName>"
setx AZURE_STORAGE_ACCESS_KEY "<YourAccountKey>"
First, clone the repository on your machine:
git clone https://github.com/Azure-Samples/azure-sdk-for-java-storage-blob-upload-download.git
Finally, run the application with the mvn compile exec:java
command.
mvn compile exec:java
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.
When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.