|
| 1 | +# -------------------------------------------------------------------------- |
| 2 | +# Copyright (c) Microsoft Corporation. All rights reserved. |
| 3 | +# Licensed under the MIT License. See License.txt in the project root for |
| 4 | +# license information. |
| 5 | +# |
| 6 | +# Code generated by Microsoft (R) AutoRest Code Generator. |
| 7 | +# Changes may cause incorrect behavior and will be lost if the code is |
| 8 | +# regenerated. |
| 9 | +# -------------------------------------------------------------------------- |
| 10 | +# pylint: disable=too-many-lines |
| 11 | + |
| 12 | +from knack.help_files import helps |
| 13 | + |
| 14 | + |
| 15 | +helps['automation runbook'] = """ |
| 16 | + type: group |
| 17 | + short-summary: automation runbook |
| 18 | +""" |
| 19 | + |
| 20 | +helps['automation runbook list'] = """ |
| 21 | + type: command |
| 22 | + short-summary: "Retrieve a list of runbooks." |
| 23 | + examples: |
| 24 | + - name: List runbooks by automation account |
| 25 | + text: |- |
| 26 | + az automation runbook list --automation-account-name "ContoseAutomationAccount" --resource-group "rg" |
| 27 | +""" |
| 28 | + |
| 29 | +helps['automation runbook show'] = """ |
| 30 | + type: command |
| 31 | + short-summary: "Retrieve the runbook identified by runbook name." |
| 32 | + examples: |
| 33 | + - name: Get runbook |
| 34 | + text: |- |
| 35 | + az automation runbook show --automation-account-name "ContoseAutomationAccount" --resource-group "rg" \ |
| 36 | +--name "Get-AzureVMTutorial" |
| 37 | +""" |
| 38 | + |
| 39 | +helps['automation runbook create'] = """ |
| 40 | + type: command |
| 41 | + short-summary: "Create the runbook identified by runbook name." |
| 42 | + parameters: |
| 43 | + - name: --publish-content-link-content-hash |
| 44 | + short-summary: "Gets or sets the hash." |
| 45 | + long-summary: | |
| 46 | + Usage: --publish-content-link-content-hash algorithm=XX value=XX |
| 47 | +
|
| 48 | + algorithm: Required. Gets or sets the content hash algorithm used to hash the content. |
| 49 | + value: Required. Gets or sets expected hash value of the content. |
| 50 | + examples: |
| 51 | + - name: Create or update runbook and publish it |
| 52 | + text: |- |
| 53 | + az automation runbook create --automation-account-name "ContoseAutomationAccount" --draft-parameters \ |
| 54 | +"{\\"name\\":\\"Get-AzureVMTutorial\\",\\"location\\":\\"East US 2\\",\\"properties\\":{\\"description\\":\\"Descriptio\ |
| 55 | +n of the Runbook\\",\\"logActivityTrace\\":1,\\"logProgress\\":true,\\"logVerbose\\":false,\\"publishContentLink\\":{\\\ |
| 56 | +"contentHash\\":{\\"algorithm\\":\\"SHA256\\",\\"value\\":\\"115775B8FF2BE672D8A946BD0B489918C724DDE15A440373CA54461D53\ |
| 57 | +010A80\\"},\\"uri\\":\\"https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-automation-runboo\ |
| 58 | +k-getvms/Runbooks/Get-AzureVMTutorial.ps1\\"},\\"runbookType\\":\\"PowerShellWorkflow\\"},\\"tags\\":{\\"tag01\\":\\"va\ |
| 59 | +lue01\\",\\"tag02\\":\\"value02\\"}}" --resource-group "rg" --runbook-name "Get-AzureVMTutorial" |
| 60 | + - name: Create runbook as draft |
| 61 | + text: |- |
| 62 | + az automation runbook create --automation-account-name "ContoseAutomationAccount" --draft-parameters \ |
| 63 | +"{\\"name\\":\\"Get-AzureVMTutorial\\",\\"location\\":\\"East US 2\\",\\"properties\\":{\\"description\\":\\"Descriptio\ |
| 64 | +n of the Runbook\\",\\"draft\\":{},\\"logProgress\\":false,\\"logVerbose\\":false,\\"runbookType\\":\\"PowerShellWorkfl\ |
| 65 | +ow\\"},\\"tags\\":{\\"tag01\\":\\"value01\\",\\"tag02\\":\\"value02\\"}}" --resource-group "rg" --runbook-name \ |
| 66 | +"Get-AzureVMTutorial" |
| 67 | +""" |
| 68 | + |
| 69 | +helps['automation runbook update'] = """ |
| 70 | + type: command |
| 71 | + short-summary: "Update the runbook identified by runbook name." |
| 72 | + examples: |
| 73 | + - name: Update runbook |
| 74 | + text: |- |
| 75 | + az automation runbook update --automation-account-name "ContoseAutomationAccount" --description \ |
| 76 | +"Updated Description of the Runbook" --log-activity-trace 1 --log-progress true --log-verbose false --resource-group \ |
| 77 | +"rg" --runbook-name "Get-AzureVMTutorial" |
| 78 | +""" |
| 79 | + |
| 80 | +helps['automation runbook delete'] = """ |
| 81 | + type: command |
| 82 | + short-summary: "Delete the runbook by name." |
| 83 | + examples: |
| 84 | + - name: Delete a runbook |
| 85 | + text: |- |
| 86 | + az automation runbook delete --automation-account-name "ContoseAutomationAccount" --resource-group "rg" \ |
| 87 | +--name "Get-AzureVMTutorial" |
| 88 | +""" |
| 89 | + |
| 90 | +helps['automation runbook publish'] = """ |
| 91 | + type: command |
| 92 | + short-summary: "Publish runbook draft." |
| 93 | + examples: |
| 94 | + - name: Publish runbook draft |
| 95 | + text: |- |
| 96 | + az automation runbook publish --automation-account-name "ContoseAutomationAccount" --resource-group \ |
| 97 | +"rg" --name "Get-AzureVMTutorial" |
| 98 | +""" |
| 99 | + |
| 100 | +helps['automation runbook wait'] = """ |
| 101 | + type: command |
| 102 | + short-summary: Place the CLI in a waiting state until a condition of the automation runbook is met. |
| 103 | + examples: |
| 104 | + - name: Pause executing next line of CLI script until the automation runbook is successfully created. |
| 105 | + text: |- |
| 106 | + az automation runbook wait --automation-account-name "ContoseAutomationAccount" --resource-group "rg" \ |
| 107 | +--name "Get-AzureVMTutorial" --created |
| 108 | +""" |
0 commit comments