Set Container Name for Asset on Azure Media Service

Sejal Chorge 116 Reputation points
2021-07-09T05:29:21.463+00:00

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
Azure Media Services
A group of Azure services that includes encoding, format conversion, on-demand streaming, content protection, and live streaming services.
302 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. David Bristol 971 Reputation points Microsoft Employee
    2021-07-09T13:33:04.847+00:00

    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://learn.microsoft.com/en-us/azure/media-services/latest/assets-concept.

    You can use a custom container name for your asset. As per https://learn.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.

    3 people found this answer helpful.