你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
ComputeExtensions.GetComputeResourceSkusAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取可用于订阅的 Microsoft.Compute SKU 列表。
- 请求路径/subscriptions/{subscriptionId}/providers/Microsoft.Compute/skus
- 操作IdResourceSkus_List
public static Azure.AsyncPageable<Azure.ResourceManager.Compute.Models.ComputeResourceSku> GetComputeResourceSkusAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string filter = default, string includeExtendedLocations = default, System.Threading.CancellationToken cancellationToken = default);
static member GetComputeResourceSkusAsync : Azure.ResourceManager.Resources.SubscriptionResource * string * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Compute.Models.ComputeResourceSku>
<Extension()>
Public Function GetComputeResourceSkusAsync (subscriptionResource As SubscriptionResource, Optional filter As String = Nothing, Optional includeExtendedLocations As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of ComputeResourceSku)
参数
- subscriptionResource
- SubscriptionResource
方法 SubscriptionResource 将对其执行的实例。
- filter
- String
要应用于操作的筛选器。 目前仅支持 位置 筛选器。
- includeExtendedLocations
- String
若要在响应中包含扩展位置信息,则为 。
- cancellationToken
- CancellationToken
要使用的取消标记。
返回
的异步集合 ComputeResourceSku ,可能需要多个服务请求进行迭代。