Share via


IRunbookDraftOperations.PublishAsync Method

Retrieve the runbook identified by runbook name. (see https://aka.ms/azureautomationsdk/runbookdraftoperations for more information)

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

Usage

'Usage
Dim instance As IRunbookDraftOperations
Dim automationAccount As String
Dim parameters As RunbookDraftPublishParameters
Dim cancellationToken As CancellationToken
Dim returnValue As Task(Of LongRunningOperationResultResponse)

returnValue = instance.PublishAsync(automationAccount, parameters, cancellationToken)

Syntax

'Declaration
Function PublishAsync ( _
    automationAccount As String, _
    parameters As RunbookDraftPublishParameters, _
    cancellationToken As CancellationToken _
) As Task(Of LongRunningOperationResultResponse)
Task<LongRunningOperationResultResponse> PublishAsync (
    string automationAccount,
    RunbookDraftPublishParameters parameters,
    CancellationToken cancellationToken
)
Task<LongRunningOperationResultResponse^>^ PublishAsync (
    String^ automationAccount, 
    RunbookDraftPublishParameters^ parameters, 
    CancellationToken cancellationToken
)
Task<LongRunningOperationResultResponse> PublishAsync (
    String automationAccount, 
    RunbookDraftPublishParameters parameters, 
    CancellationToken cancellationToken
)
function PublishAsync (
    automationAccount : String, 
    parameters : RunbookDraftPublishParameters, 
    cancellationToken : CancellationToken
) : Task<LongRunningOperationResultResponse>

Parameters

  • automationAccount
    The automation account name.
  • parameters
    The parameters supplied to the publish runbook operation.
  • cancellationToken
    Cancellation token.

Return Value

A standard service response for long running operations.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012

Target Platforms

See Also

Reference

IRunbookDraftOperations Interface
IRunbookDraftOperations Members
Microsoft.WindowsAzure.Management.Automation Namespace