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

在 Azure 门户中创建和共享仪表板Create and share dashboards in the Azure portal

仪表板提供一种方法,以便在你的云资源的 Azure 门户中创建和组织更有针对性的视图。Dashboards provide a way for you to create a focused and organized view in the Azure portal of your cloud resources. 作为一个工作区,您可以快速启动的日常操作的任务并监视资源使用仪表板。Use dashboards as a workspace where you can quickly launch tasks for day-to-day operations and monitor resources. 生成基于项目、 任务或用户角色,例如自定义仪表板。Build custom dashboards based on projects, tasks, or user roles, for example. 在 Azure 门户提供的默认仪表板作为起始点。The Azure portal provides a default dashboard as a starting point. 可以编辑默认的仪表板、 创建和自定义其他仪表板,并发布和共享仪表板,以向其他用户提供。You can edit the default dashboard, create and customize additional dashboards, and publish and share dashboards to make them available to other users. 本文介绍如何创建新的仪表板、 自定义界面,并发布和共享仪表板。This article describes how to create a new dashboard, customize the interface, and publish and share dashboards.

创建新的仪表板Create a new dashboard

在此示例中,我们将创建新的专用仪表板,并分配一个名称。In this example, we create a new, private dashboard and assign a name. 请按照以下步骤来开始操作:Follow these steps to get started:

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

  2. 选择仪表板从左侧边栏的上半部分。Select Dashboard from the upper section of the left sidebar. 默认视图可能已设置为仪表板中。Your default view might already be set to dashboard.

  3. 选择 + 新仪表板Select + New dashboard.

    默认的仪表板的屏幕截图

  4. 此操作将打开磁贴库,你将从中选择磁贴,以及一个空网格,其中将排列磁贴。This action opens the Tile Gallery, from which you'll select tiles, and an empty grid where you'll arrange the tiles.

    磁贴库和空网格的屏幕截图

  5. 选择我的仪表板仪表板中的文本标签和输入将帮助你轻松识别自定义仪表板的名称。Select the My Dashboard text in the dashboard label and enter a name that will help you easily identify the custom dashboard.

  6. 选择完成自定义在页头退出编辑模式。Select Done customizing in the page header to exit edit mode.

现在,仪表板视图显示空仪表板。The dashboard view now shows your empty dashboard. 选择要查看可供你的仪表板的仪表板名称旁边的下拉列表-列表可能包括的其他用户创建和共享仪表板。Select the drop-down next to the dashboard name to see dashboards available to you – the list might include dashboards that other users have created and shared.

编辑仪表板Edit a dashboard

现在,让我们编辑仪表板以添加、 调整大小和排列表示你的 Azure 资源的磁贴。Now, let's edit the dashboard to add, resize, and arrange tiles that represent your Azure resources.

添加磁贴Add tiles

若要添加到仪表板磁贴,请执行以下步骤:To add tiles to a dashboard, follow these steps:

  1. 选择编辑图标编辑页标头中。Select edit icon Edit from the page header.

    突出显示编辑的仪表板的屏幕截图

  2. 浏览磁贴库或使用搜索字段查找所需的磁贴。Browse the Tile Gallery or use the search field to find the tile you want.

  3. 选择添加自动将该磁贴添加到仪表板使用的默认大小和位置。Select Add to automatically add the tile to the dashboard with a default size and location. 或者,拖动到网格中该磁贴,并将它放置在要。Or, drag the tile to the grid and place it where you want.

许多资源页面 (也称为"边栏选项卡") 的命令栏中包括图钉图标。Many resource pages (also known as “blades”) include a pushpin icon in the command bar. 如果您选择的图标,表示源页的磁贴固定到当前处于活动状态的仪表板。If you select the icon, a tile representing the source page is pinned to the dashboard that is currently active. 此方法是将磁贴添加到你的仪表板的替代方法。This method is an alternative way to add tiles to your dashboard.

使用图钉图标页命令栏的屏幕截图

提示

如果使用多个组织时,将添加组织标识磁贴到仪表板可清晰显示服务的组织资源属于。If you work with more than one organization, add the Organization identity tile to your dashboard to clearly show which organization the resources belong to.

重设大小或重新排列磁贴Resize or rearrange tiles

