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

已启用 Arc 的数据服务库存

可以在 Azure 门户或 Kubernetes 群集中查看启用了 Azure Arc 的数据服务。

在 Azure 门户中查看资源

To view your resource in the Azure portal, follow these steps: To view your resource in the Azure portal, follow these steps:

  1. Go to All services.
  2. 搜索数据库实例类型。
  3. 将类型添加到收藏夹。
  4. 在左侧菜单中,选择实例类型。
  5. 在与其他 Azure SQL 资源相同的视图中查看您的实例(可使用筛选器以获得更为细致的视图)。

查看 kubernetes 群集中的资源

If the Azure Arc data controller is deployed in indirect connectivity mode, you can run the below command to get a list of all the Azure Arc SQL managed instances:

az sql mi-arc list --k8s-namespace <namespace> --use-k8s
#Example
az sql mi-arc list --k8s-namespace arc --use-k8s

If the Azure Arc data controller is deployed in direct connectivity mode, you can run the below command to get a list of all the Azure Arc SQL managed instances:

az sql mi-arc list --resource-group <resourcegroup>
#Example
az sql mi-arc list --resource-group myResourceGroup