Share via


CloudServiceOperatingSystemsOperationsExtensions.ListOSFamiliesAsync Method

Definition

Gets a list of all guest operating system families available to be specified in the XML service configuration (.cscfg) for a cloud service. Use nextLink property in the response to get the next page of OS Families. Do this till nextLink is null to fetch all the OS Families.

public static System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.Compute.Models.OSFamily>> ListOSFamiliesAsync (this Microsoft.Azure.Management.Compute.ICloudServiceOperatingSystemsOperations operations, string location, System.Threading.CancellationToken cancellationToken = default);
static member ListOSFamiliesAsync : Microsoft.Azure.Management.Compute.ICloudServiceOperatingSystemsOperations * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.Compute.Models.OSFamily>>
<Extension()>
Public Function ListOSFamiliesAsync (operations As ICloudServiceOperatingSystemsOperations, location As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IPage(Of OSFamily))

Parameters

operations
ICloudServiceOperatingSystemsOperations

The operations group for this extension method.

location
String

Name of the location that the OS families pertain to.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to