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
1
vote
2 answers

Azure automation runbook Python - webhook data

I am preparing Azure automation, I am using Python SDK Automation runbook, runbook will be triggered by a webhook. I tested webhook, and I am able to run Python runbook using webhook. Automation Runbook Job status is Completed, I can see output…
tester81
  • 533
  • 2
  • 9
  • 28
1
vote
1 answer

Creating Azure AD user from Azure Runbook

I'm trying to use an Azure Automation account + accompanying powershell runbook to automate the process of creating an Azure Active Directory user. When I run the following command, I'm presented with the error, am I trying to achieve the impossible…
Asher
  • 348
  • 1
  • 3
  • 19
1
vote
1 answer

Trigger azure actiongroup via powershell

I can retrieve my action group with the Get-AzActionGroup command. But I would like to activate/fire/trigger that action group via my runbook with a powershell command. Is this possible at all? And if so, how can I do this?
1408786user
  • 1,868
  • 1
  • 21
  • 39
1
vote
1 answer

Azure Automation - Copy Files from one Sharepoint site to another

I would like to create a workflow that automatically copies files which were uploaded to a Sharepoint-Site onto another SharePoint-Site (for file exchange with customers). Therefore I created a Logic App that triggers a Runbook with following…
1
vote
1 answer

Capturing Runbook error in ADF through WebHooks

The powershell script in runbook is executing on hybrid worker and errors out when the file is not found. But when called through ADF webhook, the activity passes. Can someone me tell how to capture the error in ADF? SCRIPT: param( [Parameter…
1
vote
2 answers

Powershell Sort Function Time Complexity

I couldn't find this information on Microsoft's Docs for the Sort-Object cmdlet. I am using Powershell's Sort-Object to sort objects based on a property, i.e.: $foo | Sort-Object -Property x in an Azure RunBook, what would be time complexity of…
1
vote
0 answers

Azure Logic Apps, Parsed JSON returning Null when used

I'm trying to access the values in JSON output that I received from two (2) Graph API calls, but each time I try to use them I get this error: ExpressionEvaluationFailed. The execution of template action 'For_each' failed: the result of the…
1
vote
1 answer

Is there limit of runbook and variable number in an azure automation account?

I am planning to have an automation account which will contain runbooks and automation account variables. The number of runbook and variables will increase in time, automatically. How many runbook and automation account variable can an azure…
MoonHorse
  • 1,966
  • 2
  • 24
  • 46
1
vote
1 answer

Azure Event Hubs listener without Authentication

I'm wanting to register an Azure Event Hubs as a WebHook to a third-party application which does not support any header/body authentication, just a simple URL. I can't see anywhere in the Azure Event Hubs documentation or portal that allows me to…
1
vote
1 answer

Check Runbook History Azure powershell

I am writting an Azure Runbook with Powershell and want to know if theres anyway I can see when the script last ran. I have tried the following: $History = Get-History if ($History.EndExecutionTime = 5){ $Message = "Ran whithin last five…
1
vote
1 answer

Start-AzVM : Cannot bind parameter 'DefaultProfile' when running an Azure runbook

I am working on this official tutorial from MS Azure team to run a PowerShell Workflow runbook to start a VM. But when I start the following runbook (from step 6 of the tutorial), I get the error shown below. Question: What I may be missing, and how…
nam
  • 21,967
  • 37
  • 158
  • 332
1
vote
1 answer

Cannot find the 'Start-AzVM' command when used in a runbook

I am working on this official tutorial from MS Azure team to run a PowerShell Workflow runbook to start a VM. But when I start the following runbook (from step 6 of the tutorial), I get the error shown below. Question: What I may be missing, and how…
nam
  • 21,967
  • 37
  • 158
  • 332
1
vote
1 answer

Powershell Workflow runbook - authentication failed

I have an Azure Automation Run As account. When I run the following code (from step 5 of Azure online tutorial) on the runbook in Azure Portal, I get the error shown below. Question: What I may be missing here, and how can we resolve the…
nam
  • 21,967
  • 37
  • 158
  • 332
1
vote
1 answer

Save files to Azure fileshare in the sub directory

Below is the runbook code I am using to save the file to azure fileshare. But unable to save in subdirectory. #Set the context using the storage account name and key $context = New-AzureStorageContext -StorageAccountName $storageAccountName…
Revan
  • 1,104
  • 12
  • 27
1
vote
1 answer

What is the name of the firewall rule created by 'Allow Azure services and resources to access this server'

I have 'Allow Azure services and resources to access this server' set to ON for my hosted Azure database server. Every night at 11:00pm we run a script to remove all firewall rules which were put in place by developers who access the database during…
Yossi G.
  • 939
  • 1
  • 8
  • 22