IHostedServiceOperations.AddExtensionAsync Method (String, HostedServiceAddExtensionParameters, CancellationToken)
Asynchronously adds an available extension to a cloud service.
Namespace: Microsoft.WindowsAzure.Management.Compute
Assembly: Microsoft.WindowsAzure.Management.Compute (in Microsoft.WindowsAzure.Management.Compute.dll)
Syntax
Task<OperationStatusResponse> AddExtensionAsync(
string serviceName,
HostedServiceAddExtensionParameters parameters,
CancellationToken cancellationToken
)
Task<OperationStatusResponse^>^ AddExtensionAsync(
String^ serviceName,
HostedServiceAddExtensionParameters^ parameters,
CancellationToken cancellationToken
)
abstract AddExtensionAsync :
serviceName:string *
parameters:HostedServiceAddExtensionParameters *
cancellationToken:CancellationToken -> Task<OperationStatusResponse>
Function AddExtensionAsync (
serviceName As String,
parameters As HostedServiceAddExtensionParameters,
cancellationToken As CancellationToken
) As Task(Of OperationStatusResponse)
Parameters
serviceName
Type: System.StringThe name of the cloud service to which the extension should be added.
parameters
Type: Microsoft.WindowsAzure.Management.Compute.Models.HostedServiceAddExtensionParametersThe HostedServiceAddExtensionParameters object that specifies the cloud service operations.
cancellationToken
Type: System.Threading.CancellationTokenThe cancellation token.
Return Value
Type: System.Threading.Tasks.Task<OperationStatusResponse>
The T:Microsoft.WindowsAzure.Management.Compute.Models.ComputeOperationStatusResponse object that contains the status of the operation.
Remarks
If the asynchronous operation succeeds, the response includes the HTTP status code for the successful request. If the asynchronous operation failed, the response includes the HTTP status code for the failed request, and also includes error information about the failure.
In Azure, a process can run as an extension of a cloud service. For example, Remote Desktop Access or the Azure Diagnostics Agent can run as extensions to the cloud service.
For more information about adding extensions, see the following resources:
See Also
IHostedServiceOperations Interface
Microsoft.WindowsAzure.Management.Compute Namespace
Return to top