Azure媒体服务(v3)-特定的输出资产容器名称 [英] Azure Media Services (v3) - specific output asset container name

查看:39
本文介绍了Azure媒体服务(v3)-特定的输出资产容器名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个与 AMSV3Quickstarts 示例,我需要根据我的程序逻辑/合同为输出资产更改容器的默认名称.可以以某种方式更改输出资产容器的名称吗?

I have a program similar to AMSV3Quickstarts example and I need to change the default name for container for the output asset in accordance with my program logic/contract. Is it possible to change the output asset container name somehow?

我尝试过的:

  • RTFM
  • 更改转换作业名称
  • 更改定位器名称
  • 更改输出资产名称

但是,在我的Blob存储中,它仍然是 asset- {GUID} 格式.

However, in my blob storage, it is still in asset-{GUID} format.

推荐答案

使用REST API创建资产时,您可以设置容器名称:

When using the REST API for Create Asset you are able to set the container name:

https://management.azure.com/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Media/mediaServices/:accountName/assets/:assetName?api-version={{api-version}}

{
  "properties": {
    "description": "A documentary showing the ascent of Mount Logan",
    "alternateId": "(Optional) some GUID",
    "storageAccountName": "(Optional) someStorageAccount",
    "container": "(Optional) custom container name if you want"
  }
}

使用.NET SDK时,资产模型包含相同的参数: https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.management.media.models.asset?view=azure-dotnet

When using the .NET SDK, the Asset model contains the same parameters: https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.management.media.models.asset?view=azure-dotnet

这篇关于Azure媒体服务(v3)-特定的输出资产容器名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