你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Azure Data Studio 仪表板

在查看 Azure Arc 资源的相关信息时,Azure Data Studio 提供了与 Azure 门户类似的体验。 These views are called dashboards and have a layout and options similar to what you could see about a given resource in the Azure portal, but give you the flexibility of seeing that information locally in your environment in cases where you don't have a connection available to Azure.

连接到数据控制器

Prerequisites

Connect

  1. 打开 Azure Data Studio。

  2. Select the Connections tab on the left.

  3. 展开称为“Azure Arc 控制器”的面板。

  4. Select the Connect Controller button.

    Azure Data Studio 在右侧打开边栏选项卡。

  5. Enter the Namespace for the data controller.

    Azure Data Studio 从默认目录中的 kube.config 文件读取,并列出可用的 Kubernetes 群集上下文。 它选择当前的群集上下文。 如果这是要连接到的正确群集,请使用该命名空间。

    如果需要检索部署了 Azure Arc 数据控制器的命名空间,可以在 kubernetes 群集上运行 kubectl get datacontrollers -A

  6. Optionally add a display name for the Azure Arc data controller in the input for Name.

  7. Select Connect.

连接到数据控制器后,可以查看仪表板。 Azure Data Studio 具有数据控制器和您拥有的所有 SQL 托管实例资源的仪表板。

查看数据控制器仪表板

Right-click on the data controller in the Connections panel in the Arc Controllers expandable panel and choose Manage.

可在此处查看有关数据控制器资源(例如名称、区域、连接模式、资源组、订阅、控制器终结点和命名空间)的详细信息。 还可以查看数据控制器管理的所有托管数据库资源的列表。

你会注意到其布局类似于你可能在 Azure 门户中看到的内容。

通过单击“+ 新建实例”按钮,可以轻松启动 SQL 托管实例的创建。

还可以通过单击“在 Azure 门户中打开”按钮,在此数据控制器的上下文中打开 Azure 门户。

查看 SQL 托管实例仪表板

If you have created some SQL Managed Instances, see them listed under Connections in the Azure Data Controllers expandable panel underneath the data controller that is managing them.

To view the SQL Managed Instance dashboard for a given instance, right-click on the instance and choose Manage.

The Connection panel prompts you for the login and password to connect to an instance. If you know the connection information you can enter it and choose Connect. If you don't know, choose Cancel. Either way, Azure Data Studio returns to the dashboard when the Connection panel closes.

On the Overview tab, view resource group, data controller, subscription ID, status, region, and other information. 此位置还提供指向 Grafana 仪表板的链接以查看指标,或提供 Kibana 仪表板的链接以查看该 SQL 托管实例的上下文中的日志。

通过连接到 SQL 管理实例,你可以在此处查看更多信息。

你可以从此处删除 SQL 托管实例,或者打开 Azure 门户以查看 Azure 门户中的 SQL 托管实例。

If you click on the Connection Strings tab, the Azure Data Studio presents a list of pre-constructed connection strings for that instance making. 将这些字符串复制并粘贴到各种其他应用程序或代码中。