Share via


AffinityGroupOperationsExtensions.CreateAsync Method (IAffinityGroupOperations, AffinityGroupCreateParameters)

 

Asynchronously creates a new affinity group in the specified subscription.

Namespace:   Microsoft.WindowsAzure.Management
Assembly:  Microsoft.WindowsAzure.Management (in Microsoft.WindowsAzure.Management.dll)

Syntax

public static Task<AzureOperationResponse> CreateAsync(
    this IAffinityGroupOperations operations,
    AffinityGroupCreateParameters parameters
)
public:
[ExtensionAttribute]
static Task<AzureOperationResponse^>^ CreateAsync(
    IAffinityGroupOperations^ operations,
    AffinityGroupCreateParameters^ parameters
)
static member CreateAsync : 
        operations:IAffinityGroupOperations *
        parameters:AffinityGroupCreateParameters -> Task<AzureOperationResponse>
<ExtensionAttribute>
Public Shared Function CreateAsync (
    operations As IAffinityGroupOperations,
    parameters As AffinityGroupCreateParameters
) As Task(Of AzureOperationResponse)

Parameters

Return Value

Type: System.Threading.Tasks.Task<AzureOperationResponse>

An OperationResponse object that includes an HTTP status code and request ID.

Remarks

For more information about creating affinity groups, see the following resources:

See Also

AffinityGroupOperationsExtensions Class
Microsoft.WindowsAzure.Management Namespace

Return to top