若要更改磁贴的大小或重新排列磁贴在仪表板上的,执行以下步骤:To change the size of a tile or to rearrange the tiles on a dashboard, follow these steps:

  1. 选择编辑图标编辑页标头中。Select edit icon Edit from the page header.

  2. 选择上下文菜单中的磁贴右上角。Select the context menu in the upper right corner of a tile. 然后,选择磁贴大小。Then, choose a tile size. 支持任意大小的磁贴右下角,可将该磁贴拖到所需的大小还包含一个"句柄"。Tiles that support any size also include a "handle" in the lower right corner that lets you drag the tile to the size you want.

    包含磁贴大小菜单打开的仪表板的屏幕截图

  3. 选择一个磁贴和网格排列您的仪表板上将其拖到新位置。Select a tile and drag it to a new location on the grid to arrange your dashboard.

更多磁贴配置Additional tile configuration

一些磁贴可能需要更多的配置,以显示所需的信息。Some tiles may need more configuration to show the information you want. 例如,度量值图表磁贴必须设置为显示从指标Azure MonitorFor example, the Metrics chart tile has to be set up to display a metric from Azure Monitor. 此外可以自定义磁贴数据重写仪表板的默认时间设置。You can also customize tile data to override the dashboard's default time settings.

需要设置显示任何磁贴配置磁贴横幅之前自定义磁贴。Any tile that needs to be set up displays a Configure tile banner until you customize the tile. 选择该标题中,然后执行操作所需的设置。Select that banner, then do the required setup.

需要配置的磁贴的屏幕截图

备注

Markdown 磁贴可以显示在仪表板上的自定义的静态内容。A markdown tile lets you display custom, static content on your dashboard. 这可能是基本说明、 图像、 一组超链接,或甚至联系信息。This could be basic instructions, an image, a set of hyperlinks, or even contact information. 有关使用 markdown 磁贴的详细信息,请参阅使用自定义 markdown 磁贴For more information about using a markdown tile, see Use a custom markdown tile.

自定义磁贴数据Customize tile data

在仪表板上的数据自动显示在过去 24 小时内的活动。Data on the dashboard automatically shows activity for the past 24 hours. 若要显示不同时间范围只是此磁贴,请执行以下步骤:To show a different time span for just this tile, follow these steps:

  1. 选择筛选器图标中的磁贴或选择左上角的筛选器图标自定义磁贴数据从上下文菜单。Select the filter icon filter icon from the upper left corner of the tile or select Customize tile data from the context menu.

    磁贴上下文菜单的屏幕截图

  2. 选择到复选框重写级别的磁贴的仪表板时间设置Select the checkbox to Override the dashboard time settings at the tile level.

    配置磁贴时设置的对话框的屏幕截图

  3. 选择要显示此磁贴的时间跨度。Choose the time span to show for this tile. 可以选择从过去 30 分钟到过去 30 天内,也可以定义自定义范围。You can choose from the past 30 minutes to the past 30 days or define a custom range.

  4. 选择要显示的时间粒度。Choose the time granularity to display. 可以显示任何位置从一分钟为增量为 1 个月。You can show anywhere from one-minute increments to one-month.

  5. 选择“应用”。 Select Apply.

删除磁贴Delete a tile

若要从仪表板删除磁贴,请按照下列步骤:To remove a tile from a dashboard, follow these steps:

  • 该磁贴右上角选择上下文菜单并选择从仪表板中删除Select the context menu in the upper right corner of the tile, then select Remove from dashboard. 或者,Or,

  • 选择编辑图标编辑输入自定义模式。Select edit icon Edit to enter customization mode. 将鼠标悬停在右上角的磁贴,然后选择删除图标删除图标以从仪表板删除磁贴。Hover in the upper right corner of the tile, then select the delete icon delete icon to remove the tile from the dashboard.

    显示如何从仪表板删除磁贴的屏幕截图

克隆仪表板Clone a dashboard

若要为新的仪表板作为模板使用现有的仪表板,请按照下列步骤:To use an existing dashboard as a template for a new dashboard, follow these steps:

  1. 请确保仪表板视图显示了你想要复制的仪表板。Make sure that the dashboard view is showing the dashboard that you want to copy.
  2. 在页眉中,选择克隆图标克隆In the page header, select clone icon Clone.
  3. 一份名为仪表板"的克隆仪表板名称"中的打开编辑模式。A copy of the dashboard, named "Clone of your dashboard name" opens in edit mode. 使用本文中前面的步骤来重命名和自定义仪表板。Use the preceding steps in this article to rename and customize the dashboard.

发布和共享仪表板Publish and share a dashboard

