IAffinityGroupOperations.CreateAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The Create Affinity Group operation creates a new affinity group for the specified subscription. (see http://msdn.microsoft.com/en-us/library/windowsazure/gg715317.aspx for more information)
public System.Threading.Tasks.Task<Microsoft.Azure.AzureOperationResponse> CreateAsync (Microsoft.WindowsAzure.Management.Models.AffinityGroupCreateParameters parameters, System.Threading.CancellationToken cancellationToken);
abstract member CreateAsync : Microsoft.WindowsAzure.Management.Models.AffinityGroupCreateParameters * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.AzureOperationResponse>
Public Function CreateAsync (parameters As AffinityGroupCreateParameters, cancellationToken As CancellationToken) As Task(Of AzureOperationResponse)
Parameters
- parameters
- AffinityGroupCreateParameters
Parameters supplied to the Create Affinity Group operation.
- cancellationToken
- CancellationToken
Cancellation token.
Returns
Task<Microsoft.Azure.AzureOperationResponse>
A standard service response including an HTTP status code and request ID.