次の方法で共有


ComputeExtensions.GetVirtualMachineSizes メソッド

定義

この API は非推奨です。 リソース SKU を使用する

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

パラメーター

subscriptionResource
SubscriptionResource

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

location
AzureLocation

仮想マシン サイズのクエリを実行する場所。

cancellationToken
CancellationToken

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

戻り値

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

適用対象