创建媒体服务帐户Create a Media Services account

媒体服务徽标 v3media services logo v3


若要开始加密、编码、分析、管理和流式处理 Azure 中的媒体内容,需要创建媒体服务帐户。To start encrypting, encoding, analyzing, managing, and streaming media content in Azure, you need to create a Media Services account. 媒体服务帐户需与一个或多个存储帐户相关联。The Media Services account needs to be associated with one or more storage accounts. 本文介绍创建新 Azure 媒体服务帐户的步骤。This article describes steps for creating a new Azure Media Services account.

备注

使用 2020-05-01 API 创建的帐户不能使用旧版 RESTv2 API。Accounts created with the 2020-05-01 API cannot use the legacy RESTv2 API. 如果需要,可以使用较旧的 API 版本来创建仍可与旧版 RESTv2 API 一起使用的帐户。Older API versions can be used to create accounts that can still work with the legacy RESTv2 API if needed.

它们可以访问新功能,例如托管标识、使用客户管理的密钥进行静态加密,以及启用从媒体服务帐户到附加存储帐户的可信服务访问。They have access to new features like managed identity, encryption at rest with a customer managed key, and enabling trusted service access from the Media Services account to attached storage accounts.

可以使用 Azure 门户或 CLI 来创建媒体服务帐户。You can use either the Azure portal or the CLI to create a Media Services account. 为要使用的方法选择选项卡。Choose the tab for the method you would like to use.

如果没有 Azure 试用版订阅,请在开始前创建一个试用版订阅If you don't have an Azure trail subscription, create a trial subscription before you begin.

备注

媒体服务帐户和所有关联的存储帐户必须位于同一 Azure 订阅中。The Media Services account and all associated storage accounts must be in the same Azure subscription. 强烈建议在媒体服务帐户所在的位置使用存储帐户,避免额外的延迟和数据出口成本。It is strongly recommended to use storage accounts in the same location as the Media Services account to avoid additional latency and data egress costs.

创建媒体服务帐户Create a Media Services account

  1. 登录到 Azure 门户Sign in at the Azure portal.

  2. 单击“+创建资源” > “媒体” > “媒体服务”。Click +Create a resource > Media > Media Services.

  3. 在“创建媒体服务帐户”部分中输入所需的值。In the Create a Media Services account section enter required values.

    名称Name 说明Description
    帐户名Account Name 输入新的媒体服务帐户的名称。Enter the name of the new Media Services account. 媒体服务帐户名称由小写字母或数字构成(不含空格),长度为 3 到 24 个字符。A Media Services account name is all lowercase letters or numbers with no spaces, and is 3 to 24 characters in length.
    订阅Subscription 如果有多个订阅,请从有权访问的 Azure 订阅的列表中选择一个订阅。If you have more than one subscription, select one from the list of Azure subscriptions that you have access to.
    资源组Resource Group 选择新的或现有的资源。Select the new or existing resource. 资源组是共享生命周期、权限和策略的资源的集合。A resource group is a collection of resources that share lifecycle, permissions, and policies. 此处了解更多信息。Learn more here.
    位置Location 选择用于存储媒体服务帐户的媒体和元数据记录的地理区域。Select the geographic region that will be used to store the media and metadata records for your Media Services account. 此区域用于处理和流式传输媒体。This region will be used to process and stream your media. 下拉列表中仅显示可用的媒体服务区域。Only the available Media Services regions appear in the drop-down list box.
    存储帐户Storage Account 选择一个存储帐户,以便为媒体服务帐户中的媒体内容提供 Blob 存储。Select a storage account to provide blob storage of the media content from your Media Services account. 可以选择位于媒体服务帐户所在的地理区域内的现有存储帐户,也可以创建一个新的存储帐户。You can select an existing storage account in the same geographic region as your Media Services account, or you can create a new storage account. 在同一区域内会创建一个新的存储帐户。A new storage account is created in the same region. 适用于存储帐户名的规则对媒体服务帐户同样适用。The rules for storage account names are the same as for Media Services accounts.

    必须具有一个主存储帐户,并且可以拥有任意数量的与媒体服务帐户关联的辅助存储帐户 。You must have one Primary storage account and you can have any number of Secondary storage accounts associated with your Media Services account. 可以使用 Azure 门户来添加辅助存储帐户。You can use the Azure portal to add secondary storage accounts. 有关详细信息,请参阅 Azure 存储帐户与 Azure 媒体服务帐户For more information, see Azure Storage accounts with Azure Media Services accounts.

    媒体服务帐户和所有关联的存储帐户必须位于同一 Azure 订阅中。The Media Services account and all associated storage accounts must be in the same Azure subscription. 强烈建议在媒体服务帐户所在的位置使用存储帐户,避免额外的延迟和数据出口成本。It is strongly recommended to use storage accounts in the same location as the Media Services account to avoid additional latency and data egress costs.
    高级设置Advanced settings 可通过选择“系统托管”单选按钮,使用系统托管标识创建帐户。You can create an account using a system-managed identity by selecting the System-managed radio button. 做出此选择后,你可以使用客户管理的密钥或创建自己的密钥 (BYOK) 和媒体服务来启用受信任的存储。Making this selection will allow you to use customer managed keys, or bring your own key (BYOK) and Media Services to enable trusted storage. 有关客户管理的密钥的详细信息,请参阅创建自己的密钥(客户管理的密钥)与媒体服务For more information about customer managed keys, see Bring your own key (customer-managed keys) with Media Services. 此外,还将启用托管标识Additionally, managed identities will also be enabled.
  4. 选择“固定到仪表板”以查看帐户部署进度。Select Pin to dashboard to see the progress of the account deployment.

  5. 单击窗体底部的“创建”。Click Create at the bottom of the form.

后续步骤Next steps

流式传输文件Stream a file