使用 Azure 门户创建媒体服务帐户Create a Media Services account using the Azure portal

备注

不会向媒体服务 v2 添加任何新特性或新功能。No new features or functionality are being added to Media Services v2.
查看最新版本:媒体服务 v3Check out the latest version, Media Services v3. 另请参阅从 v2 到 v3 的迁移指南Also, see migration guidance from v2 to v3

使用 Azure 门户,可以快速创建 Azure 媒体服务 (AMS) 帐户。The Azure portal provides a way to quickly create an Azure Media Services (AMS) 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. 创建媒体服务帐户时,还可以创建关联的存储帐户(或使用现有帐户)。At the time you create a Media Services account, you also create an associated storage account (or use an existing one). 如果删除媒体服务帐户,相关存储帐户中的 Blob 不会被删除。If you delete a Media Services account, the blobs in your related storage account are not deleted.

可以将“常规用途 v1”或“常规用途 v2”作为主存储帐户。You can have General Purpose v1 or General Purpose v2 as your primary storage account. 目前,Azure 门户仅允许选择 v1,但在使用 API 或 Powershell 创建帐户时,可以添加 v2。Currently, the Azure portal only allows picking v1 but you can add v2 when creating you account using the API or Powershell. 有关存储类型的详细信息,请参阅关于 Azure 存储帐户For more information about storage types, see About Azure storage 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.

本文展示了如何使用 Azure 门户创建媒体服务帐户。This article shows how to create a Media Services account using the Azure portal.

备注

若要了解 Azure 媒体服务功能在不同区域的可用性,请参阅 AMS 功能的跨数据中心可用性For information about availability of Azure Media Services features in different regions, see availability of AMS features across datacenters.

必备条件Prerequisites

若要完成本教程,需要一个 Azure 帐户。To complete this tutorial, you need an Azure account. 有关详细信息,请参阅 Azure 1 元试用For details, see Azure 1rmb Trial.

创建 AMS 帐户Create an AMS account

本部分中的步骤说明如何创建 AMS 帐户。The steps in this section show how to create an AMS account.

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

  2. 单击“+新建” > 搜索“媒体服务” 。Click +New > Search Media Services.

    媒体服务创建

  3. 在“创建媒体服务帐户” 中输入所需的值。In CREATE MEDIA SERVICES ACCOUNT enter required values.

    媒体服务创建

    1. 在“帐户名” 中,输入新的 AMS 帐户的名称。In Account Name, enter the name of the new AMS 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.

    2. 在“订阅”中,在有权访问的不同 Azure 订阅中进行选择。In Subscription, select among the different Azure subscriptions that you have access to.

    3. 在“资源组” 中,选择新的或现有的资源。In 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.

    4. 在“位置” 中,选择用于存储媒体服务帐户的媒体和元数据记录的地理区域。In 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.

    5. 在“存储帐户” 中,选择一个存储帐户以便为媒体服务帐户中的媒体内容提供 Blob 存储。In Storage Account, 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 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.

      单击此处了解有关存储的详细信息。Learn more about storage here.

    6. 选择“固定到仪表板” 以查看帐户部署进度。Select Pin to dashboard to see the progress of the account deployment.

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

    成功创建帐户后,会加载概述页。Once the account is successfully created, overview page loads. 在流式处理终结点表中,帐户包含一个处于“已停止”状态的默认流式处理终结点。 In the streaming endpoint table the account will have a default streaming endpoint in the Stopped state.

    备注

    创建 AMS 帐户后,会将一个处于“已停止”状态的默认流式处理终结点添加到帐户。 When your AMS 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.

管理 AMS 帐户To manage your AMS account

若要管理 AMS 帐户(例如,以编程方式连接到 AMS API、上传视频、对资产进行编码、配置内容保护、监视作业进度),请在门户左侧选择“设置”。 To manage your AMS account (for example, connect to the AMS API programmatically, upload videos, encode assets, configure content protection, monitor job progress) select Settings on the left side of the portal. 从“设置” 导航到某个可用的边栏选项卡(例如:“API 访问权限”、“资产”、“作业”、“内容保护”)。 From the Settings, navigate to one of the available blades (for example: API access, Assets, Jobs, Content protection).

后续步骤Next steps

现在可以将文件上传到 AMS 帐户。You can now upload files into your AMS account. 有关详细信息,请参阅上传文件For more information, see Upload files.

如果计划以编程方式访问 AMS API,请参阅通过 Azure AD 身份验证访问 Azure 媒体服务 APIIf you plan to access AMS API programmatically, see Access the Azure Media Services API with Azure AD authentication.

媒体服务学习路径Media Services learning paths

媒体服务 v3(最新版本)Media Services v3 (latest)

查看最新版本的 Azure 媒体服务!Check out the latest version of Azure Media Services!

媒体服务 v2(旧版)Media Services v2 (legacy)