Share via


IHostedServiceOperations.BeginAddingExtensionAsync Method (String, HostedServiceAddExtensionParameters, CancellationToken)

 

Asynchronously initiates the addition of 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<AzureOperationResponse> BeginAddingExtensionAsync(
    string serviceName,
    HostedServiceAddExtensionParameters parameters,
    CancellationToken cancellationToken
)
Task<AzureOperationResponse^>^ BeginAddingExtensionAsync(
    String^ serviceName,
    HostedServiceAddExtensionParameters^ parameters,
    CancellationToken cancellationToken
)
abstract BeginAddingExtensionAsync : 
        serviceName:string *
        parameters:HostedServiceAddExtensionParameters *
        cancellationToken:CancellationToken -> Task<AzureOperationResponse>
Function BeginAddingExtensionAsync (
    serviceName As String,
    parameters As HostedServiceAddExtensionParameters,
    cancellationToken As CancellationToken
) As Task(Of AzureOperationResponse)

Parameters

  • serviceName
    Type: System.String

    The name of the cloud service to which the extension should be added.

Return Value

Type: System.Threading.Tasks.Task<AzureOperationResponse>

An OperationResponse object that includes an HTTP status code and request ID.

Remarks

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