Automation

Azure Automation allows you to automate the creation, monitoring, deployment, and maintenance of resources in your Azure environment using a highly-available workflow execution engine. Orchestrate time-consuming, error-prone, and frequently repeated tasks against Azure and third party systems to decrease time to value for your cloud operations.

Visit the Automation page to learn more about Automation and how to get started.

  • Hot ideas
  • Top ideas
  • New ideas
  • My feedback
  1. Redeploying jobSchedule resource from ARM template

    Currently Microsoft.Automation/automationAccounts/jobSchedules resources cannot be redeployed from ARM template if there are existing jobSchedules pointing to the same runbook and schedule. The deployment would return:

    "A job schedule for the specified runbook and schedule already exists"

    Same issue even deploying with a different name (GUID) for the jobSchedule.

    Currently the workaround is deleting the existing resource and redeploy, which is a very cumbersome approach for automation.

    147 votes
    Vote
    Sign in
    (thinking…)
    Sign in with: Microsoft
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    triaged  ·  5 comments  ·  Bug  ·  Flag idea as inappropriate…  ·  Admin →
  2. Cannot modify Parameters when choosing Action Type "Automation Runbook" in Action Groups

    Steps to recreate:
    1) create a runbook, give it a few parameters
    2) publish runbook
    3) create a new alert, action group
    4) choose the action type "Automation Runbook"
    5) Choose "User" for "Runbook source"
    6) Select subscription, automation account and runbook

    It will not allow me to configure parameters. It keeps closing the dialog instead. In the attached image, no parameters are configured. As soon as I click on "Configure parameters" the side dialog closes.

    3 votes
    Vote
    Sign in
    (thinking…)
    Sign in with: Microsoft
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    2 comments  ·  Bug  ·  Flag idea as inappropriate…  ·  Admin →
  3. Not possible to add a runbook from the PowerShell Gallery using PowerShell

    Hi,

    At the moment I'm Automating workloads in Azure. In a powershell script I want to add an Automation Account to an Azure subscription. Part of the Automation Account are Runbooks. You can add a runbook to Azure Automation by creating a new one or by importing an existing runbook from a file or the Runbooks Gallery. To Import a Runbook you can use the script down below.

    $automationAccountName = "AutomationAccount"
    $runbookName = "Sample_TestRunbook"
    $scriptPath = "C:\Runbooks\Sample_TestRunbook.ps1"
    $RGName = "ResourceGroup"

    Import-AzureRMAutomationRunbook -Name $runbookName -Path $scriptPath `
    -ResourceGroupName $RGName -AutomationAccountName $automationAccountName `
    -Type PowerShellWorkflow

    With the Import-AzureRMAutomationRunbook command you're not allowed…

    2 votes
    Vote
    Sign in
    (thinking…)
    Sign in with: Microsoft
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    0 comments  ·  Bug  ·  Flag idea as inappropriate…  ·  Admin →

    Thanks for the valid suggestion. Your feedback is now open for the user community to upvote & comment on. This allows us to effectively prioritize your request against our existing feature backlog and also gives us insight into the potential impact of implementing the suggested feature.

  4. Changed Run As account

    Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.

    1 vote
    Vote
    Sign in
    (thinking…)
    Sign in with: Microsoft
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    0 comments  ·  Bug  ·  Flag idea as inappropriate…  ·  Admin →

    Thanks for the valid suggestion. Your feedback is now open for the user community to upvote & comment on. This allows us to effectively prioritize your request against our existing feature backlog and also gives us insight into the potential impact of implementing the suggested feature.

  5. SQL [DBNULL] datatype breaks calling runbooks

    When a runbook uses sqlcmd and returns a dataset, and that dataset has a [DBNULL] data type (A column IS NULL in the sql return), the calling runbook errors out.
    Example:
    2 runbooks. One runs in azure, another runs on Hybrid worker. The azure runbook starts the Hybrid worker runbook. The hybrid worker runbook does a SQL query using invoke-sqlcmd. The SQL query returns a dataset which has a NULL value in one of the columns. That return is then sent to the calling runbook in Azure.

    Result:
    I forget the failure, but it appears JSON can't format it correctly.

    1 vote
    Vote
    Sign in
    (thinking…)
    Sign in with: Microsoft
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    0 comments  ·  Bug  ·  Flag idea as inappropriate…  ·  Admin →

    Thanks for the valid suggestion. Your feedback is now open for the user community to upvote & comment on. This allows us to effectively prioritize your request against our existing feature backlog and also gives us insight into the potential impact of implementing the suggested feature

  6. Proper cleanup - When Application(Service Principal) quota has exceeded for an AAD, automation should clean up

    Proper cleanup - When Application(Service Principal) quota has exceeded for an AAD, automation should clean up properly. Instead it gives an error in the notification saying application quota has exceeded (Creating Applications in the AAD quota has exceeded), but then it proceeds to create the automation account without the most important and essential "Run As Account" not being created in AAD.

    1 vote
    Vote
    Sign in
    (thinking…)
    Sign in with: Microsoft
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    0 comments  ·  Bug  ·  Flag idea as inappropriate…  ·  Admin →

    Thanks for the valid suggestion. Your feedback is now open for the user community to upvote & comment on. This allows us to effectively prioritize your request against our existing feature backlog and also gives us insight into the potential impact of implementing the suggested feature.

  7. source control

    Add source control for python runbooks in VS Online..

    When syncing from our VS online repo, the .py files get the following error.

    Exception: Cannot validate argument on parameter 'Type'. The argument "Python2" does not belong to the set "Graph,PowerShell,PowerShellWorkflow" specified by the ValidateSet attribute. Supply an argument that is in the set and then try the command again.

    1 vote
    Vote
    Sign in
    (thinking…)
    Sign in with: Microsoft
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    0 comments  ·  Bug  ·  Flag idea as inappropriate…  ·  Admin →

    Thanks for the valid suggestion. Your feedback is now open for the user community to upvote which allows us to effectively prioritize your request against our existing feature backlog and also gives us insight into the potential impact of implementing the suggested feature.

  • Don't see your idea?

Feedback and Knowledge Base