How to copy existing Blob into Azure Media Services using the CLI - azure-blob-storage

I'm looking for a way to copy an existing Blob from an Azure "Storage account" to an Azure "Media Services account" using the CLI or the portal.
There seems to be plenty of documentation for Windows centric platforms- but nothing for 'nix or Mac users.
Side note: Why is there an assumption that I would want to do this via code? (which btw also seems to require a Windows platform)? I've got a large video (e.g., larger then the 200MB limit for portal upload) - I want to load it into media service - why is that so difficult?

I'm not an expert on this, but from a quick glance at the portal and testing it, it seems like you can just upload your video to the (classic) Storage Account created with Azure Media Services, using any tool that can handle Azure Blob Storage, such as the cross platform Cyberduck. After that you can simply select that video in the portal under upload content > from storage. Note that it only works with classic storage accounts.

You can upload you media to any blob storage account
Then when you want to create a media services asset you can copy it to the Media Services blob storage and create an asset using the blob you moved.
Unfortunately at the moment Azure Media Service is not supported VIA Azure Cli
But there is a power shell support
See this article
You can write some code and do everything using the SDK
There are SDKs for .Net , Java, Python, Node, Php and more...

To be visible in the Azure Media Service storage explorer UI, your files need to add a valid extension, as answered here : Azure not displaying blobs within container in Storage Account
Hope this helps,
Julien

Related

Azure Storage Blob Policy to enforce ClientSideEncryptionVersion.V2_0

i updated my application because of this security vulnerability.
Is it possible to set a policy in Azure Storage Blob that only blobs without encryption or with ClientSideEncryptionVersion.V2_0 can be uploaded?
Upload attempts with ClientSideEncryptionVersion.V1_0 should be blocked.
We don't have this feature today. You may leave your feedback here All the feedback you share in these forums will be monitored and reviewed by the Microsoft engineering teams responsible for building Azure.
Client side encryption can be done only using SDK because we use CEK to encrypt the data before uploading, so you have to write your own custom logic for this scenario, Also make sure that all your application are upgraded to latest SDK.
Alternatively, would it be possible to use the Azure Metric Explorer to evaluate the upload attempts with the ClientSideEncryptionVersion?
No. Encryption metadata is stored with the blob, but we don’t have granular tracking for what metadata is set.
Or can you alternatively, for example, give a tag or an application version when uploading that is saved together with the blob?
This is completely dependent on the application and the features you use in storage/the SDK. There isn’t anything automatically enabled by the SDK.
Please let me know if you have any further queries.

Create Azure VM from image created under different subscription

Is there a way to take a backup of a VM (image capture following the sysprep method) and then make that image in the gallery visible to someone under their subscription. For example, I create a VM, archive it off to the image gallery, then my colleague comes along and wants to create a VM from that image (the colleague cannot be a co-administrator on my subscription).
Alternatively, is there just a way to move the VM to a different subscription without archving it off and recreating?
Have found the following but this is a bit convoluted and requires purchase of third party software
http://gauravmantri.com/2012/07/04/how-to-move-windows-azure-virtual-machines-from-one-subscription-to-another/
Many thanks
Richard Clarke
I don't think you can use images created in one subscription to create VMs in another subscription. You would need to copy those images into your subscription. Since images are nothing but Page Blobs in your storage account, you would need to copy them into a storage account in your target subscription, create images off of them and then deploy VMs. I'm not aware of any other way around it.
Regarding your comment about requires purchase of third party software, that's not really true. You don't have to buy 3rd party software. The main thing is to move your VHDs (which are page blobs) from one subscription to another. Do take a look at Step 1 - Copy Blobs in that blog post. It has a link to console application with source code that you can use to copy blob across. I used Cloud Storage Studio to explore my blob storage. You can use any other storage explorer to check the contents of blob storage (including Windows Azure portal). Cerebrata recently released a free blob storage explorer which you may want to check out: http://www.cerebrata.com/labs/azure-explorer.
Unfortunately that's the only way that I know of to create Azure VMs from images created under different subscriptions.
This is now possible using Azure Shared Image Galleries
Edit:
#Shanky the subscription ID is part of the resource ID for the image version. It will look like this:
/subscriptions/$subscriptionId/resourceGroups/$resourceGroup/providers/Microsoft.Compute/galleries/$galleryName/images/$galleryImageDefinition/versions/$imageVersion
You pass that as the ImageReference.id when creating a VM. It's similar to creating a VM from a marketplace image but you just pass the ImageReference ID instead of the publisher/sku/etc.

How to store/share from my app to skydrive?

I'm planning to use cloud storage in my WP7 app. Can I use Skydrive to store information or share information with other user's using my app?
You can use the Live SDK to connect to SkyDrive. There's also an example tutorial here.

Accessing Azure Blob Storage from a VB6 App

Does anyone know if its possible to connect to Azure blob storage from a VB6 App and, if so, how would you do it?
I've got a CMS written in VB6 and I need to offer uploading images and files to the web server. The idea is that we'll store images and files in Azure blob storage but seeing how I'm not using the .Net framework how could I do it? If at all.
Thanks
Steve
A VB6 CMS that uses Azure? +1, Rock and roll!
I think I would write a .Net component to access the Blob storage, make it COM-visible, and call it from VB6 via COM.
I might be completely off, but I think the easiest way to access Azure is from a web service that is actually running on Azure. So I would write a web service that's sitting on Azure and then hit the web service from VB6.
There are a number of libraries out there that allow you to access Web Services from VB6.
Can't you just use a simple PUT via WinHTTPRequest, etc?
http://msdn.microsoft.com/en-us/library/dd179451.aspx

Azure + Windows phone 7

I am planning on a photo app, and want to know how I could upload/ download images from windows phone 7 to the blob storage as well as access the table storage. I don't mind placing the access key on the application, since the app is planned to be distributed internally only.
Since the Azure API is not available can somebody tell me how I can do the same ?
You can:
use Azure BLOB API directly (including key on the phone)
Abstract Blob operations behind a server-side web service
I also recommend to check out article by Steve Marx on accessing Azure Blob from Silverlight. It covers a wide range of topics including Shared Access Signatures and how to actually work with Azure Blob API.
I would not place the Access key into any client device. You should think about creating a webservice which can handle the upload for you. That way your phone has not to know about the Azure API.
Try to decouple your Phone 7 application from the backend implementation. Windows Phone 7 supports XNA and Silverlight applications so I guess you're going for the latter. That implies that you need to connect to a service anyway. I would suggest that you put all the backend and Azure specific logic behind a WCF service and call that from within your application.

Resources