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 Runbooks - Privilege required

We have several subscriptions in a Tennant and we have one restricted subscription which only a few have access to. We need to configure diagnostic settings using Azure automation Runbooks for several resources across subscriptions and and point it…
0
votes
2 answers

Need to get azure automation runbook error using rest api call

I am using Rest api method to start runbook. I am getting output after execution of runbook using rest API but not getting errors with that API i am using to get output is GET…
Ac9293
  • 65
  • 1
  • 12
0
votes
2 answers

Upgraded to Az modules from AzureRM now cannot login with Runbook

I have just started looking at Azure Automation and created my first Runbook today and everything was working fine. I then read that AzureRM was replaced with the Az module so thought I had better migrate my Runbook and get straight onto the new…
Andrew HB
  • 332
  • 1
  • 3
  • 11
0
votes
1 answer

Get Azure HybridWorker Environement Variable in Powershell

I have an Azure Powershell Runbook which is used to invoke a java jar inside the Hybrid Worker Groups. Currently we pass the absolute java path and run the program, Iwant to change this and pass JAVA_HOME instead. I have set java home as environment…
0
votes
1 answer

Is there someone can tell me how to fix the Error "The remote server returned an error: (409) Conflict."

I use Automation Runbook to create the Azure Files' snapshot. And I get one error Exception calling "Snapshot" with "0" argument(s): "The remote server returned an error: (409) Conflict." At line:3 char:1 + $snapshot = $share.Snapshot() +…
Arthur
  • 103
  • 11
0
votes
2 answers

Powershell Runbook Email with the csv file attachment

I want to send an email from my powershell runbook script, I wouild like to attach CSV file as the script output which is stored in storage blob on my azure subscription. The script is ready, I am receiving email but without attachment. I am still…
0
votes
1 answer

Codes for modifying/updating Azure VM Tags value doesn't work in Azure PowerShell Runbook

I'm working on updating/modifying Azure VM Tags value, the code works successfully when I tested it on my local PowerShell ISE and connected to our Azure subscription (It successfully modify the existing Tag value) but when I tested it in our Azure…
Vista
  • 201
  • 2
  • 4
  • 23
0
votes
1 answer

Runbook Powershell Invoke-Sqlcmd SQL Server MI connection

I have a some Powershell code to drop a database on a SQL Server Managed Instance that I would like to schedule via Azure Automation. The code runs fine in the Windows Powershell ISE. #Type the Managed instance admin login $username = …
0
votes
1 answer

Why is the Connectionstring Empty when using Get-AzureRMStorageAccount?

I've inherited a Powershell script that runs in an Azure RunBook. In the script we need to read a StorageQueue. I'm having issues connecting to the StorageAccount. The following snippet fails on New-AzureStorageContext, because the $connectionString…
Felix Planjer
  • 89
  • 1
  • 6
0
votes
1 answer

How to enable / disable function apps in a resource group in azure

I an writing a powershell script which will run in runbook. This script will first disable the function apps in the resource group, then another similar script will enable the functions apps in the resource group. I already tried below script but it…
Narendra
  • 3,069
  • 7
  • 30
  • 51
0
votes
0 answers

How to query SQL Server (on premises) from Azure using a PowerShell runbook?

I need to execute a query against an on-premise SQL Server 2016 instance from our Azure automation account for the purpose of sending emails based on the content in the database. The client is unable to establish a session, it is a networking issue.…
GettingItDone
  • 523
  • 8
  • 26
0
votes
1 answer

how to write a runbook for change UDR's nexthop if specific vm's IP is timeout in Azure

i want to have a runbook for change UDR's nexthop if specific Vm's IP is timeout, how to do ? i'm a network administrator so i don't understand C++ or powershell
wangchong
  • 1
  • 1
0
votes
2 answers

Azure tags update 'NoneType' object has no attribute 'update'

Hi i am updating resources tags in azure with python and runbook. I am able to update tags on most of resources but some of resources are giving me this error 'NoneType' object has no attribute 'update' i am using code spinet as also mentioned in…
Owais Ahmad
  • 329
  • 1
  • 4
  • 8
0
votes
1 answer

Azure runbook for docker container

writing azure runbook for pushing docker image to acr. When i am running script i am getting error docker is not recognized as internal or external command. Simplified runbook as below. Import-Module hosts Import-Module docker Invoke-dockercommand…
0
votes
1 answer

Azure Runbook - Input Blade

I don't want the input blade (highlighted below) to be visible in my runbook job because I am passing some secrets or password as parameters to execute my runbook. If something else clicks input tile available under my runbook job or look over my…
191180rk
  • 735
  • 2
  • 12
  • 37