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
2
votes
1 answer

facing error Non-static method requires a target in SSAS TabularTMSL, Power Shell Refresh Script

I am trying to refresh the SSAS tabular Cube hosted on Azure using Power Shell TMSL Script using Azure Runbooks For larger partitions i am getting following error, I have tried increasing the timeout for Invoke-ASCmd , even with unlimited time out i…
kanna
  • 31
  • 2
2
votes
3 answers

Invoke-AzureRmVMRunCommand not returning anything in "Output" field when executing from Runbook

I'm trying to invoke a powershell script on to a Virtual Machine and retrieve the output of the script. I'm using the Invoke-AzureRmVMRunCommand cmdlet to invoke the script on the VM as shown below. $ValidationResult = Invoke-AzureRmVMRunCommand…
2
votes
2 answers

Azure Automation Powershell

I trying to automate to retrieve data from azure SQL database from azure automation run book power shell. I found that the SQL Server module was missing in the modules of azure automation account. I have imported that module. But still that command…
2
votes
1 answer

Deploying ARM templates via Azure Runbooks

Im following the Microsoft docs to deploy templates into azure with runbooks , however I cant see where the parameters come from for the script under the heading : Create the PowerShell runbook script The full guide is here…
itye1970
  • 1,654
  • 7
  • 31
  • 62
2
votes
4 answers

How to enable alerts on Azure runbook?

Is there a way to monitor the number of times a runbook has been called and then report on it (send email, text)? When I try to create an alert rule I only see an option for activity log not metrics. The runbook is getting called from event grid via…
2
votes
1 answer

Why does my Azure Powershell runbook get suspended when executed as a schedule and how do I prevent retry?

I am very new to Azure Automation Runbooks but I have been authoring a powershell script that performs a backup of a SQL Azure database into a bacpac file to a blob storage container which then get's uploaded to Google Drive for an 'offsite' backup.…
The Senator
  • 5,181
  • 2
  • 34
  • 49
1
vote
1 answer

Azure Automation is crashing when connecting with WinSCP

Currently having an issue where I am struggling to get the WinSCP PowerShell module to work as expected within an Azure Automation Runbook. Installed via the gallery but the cmdlets were not showing properly. Installed manually at the top of the…
1
vote
1 answer

Deployment of runbook module failed, because it reached terminal provisioning state 'Failed'

I want to create some automation runbooks with PowerShell on Azure using bicep. For that I need some custom modules listed below. var modules = [ 'Microsoft.Graph.Authentication' 'Microsoft.Graph.Groups' 'Microsoft.Graph.Mail' …
1
vote
1 answer

"'Set-HybridRunbookWorkerSignatureValidation' is not recognized as the name of a cmdlet" after installing extension based hybrid worker

In Azure AutomationAccounts I'm switching over from "agent based hybrid runbook workers" to "extension based hybrid runbook workers", for the former one being retired next year. The installation was fairly simple, however when I try to force script…
TacoCat88
  • 21
  • 4
1
vote
1 answer

How do I update custom modules (PnP.Powershell) in Azure Runbook?

I have an Azure automation account where a runbook uses PnP.Powershell which enables interfacing with SharePoint. However, due to a bug in an older version of PnP.Powershell, it doesn't support batching while using Add-PnPListItem. Consequently, I…
Fumio
  • 11
  • 4
1
vote
2 answers

Azure Automation powershell runbook hung up issue

I am creating an Azure Automation account having a powershell runbook. The script is simply looping over each VM in a resource group and deleting all files under a particular folder. $ResourceGroup = '<>' $TargetDir =…
Adi
  • 11
  • 4
1
vote
1 answer

How can I get the shared key from Log Analytics workspace in a Python runbook?

I'm trying to get the primary/shared key from a Log Analytics Workspace in a Python Runbook to use with the Log Collector API for Auth. I've searched everywhere yet can't find anything.
H14
  • 15
  • 5
1
vote
1 answer

How to delete millions of rows from an Azure database?

The problem I am facing now is that I have to delete over 90 million rows from an Azure Microsoft SQL database, and I cannot simply remove the table and rebuild a new one. And that is the code I am using DECLARE @NRO INT = 0; WHILE 1 = 1 BEGIN …
myname
  • 39
  • 5
1
vote
1 answer

Create SFTP Local User to Azure storage account using Powershell

I'm using Runbooks and wanted to utilize a PowerShell script to establish an SFTP local user for an Azure Storage Account. I found an article that has all steps but this is using the Az.Storage 4.1.2-Preview. but I am using the latest version of the…
1
vote
0 answers

Azure Runbook test with JSON input parameter?

I'm trying to test an Azure runbook that normally accepts JSON from a webhook from Salesforce. The existing runbook works fine in production, but I'd like to run some code edits in "Test" inside Azure if possible. I found this article Webhook Data…
TheCleaner
  • 255
  • 1
  • 6
  • 18
1 2
3
24 25