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

Azure Runbook - Logging

What is the log retention policy for Azure Runbook jobs? For how long the logs of my runbook jobs will be retained in Azure? 6months or 5 years or till lifetime/deletion of the runbook resource? Any possibility of exporting these logs to our own…
191180rk
  • 735
  • 2
  • 12
  • 37
0
votes
0 answers

powershell RSA encryption by supplying modulus and exponent

I was trying to do RSA encryption in my powershell script by supplying modulus and exponent and I have deployed it in azure automation runbook. function Get-EncryptedString($certPass) { Write-Output "Getting Encrypted String." $rsa =…
Alias Varghese
  • 2,104
  • 3
  • 24
  • 52
0
votes
1 answer

How to execute Custom Script Execution in Azure runbook multiple times?

actually, I´m trying to create a Azure runbook with a Custom Script Execution. The runbook run against a Linux VM. I build a simple script which create a directory on the VM. If I execute the runbook the first time, then the directory will be…
Alex
  • 3
  • 1
  • 3
0
votes
1 answer

Runbook can't use command New-AzureRmSqlDatabaseExport (Object reference not set to an instance of an object)

When I'm trying to run the command New-AzureRmSqlDatabaseExport in an PowerShell Runbook it fails with the error message: New-AzureRmSqlDatabaseExport : Object reference not set to an instance of an object. I have verified that all modules are…
PEK
  • 3,688
  • 2
  • 31
  • 49
0
votes
1 answer

How to get timestamp in Azure runbook workflow

I am trying to get a timestamp when I do write-output lines. I have tries several things, and ending with: filter timestamp {"$(Get-Date -Format G): $_"} Write-Output "JOB START BEFORE INLINESCRIPT" | timestamp But this gives me the error: The…
Justin Tolchin
  • 423
  • 5
  • 16
0
votes
1 answer

Is there some codes can create file share snapshots and delete some of them after appoint time with Azure Automation?

I want to get some snapshots by every day, week and month, can I decide the retention time of the snapshots. (Like keep the daily snapshot 10 days, the weekly snapshot 35days, and the Monthly snapshot 13months). I had got some advice from someone…
Arthur
  • 103
  • 11
0
votes
2 answers

azure runbook enable guest level diagnostics

I am working on a PowerShell runbook to look at all vms in the azure subscription, find out if guest level monitoring is not enabled and enable it Following is the command I am using to enable the diags. Set-AzureRmVMDiagnosticsExtension…
0
votes
1 answer

Azure Runbooks - Parse Python Params

I have a runbook and I am trying to basically parse parameters I entering into the body of the POST request (using Postman). I looked at this thread, but couldn't get it to work. My runbook's code where I am trying to get the params: mode =…
DevKing
  • 211
  • 5
  • 14
0
votes
1 answer

Azure webhook get VM status

I'm trying to do a runbook/webhook that return a status of machine. What I finally notices is that Get-AzureRmVM is only returning 2 resource groups. Where Get-AzureRmResource Does return many more but not all of them again! I'm sure about my…
et3rnal
  • 322
  • 4
  • 17
0
votes
1 answer

Connection to Azure Automation using own Service Principal with KEY

I'm creating a runbook with Azure Automation and using the cmdlets $connection = Get-AutomationConnection -Name $Name The connection is linked to a certificate that has a key. How do I provide a key with this connection cmdlet …
meow tho
  • 37
  • 1
  • 1
  • 6
0
votes
1 answer

azure runbook send email in table using powershell workflow

I understand that there are multiple blogs which teaches how to send email with html and css formatting but nothing seems to work in PowerShell Workflow in Azure Runbooks. I want to send status of a scheduled Azure Runbook which processes an Azure…
0
votes
0 answers

Azure Automation Test pane without Output stream

I realize that if my Powershell runs in Test pane mode without output stream (e.g. Write-Output) the runbook will soon complete (after the last Write-Output). Has anyone encountered the similar issue or if this is by default, could you please…
EagleDev
  • 1,754
  • 2
  • 11
  • 31
0
votes
1 answer

How to add a Runbook action to a Metric rule (classic) using Json Template Azure?

Im having an issue about how to add a Runbook action to my metric alert, there is a lot of dosumentation about sending email to owner, but none of them tells about an action Runbook. This is my template to create a Metric alert: { "$schema":…
0
votes
1 answer

azure cannot "create Run as account"

Daniel explains it here how to start and stop a VM located on Azure. I cannot do this as I cannot find Create Azure Run As Account I believe my account is limited by the account owner. What do I Need to ask to get this permission? I have a…
juliand
  • 23
  • 5
0
votes
1 answer

Azure automation job OData $filter

Background I have an application which get list of runbooks jobs using REST API I would like to apply $filter on properties parameters(see JSON in the end). Parameters is of type IDictionary Issue $filter works fine for most of the…
shobhit vaish
  • 951
  • 8
  • 22