Copy blob into an Azure Media Services asset using .NET SDK Extensions

autor: Julia Kornich
Ostatnia aktualizacja: 2017-02-02
Edytuj w witrynie GitHub

This sample shows how to copy existing blobs from a storage account into a new Azure Media Services asset.


  • Two Media Services accounts in a new or existing Azure subscription. See the topic How to Create a Media Services Account.
  • Operating Systems: Windows 10, Windows 7, Windows 2008 R2, or Windows 8.
  • .NET Framework 4.5.
  • Visual Studio 2010 SP1 (Professional, Premium, Ultimate, or Express) or later.

Running this sample

  1. Use NuGet to install and add Azure Media Services .NET SDK Extensions (windowsazure.mediaservices.extensions). Installing this package, also installs Media Services .NET SDK and adds all other required dependencies.

  2. Add the appSettings section to the app.config file, and set the values for your Media Services account name and account key.

          <add key="MediaServicesSourceAccountName" value="name"/>
          <add key="MediaServicesSourceAccountKey" value="key"/>
          <add key="MediaServicesDestAccountName" value="name"/>
          <add key="MediaServicesDestAccountKey" value="key"/>
          <add key="DestStorageAccountName" value="name"/>
          <add key="DestStorageAccountKey" value="key"/>
          <add key="SourceAssetID" value="nb:cid:UUID:assetID"/>       

About the code

For more information, see the following topics:

Use tools to copy blobs into assets

You can also use the following tools to copy blobs into assets.

More information

You can view AMS learning paths here: