IHostedServiceOperations.CreateAsync Method (HostedServiceCreateParameters, CancellationToken)
Asynchronously creates a new cloud service in a subscription.
Assembly: Microsoft.WindowsAzure.Management.Compute (in Microsoft.WindowsAzure.Management.Compute.dll)
Task<AzureOperationResponse> CreateAsync( HostedServiceCreateParameters parameters, CancellationToken cancellationToken )
Parameters
- parameters
-
Type:
Microsoft.WindowsAzure.Management.Compute.Models.HostedServiceCreateParameters
The HostedServiceCreateParameters object that contains the parameters that are used to create a cloud service.
- 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 a cloud service, see the following resources:
Show: