Share via


IHostedServiceOperations.CreateAsync Method (HostedServiceCreateParameters, CancellationToken)

 

Asynchronously creates a new cloud service in a subscription.

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

Syntax

Task<AzureOperationResponse> CreateAsync(
    HostedServiceCreateParameters parameters,
    CancellationToken cancellationToken
)
Task<AzureOperationResponse^>^ CreateAsync(
    HostedServiceCreateParameters^ parameters,
    CancellationToken cancellationToken
)
abstract CreateAsync : 
        parameters:HostedServiceCreateParameters *
        cancellationToken:CancellationToken -> Task<AzureOperationResponse>
Function CreateAsync (
    parameters As HostedServiceCreateParameters,
    cancellationToken As CancellationToken
) 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 a cloud service, see the following resources:

See Also

IHostedServiceOperations Interface
Microsoft.WindowsAzure.Management.Compute Namespace

Return to top