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

Azure Runbook script can't login with system assigned identity

I'm trying to setup a Powershell Runbook to access Azure resources. I'm following instructions on this page. I've assigned a system identity to the Automation account, the the sample script simply doesn't work. # Sign in to your Azure…
Jay
  • 3,203
  • 2
  • 25
  • 31
2
votes
1 answer

Trouble running PowerShell command with subprocess library in Python script runbook (Azure automation account)

I'm new to Azure automation, and have a python script that runs fine on the local machine. The script runs a PowerShell command to get sign in logs, and does some string parsing on them before writing to a storage account table. I was able to…
2
votes
2 answers

How To use Azure Update management for Automating patch management of all Virtual machines under a subscription including future machines

I have an Azure policy which install Microsoft monitoring agent on all the VMs I have Automation Account which is linked to the Log analytics workspace. The Automation Account has a scheduler which has a dynamic query to fetch all the VMs with Tag…
2
votes
2 answers

Azure monitoring alert not working to detect Azure runbook failure

I am in learning phase of Azure. Recently I was working on setting up alerts to get an email notification when Azure runbook fails. I am testing it on a test runbook which has a simple code to display "Hello" and for deliberately failing the…
2
votes
1 answer

Can multiple runbooks run simultaneously in an azure automation account?

Can multiple runbooks run simultaneously in an azure automation account? If yes, how many? I have checked the microsoft documentation but I couldn't find anything relevant. From my experience, i have seen a runbook can be completed while another is…
MoonHorse
  • 1,966
  • 2
  • 24
  • 46
2
votes
1 answer

Azure Automation: Runbook: Get all AAD Group Properties, e.g. the Notes / Info field?

Good afternoon I have selected stackoverflow for this question because probably mainly programmers are confronted with this question: This is the issue: We want to read the notes field (not the description) from the Azure AD groups Contrary to what…
Tom
  • 357
  • 1
  • 5
  • 18
2
votes
2 answers

How to log from Automation account to Application Insights in Azure?

I am using Azure Automation account to copy my production database to staging. I also do a lot of custom stuff with this copied db + I do some migration stuff with Azure Storage accounts. To sum up, my 'master' runbook calls another runbooks and all…
2
votes
1 answer

Execute bash commands on Azure Linux VM using azure automation

I need to install software on Azure VM with Ubuntu image. One way of manually doing it is ssh into the terminal using putty or other command-line tool and executing the installation bash command. Another way of doing it was by automating this by…
2
votes
1 answer

Powershell Runbook [Invoke-ASCmd], FileNotFoundException for xmla file

I'm trying to make a script that creates automatic partions for SSAS via Powershell Runbook, but whenever I try to read in the xmla file i get the following error: My code that calls this is as followed: $StorageAccount =…
Souf
  • 369
  • 2
  • 16
2
votes
1 answer

How to use Connect-AzAccount in a Powershell Runbook with an AutomationConnection

All the examples I can find for Authenticating a Runbook use the AzureRM modules: $connectionName = "AzureRunAsConnection" $servicePrincipalConnection=Get-AutomationConnection -Name $connectionName Add-AzureRmAccount ` …
jlo-gmail
  • 4,453
  • 3
  • 37
  • 64
2
votes
1 answer

Azure Runbook to connect to SQL server running on Azure VM

I am trying to connect to a SQL server running on an Azure VM using the below sample code (having defined the SQL user name and password): $SqlCredential = Get-AutomationPSCredential -Name $SqlCredentialAsset # Get the username and password from…
nebula_007
  • 171
  • 1
  • 2
  • 13
2
votes
2 answers

Use Azure file share in PowerShell Runbook

I created az Azure file share where I would like to store a few SharePoint provisioning files, templates and xml's. Files are copied to the share and ready to use. I am aware of the Get-AzureStorageFileContent command that can be used to retrieve…
2
votes
2 answers

Azure automation vs Azure Runbooks vs Azure CLI vs Azure DSC vs Azure ARM vs Azure API

There seem to be so many ways to automate using PowerShell in Azure. Since ARM templates are the latest, any other PowerShell options in Azure has become obsolete? What are the difference between these tools/scripts: Azure run book Azure…
Blue Clouds
  • 7,295
  • 4
  • 71
  • 112
2
votes
2 answers

Azure API Management with Key Rotation

I am using KeyVault for storing Ocp-Apim-Subscription-Key. Applications are getting this key from KeyVault and making requests to API Management successfully. But now, i want to rotate this Ocp-Apim-Subscription-Key frequently using powershell…
Venkata Dorisala
  • 4,783
  • 7
  • 49
  • 90
2
votes
2 answers

AzureRunAsConnection not found

I have a AutomationAccount with AzureRunAsConnection created there. I can see it in the portal as well as get it in powershell using Get-AzureRmAutomationConnection and i can see the results. But when i connect from a Runbook ,it throws…
1
2
3
24 25