IExtensionImageOperations.RegisterAsync Method (ExtensionImageRegisterParameters, CancellationToken)
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
Task<OperationStatusResponse> RegisterAsync(
ExtensionImageRegisterParameters parameters,
CancellationToken cancellationToken
)
Task<OperationStatusResponse^>^ RegisterAsync(
ExtensionImageRegisterParameters^ parameters,
CancellationToken cancellationToken
)
abstract RegisterAsync :
parameters:ExtensionImageRegisterParameters *
cancellationToken:CancellationToken -> Task<OperationStatusResponse>
Function RegisterAsync (
parameters As ExtensionImageRegisterParameters,
cancellationToken As CancellationToken
) As Task(Of OperationStatusResponse)
Parameters
parameters
Type: Microsoft.WindowsAzure.Management.Compute.Models.ExtensionImageRegisterParametersParameters supplied to the Register Virtual Machine Extension Image operation.
cancellationToken
Type: System.Threading.CancellationTokenCancellation token.
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
IExtensionImageOperations Interface
Microsoft.WindowsAzure.Management.Compute Namespace
Return to top