ComputeExtensions.GetVirtualMachineScaleSetsByLocation メソッド

定義

指定した場所の指定したサブスクリプションの下にあるすべての VM スケール セットを取得します。

  • 要求パス/サブスクリプション/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/virtualMachineScaleSets
  • 操作IdVirtualMachineScaleSets_ListByLocation
public static Azure.Pageable<Azure.ResourceManager.Compute.VirtualMachineScaleSetResource> GetVirtualMachineScaleSetsByLocation (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default);
static member GetVirtualMachineScaleSetsByLocation : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Compute.VirtualMachineScaleSetResource>
<Extension()>
Public Function GetVirtualMachineScaleSetsByLocation (subscriptionResource As SubscriptionResource, location As AzureLocation, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of VirtualMachineScaleSetResource)

パラメーター

subscriptionResource
SubscriptionResource

SubscriptionResourceメソッドが実行されるインスタンス。

location
AzureLocation

サブスクリプションの下の VM スケール セットのクエリを実行する場所。

cancellationToken
CancellationToken

使用する取り消しトークン。

戻り値

反復処理するために複数の VirtualMachineScaleSetResource サービス要求を受け取る可能性がある のコレクション。

適用対象