GithubHelp home page GithubHelp logo

victorchin / storage-blob-dotnet-getting-started Goto Github PK

View Code? Open in Web Editor NEW

This project forked from azure-samples/storage-blob-dotnet-getting-started

0.0 1.0 0.0 140 KB

The getting started sample demonstrates how to perform common tasks using the Azure Blob Service in .NET including uploading a blob, CRUD operations, listing, as well as blob snapshot creation.

License: MIT License

C# 100.00%

storage-blob-dotnet-getting-started's Introduction

page_type languages products description urlFragment
sample
csharp
azure
Demonstrates how to use the Blob Storage service.
storage-blob-dotnet-getting-started

Azure Blob Storage Samples for .NET

Demonstrates how to use the Blob Storage service. Blob storage stores unstructured data such as text, binary data, documents or media files. Blobs can be accessed from anywhere in the world via HTTP or HTTPS.

Note: This sample uses the .NET Framework 4.7.2 asynchronous programming model to demonstrate how to call Azure Storage using asynchronous API calls. When used in real applications, this approach enables you to improve the responsiveness of your application. Calls to Azure Storage are prefixed by the await keyword. For more information about asynchronous programming using the Async/Await pattern, see Asynchronous Programming with Async and Await (C# and Visual Basic).

If you don't already have a Microsoft Azure subscription, you can get a FREE trial account here.

Running this sample

This sample can be run using either the Azurite emulator that installs as part of this SDK - or by updating the App.Config file with your AccountName and Key. To run the sample using the emulator (default option):

  1. Install the mkcert here.
  2. Clone Azurite to local here.
  3. After cloning source code, execute following commands to install Azurite V3.
npm ci
npm run build
npm install -g
  1. After intalling Azurite, execute following commands to start Azurite V3.
mkcert -install
mkcert certname
azurite --oauth basic --cert certname.pem --key certname-key.pem
  1. Set breakpoints and run the project using F10.

To run the sample using the Storage Service

  1. Open the app.config file. Comment out the connection string and account for the Azurite. Uncomment the connection string and account for the Storage service (AccountName=[]...).
  2. Create a Storage Account through the Azure Portal and provide your [AccountName] and [AccountKey] in the App.Config file.
  3. Set breakpoints and run the project using F10.

More information

storage-blob-dotnet-getting-started's People

Contributors

acomsmpbot avatar tamram avatar perrysk-msft avatar mhopkins-msft avatar 3141592654 avatar robinsh avatar luyunmt avatar v-rajagt-zz avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.