IAffinityGroupOperations.CreateAsync Method (AffinityGroupCreateParameters, CancellationToken)
Asynchronously creates a new affinity group in the specified subscription.
Assembly: Microsoft.WindowsAzure.Management (in Microsoft.WindowsAzure.Management.dll)
Task<AzureOperationResponse> CreateAsync( AffinityGroupCreateParameters parameters, CancellationToken cancellationToken )
Parameters
- parameters
-
Type:
Microsoft.WindowsAzure.Management.Models.AffinityGroupCreateParameters
The AffinityGroupCreateParameters object.
- cancellationToken
-
Type:
System.Threading.CancellationToken
The cancellation token.
Return Value
Type: System.Threading.Tasks.Task<AzureOperationResponse>An OperationResponse object that includes an HTTP status code and request ID.
For more information about creating affinity groups, see the following resources:
Show: