需要 Azure powershell 命令来获取 Azure Kubernetes 服务
Need Azure powershell command to get the Azure Kubernetes Service
请帮助我找到 azure powershell 命令以使用 powershell 获取 azure 租户中的 Azure Kubernetes 服务 运行 列表。请帮忙 。
您可以使用 get-azurermresource
和 where-object
来过滤结果:
Get-AzureRmResource | ? resourcetype -eq 'Microsoft.ContainerService/managedClusters'
但您必须围绕所有订阅创建一个循环。
或者您可以使用新的 AzureRmGraph 模块:
Search-AzureRmGraph -Query "where type =~ 'Microsoft.ContainerService/managedClusters'
请帮助我找到 azure powershell 命令以使用 powershell 获取 azure 租户中的 Azure Kubernetes 服务 运行 列表。请帮忙 。
您可以使用 get-azurermresource
和 where-object
来过滤结果:
Get-AzureRmResource | ? resourcetype -eq 'Microsoft.ContainerService/managedClusters'
但您必须围绕所有订阅创建一个循环。
或者您可以使用新的 AzureRmGraph 模块:
Search-AzureRmGraph -Query "where type =~ 'Microsoft.ContainerService/managedClusters'