Questions tagged [azure-runbook]

Use this tag for questions related to Azure runbook automation. A runbook is a set of tasks that perform some automated process in Azure Automation. It may be a simple process such as starting a virtual machine and creating a log entry, or you may have a complex runbook that combines other smaller runbooks to perform a complex process across multiple resources or even multiple clouds and on-premises environments.

An Azure Runbook is a set of tasks that perform an automated process in Azure Automation. This may be a simple process such as starting a virtual machine and creating a log entry, or it may combine other, smaller runbooks to perform a complex process across multiple resources or even multiple clouds and on-premises environments.

Useful Links:

  1. Azure Automation overview
  2. Creating Runbook
364 questions
0
votes
1 answer

How to get a response of an Azure Runbook started with webhook?

As I know (and Microsoft is always pointing), Runbooks will help you to do automation progress. Related to the Azure Webhook documents, it's possible to call (start/run) a Runbook, from external application using HTML POST request. and there is some…
Reza Amya
  • 1,494
  • 2
  • 25
  • 40
0
votes
2 answers

How to use Azure Runbooks to restart an Azure Web App on a schedule

We have an Azure Web App that we want to setup an automatic restart on a schedule. If I wanted to use Runbooks for this, how would I add one or multiple apps to automatically restart on different schedules?
yannify
  • 78
  • 1
  • 1
  • 7
0
votes
1 answer

start console app on azure vm via runbook

My dev environment is using the remote hybrid worker to execute a console app. I am executing the app via webhook and it works exactly as i want. The powershell looks like this: [CmdletBinding()] Param([object]$WebhookData) #this parameter name…
0
votes
1 answer

GetType() method call on Automation Variable's Value causing runbook to fail and suspend

I'm trying to print the type of the value of Azure Automation Account's Automation variable using the below code in an automation runbook of type Powershell. $var1 = ((Get-AzureRmAutomationVariable -Name "ArrayVar" -ResourceGroupName…
Amogh Natu
  • 781
  • 1
  • 10
  • 37
0
votes
1 answer

Cannot remove file from data lake store using runbook

I am trying to run a runbook on azure that contains the following command: Remove-AzureRmDataLakeStoreItem When the Runbook is run, the following error comes out: "Remove-AzureRmDataLakeStoreItem : The term 'Remove-AzureRmDataLakeStoreItem' is not…
FelipePerezR
  • 155
  • 1
  • 2
  • 14
0
votes
1 answer

Calling child runbook results in The term '.\RunbookName.ps1' is not recognized as the name of a cmdlet, function, script file, or operable program

I am trying to do POC on working with child runbooks. As part of this POC I created a simple runbook Child.ps1 with below content: Param( [string]$FolderPath ) $path = $FolderPath if(! (Test-Path $path)) { New-Item -Type dir -Path $path …
0
votes
2 answers

Missing AzureRmProfileProvider module

I'm currently in Azure trying to execute a run book using a PowerShell script and my script spits out an error staying that it cannot find this class: Microsoft.Azure.Commands.Common.Authentication.Abstractions.AzureRmProfileProvider Can you help…
0
votes
2 answers

Runbook deployment on Azure Stack

Please help me with any document or link to how to deploy a Runbook on Azure Stack. I know we can do it in azure portal though. But I am not getting the exact procedure how to proceed in Azure Stack. We have public cloud where we have the policy…
0
votes
2 answers

Azure Runbook - No subscription found in the context

Background: I am trying to set up a script via Runbooks on Azure. What I find unusual is that I can run the command via the Azure Powershell Cloud Shell and it works. However, when I try to run it via the Runbook, I recieve an error(See below). The…
TGills
  • 126
  • 1
  • 2
  • 14
0
votes
1 answer

Azure Runbook (workflow) output result to Table

I'm recreating an Azure Runbook to coincide with a Logic App functionality. Long story short, I want the Logic App to initiate the Runbook, grab the results from the Runbook and use them for the next steps in the Logic App. Initially I wanted to…
Beefcake
  • 733
  • 2
  • 12
  • 37
0
votes
1 answer

How to pass runbook parameters from mvc website c# code to azure portal

I have MVC website in which I have called Runbook from Webhook Uri but now I want to pass input parameters to runbook. Following code I wrote to call runbook and pass parameters but parameters are going in Webhookdata instead of going as…
Anki
  • 65
  • 2
  • 11
0
votes
1 answer

How can I delete Azure Jobs by Azure Runbook?

I'm writing one Azure Runbook that must clean montly my test environment. I need delete some Azure Jobs but when I try to retrieve my jobs with Get-AzureRmSchedulerJob command I obtain this error: Get-AzureRmSchedulerJob -ResourceGroupName…
ilMattion
  • 1,841
  • 2
  • 24
  • 47
0
votes
1 answer

Disassociating a runbook from a schedule

Is there a way to disassociate a schedule from a runbook in the portal? Unless I'm missing something, you can only add a schedule to a runbook, but not remove it, unless the schedule itself is deleted. I know this can be done via PowerShell as…
Randy Minder
  • 47,200
  • 49
  • 204
  • 358
0
votes
1 answer

Azure - Could not establish remote session with azure virtual machine using runbook script

I am trying to execute remote commands in the azure virtual machine connected with Azure Active Directory domain controller using WINRM HTTP client from Azure Runbook script as workflow module. Here is my code which connect the remote…
Mallieswari
  • 113
  • 9
0
votes
2 answers

Azure Runbook Automation Calling nested Runbook. error Advanced parameter validation is not supported on nested workflows

I am quite new to azure runbooks and automation. I have several azure Sql databases and there are stored procedures in the databases that I would like to run in a order. Before in On premises SQL Server we had a SQL Job Agent to run the stored…
akd
  • 6,538
  • 16
  • 70
  • 112