question

SejalChorge-0030 avatar image
0 Votes"
SejalChorge-0030 asked SejalChorge-0030 commented

Set Container Name for Asset on Azure Media Service

Initially, if I create an Asset, it creates a container with a name as follow asset-GUID

  1. I want to know if I can use the existing container and assign it to the asset? As I have a container name "asset-public", as I want to store all media into that single container. Refer below

113212-image.png

  1. I would also like to know if I can add a custom Name to the container like video-media-asset.


azure-media-services
image.png (20.0 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

DavidBristol-1279 avatar image
3 Votes"
DavidBristol-1279 answered SejalChorge-0030 commented

Storing all content in a single container is not really supported. This is because all operations are done at the asset level. For example, if you encode a video, you don't encode a specific file. You encode the asset. The same is true with publishing. Media Services was built with the intention of one asset per video. See https://docs.microsoft.com/en-us/azure/media-services/latest/assets-concept.

You can use a custom container name for your asset. As per https://docs.microsoft.com/en-us/rest/api/media/assets/create-or-update you can specify the properties.container which is the Storage container name. Keep in mind that this container must be at the root level of the Storage account.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thank you for the feedback.

0 Votes 0 ·