创建仪表板,时,默认情况下,这意味着您是唯一可以看到它的人为私有。When you create a dashboard, it's private by default, which means you're the only one who can see it. 若要使仪表板提供给其他人,可以与其他用户共享它们。To make dashboards available to others, you can share them with other users. 首先,必须发布为 Azure 资源仪表板。First, you have to publish the dashboard as an Azure resource. 若要发布和共享自定义仪表板,请执行以下步骤:To publish and share a custom dashboard, follow these steps:

  1. 选择共享图标共享页标头中。Select share icon Share from the page header. 共享 + 访问控制窗体随即出现。The Sharing + access control form appears.

  2. 验证显示正确的仪表板名称。Verify that the correct dashboard name is shown.

  3. 选择订阅名称Select a Subscription name. 具有订阅的访问权限的用户可以使用共享的仪表板。Users with access to the subscription can use the shared dashboard. 由 Azure 基于角色的访问控制决定对各个磁贴所表示的资源的访问。Access to the resources represented by the individual tiles is determined by Azure role-based access control.

  4. 选择该复选框以将此仪表板发布到所选订阅的仪表板资源组。Select the checkbox to publish this dashboard to the 'dashboards' resource group for the selected subscription. 或者,清除该复选框,并选择改为发布到现有的资源组。Or, clear the checkbox and choose to publish to an existing resource group instead.

  5. 选择仪表板资源的位置。Choose a location for the dashboard resource. 我们建议你找到的其他资源的仪表板。We recommend you locate the dashboard with other resources. 注意: 如果选择现有资源组中,则仪表板是与该资源组会自动放在一起。Note: if you choose from existing resource groups, the dashboard is automatically located with that resource group.

  6. 选择“发布” 。Select Publish.

    仪表板发布对话框的屏幕截图

共享仪表板上设置访问控制Set access control on a shared dashboard

发布仪表板后,管理谁有权访问仪表板通过执行以下步骤:After the dashboard is published, manage who has access to the dashboard by following these steps:

  1. 在中共享 + 访问控制窗格中,选择管理用户In the Sharing + access control pane, select Manage users.

    仪表板共享 + 访问的屏幕截图控制对话框

  2. 访问控制页随即打开。The Access Control page opens. 在此页上,可以查看其他人的访问级别,或添加新的角色分配。On this page, you can review the level of access for someone or add a new role assignment. 当你添加角色分配时,授予对仪表板的权限。When you add a role assignment here, you're granting permissions to the dashboard.

备注

磁贴是在组织中的资源的代表视图。Tiles are representative views of resources in your organization. 通过基于角色的访问控制分配管理对资源的访问和权限继承到资源的订阅。Access to resources is managed through role-based access control assignment and permissions are inherited from the subscription down to the resource. 向仪表板的权限不会自动将权限分配给在仪表板上显示的资源中。Giving access to a dashboard doesn’t automatically assign permissions to the resources shown on the dashboard. 有关共享仪表板和资源的基于角色的访问控制权限的详细信息,请参阅与基于角色的访问控制共享仪表板For more information about permissions to shared dashboards and role-based access control for resources, see Share dashboards with role-based access control.

打开共享的仪表板Open a shared dashboard

若要查找和打开共享的仪表板,请执行以下步骤:To find and open a shared dashboard, follow these steps:

  1. 选择仪表板名称旁边的下拉列表。Select the drop-down next to the dashboard name.

  2. 从列表中显示的仪表板中进行选择或浏览所有仪表板如果未列出你想要打开的仪表板。Select from the displayed list of dashboards or Browse all dashboards if the dashboard you want to open isn't listed.

    仪表板选择菜单的屏幕截图

  3. 在中类型字段中,选择共享仪表板In the Type field, select Shared dashboards.

  4. 选择一个或多个订阅。Select one or more subscriptions. 您还可以输入文本以按名称筛选仪表板。You can also enter text to filter dashboards by name.

  5. 从共享的仪表板的列表中选择一个仪表板。Select a dashboard from the list of shared dashboards.

删除仪表板Delete a dashboard

若要永久删除私有或共享仪表板,请执行以下步骤:To permanently delete a private or shared dashboard, follow these steps:

  1. 选择你想要从仪表板名称旁边的下拉列表中删除的仪表板。Select the dashboard you want to delete from the drop-down list next to the dashboard name.

  2. 选择删除图标删除页标头中。Select delete icon Delete from the page header.

  3. 对于专用仪表板中,选择确定在确认对话框中删除仪表板。For a private dashboard, select OK on the confirmation dialog to remove the dashboard. 对于共享的仪表板,在确认对话框中,选择复选框以确认不再将其他人可查看已发布的仪表板。For a shared dashboard, on the confirmation dialog, select the checkbox to confirm that the published dashboard will no longer be viewable by others. 选择“确定”。 Then, select OK.

    删除确认的屏幕截图

后续步骤Next steps