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

VirtualMachineScaleSetVmCollection.GetAllAsync 方法

定义

获取 VM 规模集中所有虚拟机的列表。

  • 请求路径/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines
  • 操作IdVirtualMachineScaleSetVMs_List
public virtual Azure.AsyncPageable<Azure.ResourceManager.Compute.VirtualMachineScaleSetVmResource> GetAllAsync (string filter = default, string select = default, string expand = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAllAsync : string * string * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Compute.VirtualMachineScaleSetVmResource>
override this.GetAllAsync : string * string * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Compute.VirtualMachineScaleSetVmResource>
Public Overridable Function GetAllAsync (Optional filter As String = Nothing, Optional select As String = Nothing, Optional expand As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of VirtualMachineScaleSetVmResource)

参数

filter
String

要应用于操作的筛选器。 允许的值为“startswith (instanceView/statuses/code、'PowerState') eq true”、“properties/latestModelApplied eq true”、“properties/latestModelApplied eq false”。

select
String

列表参数。 允许的值为“instanceView”、“instanceView/statuses”。

expand
String

要应用于操作的 expand 表达式。 允许的值为“instanceView”。

cancellationToken
CancellationToken

要使用的取消标记。

返回

的异步集合 VirtualMachineScaleSetVmResource ,可能需要循环访问多个服务请求。

适用于