Questions tagged [runbook]

A runbook is a routine compilation of procedures and operations that the system administrator or operator carries out. System administrators in IT departments and NOCs use runbooks as a reference.

Runbooks can be in either electronic or in physical book form. Typically, a runbook contains procedures to begin, stop, supervise, and debug the system. It may also describe procedures for handling special requests and contingencies. An effective runbook allows other operators, with prerequisite expertise, to effectively manage and troubleshoot a system. Through runbook automation, these processes can be carried out using software tools in a predetermined manner.

Runbooks are typically created by technical writers working for top tier managed service providers. They include procedures for every anticipated scenario, and generally use step-by-step decision trees to determine the effective response to a particular scenario.

118 questions
1
vote
1 answer

PowerShell Code for Power BI APIs in Azure Automation Runbook

We successfully execute the code below on a domain server using regular PowerShell. However, when we execute this PowerShell code in an Azure Automation Runbook, we get a message "Suspended The runbook job was attempted 3 times, but it failed each…
Ryan Casey
  • 11
  • 1
1
vote
1 answer

unable to append data to sharepoint file via Azure Automation

Ok I have asked a question like this but now I am trying to perform the task via Azure Automation. I can connect to the SharePoint site via Azure Automation (powershell). with the correct credentials. I can download the file and append data to it.…
goced
  • 61
  • 2
  • 9
1
vote
0 answers

How to get response back within azure function which is calling an azure automation runnbook via webhoook

I have a https triggered function app which is calling a webhook which internally is calling a runbook. Runbook is running on hybrid worker group and based on the inputs it's returns some output is there any way to get the response back to the…
Sudama Tripathi
  • 349
  • 1
  • 5
  • 20
1
vote
1 answer

Deploy an Azrue VM from an ARM template via Powershell Runbook without downloading template

This article shows a tutorial how to deploy some resources from ARM templates in a powershell runbook. And as I understand, it will download the template and the parameters files in the specific path. But how can that work in an automated Runbook…
Eiffelsturm
  • 55
  • 2
  • 11
1
vote
2 answers

Azure powershell runbook don't show any output

I have a simple Azure PowerShell runbook script workflow CheckIdentityColumns { Write-Output "Test Output" } When I am trying to test it I don't see any output. Why?
ddt_rock
  • 61
  • 1
  • 7
1
vote
1 answer

Is it possible to use Azure Automation Runbook to delete another Runbook output (an Azure File share snapshot)?

I want to use the runbook to delete another runbook output (an Azure File Share snapshot). Is it possible? If you know something, please write something at here Runbook 1: Create an Azure File share snapshot $context = New-AzureStorageContext…
Arthur
  • 103
  • 11
1
vote
1 answer

Get Source Code for referenced functions in Azure Runbook

I'm new to powershell and Azure automation. Currently I've an Azure Automation Account and it has few Runbook jobs. I'm trying to add new logic to an existing Azure Runbook job by updating its powershell script. I see there are some functions but…
mv_05
  • 109
  • 12
1
vote
1 answer

Connect-MsolService : Unable to find an entry point named 'GetPerAdapterInfo' in DLL 'iphlpapi.dll'

I am running the code in my azure AD runbook with the MSOnline module installed: Import-Module MSOnline $credential = get-automationpscredential -name 'CoreyA' Connect-MsolService -Credential $credential But get the following…
1
vote
2 answers

Stopping VMs in Azure when CPU usage is lower than 10%

Is there a way to script something using runbooks in Azure so that a script runs that checks the CPU Usage and if the average for two hours is less than 10% it shuts down the VM? Has anyone got an example script?
patrykw
  • 19
  • 1
1
vote
1 answer

Azure runbook for rebooting VMs via multiple tags query

I am aware of how to reboot/schedule reboots for a VM that has one tag. However, I'm having difficulty finding out how to reboot a VM based on the presence of multiple tags. Is this possible? For example: If VM has Tag 1= True and Tag 2=True, then…
Taylor
  • 11
  • 1
1
vote
1 answer

Azure Runbook Start/Stop Schedule Lists

I've set up a Runbook using the Start/Stop templates from the Gallery. All set up, no errors, no warnings. Why don't any of the schedules appear under the "Schedule Runbook" but appear elsewhere in the Azure portal? Runbook_Blade Scheduler_List
user9118621
  • 85
  • 1
  • 1
  • 8
1
vote
2 answers

Azure runbook using python to connect to Sql databae

I am creating an azure runbook to connect to a sql database to make some queries . I was trying to import one of two libraries : pymssql , pyodbc but the machine runs the runbook does not have that library. Do you have any other idea to make some…
Summer Nguyen
  • 229
  • 3
  • 14
1
vote
1 answer

Error while running Azure runbook which executes PowerShell command on Virtual Machine

I am trying to execute this code in runbook, using "Invoke-Command" to connect to VM. $connectionName = "AzureRunAsConnection" try { # Get the connection "AzureRunAsConnection " $servicePrincipalConnection=Get-AutomationConnection -Name…
1
vote
2 answers

Automatic shutdown of Azure VMSS instance by low CPU workload

I'd like to automatic shutdown by low CPU usage condition. I didn't find any info around VMSS instance.
1
vote
3 answers

Running a power shell script in Azure

Hi there I'm new to running powershell scripts in azure and looking for the best guidance ? I have created a powershell script to locate running machines in a resource group and output to a text file, what would be the best approach to schedule…
BenAhm
  • 151
  • 4
  • 13