Runbook Draft - Publish

Publish runbook draft.

POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/publish?api-version=2015-10-31

URI Parameters

Name In Required Type Description
subscriptionId
path True
  • string

Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

resourceGroupName
path True
  • string

Name of an Azure Resource group.

Regex pattern: ^[-\w\._]+$

automationAccountName
path True
  • string

The name of the automation account.

runbookName
path True
  • string

The parameters supplied to the publish runbook operation.

api-version
query True
  • string

Client Api Version.

Responses

Name Type Description
202 Accepted

Accepted and the operation will complete asynchronously.

Headers

  • location: string
Other Status Codes

Automation error response describing why the operation failed.

Examples

Publish runbook draft

Sample Request

POST https://management.azure.com/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/ContoseAutomationAccount/runbooks/Get-AzureVMTutorial/draft/publish?api-version=2015-10-31

Sample Response

Location: https://management.azure.com/subscriptions/subid/resourcegroups/rg/providers/Microsoft.Automation/automationAccounts/ContoseAutomationAccount/runbooks/Get-AzureVMTutorial/draft/publish/operationResults/9bd70be2-cf73-49b4-9467-5261d48c2b3d?api-version=2015-10-31

Definitions

ErrorResponse

Error response of an operation failure

Name Type Description
code
  • string

Error code

message
  • string

Error message indicating why the operation failed.