Azure / azure-cli

Azure Command-Line Interface
MIT License
4k stars 2.98k forks source link

Please Add A **Link** Feature / Option To 'az automation runbook' command List In Azure Automation CLI #27821

Open pravinbhande opened 11 months ago

pravinbhande commented 11 months ago

Related command

az automation runbook

Is your feature request related to a problem? Please describe.

After developing the runbook and schedule using Azure Automation CLI , we wanted to link the Runbook with this schedule , however there is no "argument/option" available in the Azure automation runbook list . Morever runbook linking with schedule is possible from the azure portal ui console.

Describe the solution you'd like Please add "link" option to the 'azure automation runbook' command so that we can easily link the runbook we deployed in the portal with the new or existing automation schedule.

Describe alternatives you've considered

  1. As a workaround we have deployed two powershell runbooks
  2. First runbook contains the business logic to performa scheduled activities such as stop,start and restarts
  3. Second runbook contains the code to Link 1st runbook with existing Schedule using Powershell command Register-AzAutomationScheduledRunbook
  4. After deploying both runbooks to the azure automation account, we execute the 2nd runbook that links the 1st runbook with given automation schedule.

Additional context Please refer this link, https://learn.microsoft.com/en-us/cli/azure/automation/runbook?view=azure-cli-latest It doesnt contain any "Link" option to perform a runbook link to automation schedule image

yonzhan commented 11 months ago

Thank you for opening this issue, we will look into it.

pravinbhande commented 11 months ago

Please provide some guidance, i am happy to contribute to this feature.