您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

使用门户创建 Internet 分析器测试(预览版)Create an Internet Analyzer test using Portal (Preview)

可通过两种方式创建 Internet 分析器资源:使用 Azure 门户或使用 CLI。There are two ways to create an Internet Analyzer resource- using the Azure portal or using CLI. 本部分介绍如何使用门户体验创建新的 Azure Internet 分析器资源。This section helps you create a new Azure Internet Analyzer resource using our portal experience.

重要

此公共预览版在提供时没有附带服务级别协议,不应用于生产工作负荷。This public preview is provided without a service level agreement and should not be used for production workloads. 某些功能可能不受支持或受到约束,或者不一定在所有 Azure 位置都可用。Certain features may not be supported, may have constrained capabilities, or may not be available in all Azure locations. 有关详细信息,请参阅 Microsoft Azure 预览版补充使用条款See the Supplemental Terms of Use for Microsoft Azure Previews for details.

开始之前Before you begin

公开预览版可以全局使用;但是,在预览期间,只有美国西部 2 支持数据存储 。The public preview is available to use globally; however, data storage is limited to US West 2 during preview.

基础Basics

  1. 按照 Azure Internet 分析器常见问题解答的“如何参与预览?”中的说明获得 Internet 分析器的预览版访问权限 。Get Internet Analyzer preview access by following the How do I participate in the preview? instructions from the Azure Internet Analyzer FAQ.

  2. Azure 门户的主页中,单击“+ 创建资源”。 From the home page in the Azure portal, click + Create a resource. 目前只能从 Azure 门户预览版获取 Internet 分析器。Internet Analyzer is currently only available from the preview version of the Azure portal.

  3. 在“新建”页上的“搜索市场”字段中搜索“Internet 分析器”。 On the New page, search for "Internet Analyzer" in the Search the Marketplace field.

  4. 单击“Internet 分析器(预览版)”。 Click Internet Analyzer (preview). 确保发行商为“Microsoft”,类别为“网络”。 Make sure the publisher is Microsoft and the category is Networking.

  5. 在“Internet 分析器(预览版)”页上,单击“创建”打开“创建 Internet 分析器”页。 On the Internet Analyzer (preview) page, click Create to open the Create an Internet Analyzer page.

  6. 为 Internet 分析器资源指定以下配置设置:Specify the following configuration settings for your Internet Analyzer resource:

    • 订阅: 用于托管新 Internet 分析器资源的 Azure 订阅。Subscription: The Azure subscription to host the new Internet Analyzer resource. 请使用用于请求预览版访问权限的同一订阅 ID。Use the same Subscription ID used to request preview access.
    • 资源组: 将在其中创建新 Internet 分析器资源的 Azure 资源组。Resource Group: The Azure resource group that the new Internet Analyzer resource will be created in. 如果目前没有资源组,可以创建一个新资源组。If you don’t have an existing resource group, you can create a new one.
    • 名称: 新 Internet 分析器资源配置文件的名称。Name: The name of the new Internet Analyzer resource profile.
    • 区域: 将在其中创建资源的 Azure 公共区域。Region: The Azure public region that the resource will be created in. 在预览期,只能选择“美国西部 2”。 During preview, only US West 2 is available.
  7. 指定完配置文件设置后,单击“查看 + 创建”。 When you have finished specifying your profile settings, click Review + create.

配置Configuration

必须先完成基本步骤,才能配置测试和嵌入 JavaScript 客户端。Completing the basic steps is a prerequisite to configuring a test and embedding the JavaScript client. 创建配置文件后,转到“设置”>“配置”以配置第一个测试。 Once you have created a profile, go to Settings > Configuration to configure your first test.

  1. 在“测试名称”框中指定测试的名称。 Give your test a name in the Test Name box.

  2. 在“说明”字段中添加测试的说明。 Add a description for your test in the Description field.

  3. 单击“配置终结点”,随后右侧会显示一个选项卡。 Click Configure Endpoint - a tab will appear from the right-hand side. 选择要配置的终结点类型 - 单个 Azure 区域、多个 Azure 区域或自定义终结点。Select the type of endpoint you'd like to configure- a single Azure region, multiple Azure regions, or a custom endpoint.

    预配置的终结点:单个 Azure 区域,以及多个 Azure 区域的组合Preconfigured endpoints: single and multiple Azure region combinations

    自定义终结点Custom endpoints

    • 按照创建自定义终结点页上的说明操作。Follow the instructions on the Create Custom Endpoint page.
    • 在门户中粘贴单一像素图像的 HTTPS URL 位置。Paste the HTTPS URL location of the one-pixel image in the portal.
  4. 单击“添加”将终结点添加到测试。 Click Add to add the endpoint to your test.

  5. 重复步骤 1-4 配置第二个终结点。Repeat steps 1-4 to configure your second endpoint. 终结点 B 始终是相对于终结点 A 度量的 - 配置终结点时,请考虑要将哪个终结点用作测试控件。Endpoint B is always measured relative to Endpoint A - when configuring endpoints, consider which endpoint should be your test control.

  6. 单击“保存”按钮保存测试。 Click the Save button to save your test. 保存测试后,不再可以编辑特定测试的终结点。Once you save a test, you can no longer edit the endpoints of a particular test.

  7. 选择要启动的测试,然后单击“开始测试”。 Select the test(s) you want to start and click Start test. 随即会将测试的“状态”更改为“正在运行”。This will change the State of your test(s) to Running. 随时可以开始测试,但是,必须嵌入 JavaScript 客户端才能让测试开始收集度量值。You may start tests at any time, but the JavaScript client must be embedded for the test to start collecting measurements.

  8. 在任意位置添加更多测试。Add more tests at any point. 请注意,只有在创建一个测试之后,才会生成唯一的 JavaScript 客户端。Note that the unique JavaScript client will not be generated until one test is created.

嵌入客户端Embed Client

若要开始进行任何测试,必须在 Web 应用程序中嵌入 JavaScript 客户端。To begin any test, the JavaScript client must be embedded in your Web application. 至少配置一个测试后,单击“查看 + 创建”,转到“设置”>“配置”,然后复制 JavaScript 客户端。 After configuring at least one test, click Review + create, go to Settings > Configuration, and copy the JavaScript client. 可在嵌入 Internet 分析器客户端页上找到具体的说明。Specific instructions can be found on the Embed Internet Analyzer Client page.

后续步骤Next steps