Share via


ExtensionImageOperationsExtensions.RegisterAsync Method (IExtensionImageOperations, ExtensionImageRegisterParameters)

 

Register a new extension. An extension is identified by the combination of its ProviderNamespace and Type (case-sensitive string). It is not allowed to register an extension with the same identity (i.e. combination of ProviderNamespace and Type) of an already-registered extension. To register new version of an existing extension, the Update Extension API should be used.

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

Syntax

public static Task<OperationStatusResponse> RegisterAsync(
    this IExtensionImageOperations operations,
    ExtensionImageRegisterParameters parameters
)
public:
[ExtensionAttribute]
static Task<OperationStatusResponse^>^ RegisterAsync(
    IExtensionImageOperations^ operations,
    ExtensionImageRegisterParameters^ parameters
)
static member RegisterAsync : 
        operations:IExtensionImageOperations *
        parameters:ExtensionImageRegisterParameters -> Task<OperationStatusResponse>
<ExtensionAttribute>
Public Shared Function RegisterAsync (
    operations As IExtensionImageOperations,
    parameters As ExtensionImageRegisterParameters
) As Task(Of OperationStatusResponse)

Parameters

Return Value

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

The response body contains the status of the specified asynchronous operation, indicating whether it has succeeded, is inprogress, or has failed. Note that this status is distinct from the HTTP status code returned for the Get Operation Status operation itself. If the asynchronous operation succeeded, the response body includes the HTTP status code for the successful request. If the asynchronous operation failed, the response body includes the HTTP status code for the failed request and error information regarding the failure.

See Also

ExtensionImageOperationsExtensions Class
Microsoft.WindowsAzure.Management.Compute Namespace

Return to top