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

媒体服务徽标 v3media services logo v3


若要开始加密、编码、管理和流式处理 Azure 中的媒体内容,需要创建媒体服务帐户。To start encrypting, encoding, 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.

备注

媒体服务帐户和所有关联的存储帐户必须位于同一 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.

可以使用 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 subscription, create a Trial Subscription before you begin.

使用 Azure 门户Use the Azure portal

使用 Azure 门户,可以快速创建 Azure 媒体服务帐户。The Azure portal provides a way to quickly create an Azure Media Services account. 可以使用自己的帐户访问媒体服务,通过这些服务可以在 Azure 中存储、加密、编码、管理和流式传输媒体内容。You can use your account to access Media Services that enable you to store, encrypt, encode, manage, and stream media content in Azure.

目前,可以使用 Azure 门户执行以下操作:Currently, you can use the Azure portal to:

对于其他所有管理任务(例如,转换和作业内容保护),请使用 REST APICLI 或某个受支持的 SDKFor all other management tasks (for example, Transforms and Jobs and Content protection), use the REST API, CLI, or one of the supported SDKs.

使用 Azure 门户创建媒体服务帐户Use the Azure portal to create a Media Services account

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

  2. 单击“+创建资源”> 搜索“媒体” > “媒体服务” 。Click +Create a resource > Search 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.
  4. 选择“固定到仪表板”以查看帐户部署进度。Select Pin to dashboard to see the progress of the account deployment.

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

    创建媒体服务帐户后,会将一个处于“已停止”状态的默认流式处理终结点添加到帐户。When your Media Services account is created a default streaming endpoint is added to your account in the Stopped state. 若要开始对内容进行流式处理并利用动态打包动态加密功能,必须确保要从其流式获取内容的流式处理终结点处于“正在运行”状态。To start streaming your content and take advantage of dynamic packaging and dynamic encryption, the streaming endpoint from which you want to stream content has to be in the Running state.

后续步骤Next steps

流式传输文件Stream a file