Share via


HostedServiceOperationsExtensions.AddExtension Method (IHostedServiceOperations, String, HostedServiceAddExtensionParameters)

 

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

public static OperationStatusResponse AddExtension(
    this IHostedServiceOperations operations,
    string serviceName,
    HostedServiceAddExtensionParameters parameters
)
public:
[ExtensionAttribute]
static OperationStatusResponse^ AddExtension(
    IHostedServiceOperations^ operations,
    String^ serviceName,
    HostedServiceAddExtensionParameters^ parameters
)
static member AddExtension : 
        operations:IHostedServiceOperations *
        serviceName:string *
        parameters:HostedServiceAddExtensionParameters -> OperationStatusResponse
<ExtensionAttribute>
Public Shared Function AddExtension (
    operations As IHostedServiceOperations,
    serviceName As String,
    parameters As HostedServiceAddExtensionParameters
) As OperationStatusResponse

Parameters

  • serviceName
    Type: System.String

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

Return Value

Type: Microsoft.Azure.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

HostedServiceOperationsExtensions Class
Microsoft.WindowsAzure.Management.Compute Namespace

Return to top