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

How to Fix "The program is blocked by Group policy " issue while executing the .exe in Azure Automation (Powershell runbook)

I have a runbook which uses C# dll as module. This C# code starts the process(.exe) internally. which is not working in Azure automation(powershell runbook). can someone please help me with this. I tried to delete the HKCU:\ items present in…
Vishnu
  • 1
  • 1
-1
votes
2 answers

Downgrading Azure Resources during weekends using PowerShell Automation

In order to save expenses in Azure DevOps, I'm trying to scale the resources, which can scale depending on the requirement. Team leads will update the resource requirements in SharePoint, and the runbook needs to be executed with SharePoint datat.…
-1
votes
1 answer

How to trigger an Azure Policy from an Azure Runbook

How can we trigger an Azure Policy from an Azure Runbook? example - to may be stop provisioning of resources in a subscription temporarily. I have basically created an Budget Action Group to an Azure Runbook via Webhook. This works successfully, but…
-1
votes
1 answer

How to authenticate REST API in Azure Runbooks with Python?

I'm trying to access the quota list/read api from a python runbook in an automation account - but how do I authenticate it? I'm reading. I need to pass a bearer auth token in the header but the tutorials I find are all done via Postman which doesn't…
H14
  • 15
  • 5
-1
votes
1 answer

unable to upload multiple runbook files to the azure automation account using terraform

I have created azure automation account with the help of terraform and I have existing runbook PowerShell scripts which I need to import to azure automation account. I am trying for-each loop in the terraform to upload multiple scripts at time but…
Lokesh M
  • 117
  • 1
  • 1
  • 6
-1
votes
1 answer

Webhook Data Input Parameter Syntax in Azure's Runbook

I have 5 parameters {[string]$VMName, [string]$ResourceGroupName, [string]$UserName, [string]$Paswd, [string]$UserDirectory, [string]$RequestType} in my runbook code what will be Webhookdata input parameter(json) syntax in Azure ?
-1
votes
1 answer

Why is azure scale up runbook failing in Automation Account

I have an automation account with run as account set up. I am trying to use it to run a VM scaling runbook i have imported from the gallery in the portal (source here: enter link description here). I am getting the following error, and I can not…
-1
votes
1 answer

Make a job easily searchable in Azure Runbook

I have a number of different jobs in my Azure Runbook. However, I don't have an easy way of differentiating between jobs when I look at the Overview of the Runbook. I am forced to click on each individual job to see which one it is. Is there a way I…
-1
votes
1 answer

Azure Runbook | Sending attachments from my Azure Storage Account in Transactional Emails

I have an Azure Runbook script set up for transaction emails, the SMTP server details, & the from and to emails redacted for security. For some reason, PowerShell is not seeing the file with which I want to send as an attachment, can anyone see…
-1
votes
1 answer

How do we pass value or parameter from azure data factory to runbook and excute it

could you help me on how would we pass variable from azure datafactory to runbook. for example i would pass the conatiner name for the run book to generate a sas key using the container name.
malcolm richard
  • 55
  • 3
  • 11
-1
votes
1 answer

Azure RunBook - Can We pass the key to a file zip the file and push it to a blob (Key refresh)

i am able to create a run book to generate a key and passed into a variable using powershell. can i move the key into a txt file and zip the same and move it to blob.
malcolm richard
  • 55
  • 3
  • 11
-1
votes
2 answers

New-AzureADApplicationKeyCredential throwing Authorization_RequestDenied

while executing New-AzureADApplicationKeyCredential from Azure Automation runbook its throwing error : Error occurred while executing SetApplication Code: Authorization_RequestDenied Message: Insufficient privileges to complete the operation.…
-1
votes
1 answer

downloading file from a SFTP server using Azure Runbook Powershell

How can I install Posh-SSH in a Runbook Powershell? I need to download files from a SFTP server to Azure Disk using a Runbook Powershll. However there is no Powershell mothod for this and I need to install Posh-ssh module. When I execute…
user217648
  • 3,338
  • 9
  • 37
  • 61
-1
votes
1 answer

write to text file on azure file share

I would like to move a ps script to Azure to run as a runbook. It basically checks all new SharePoint sites and checks if they meet certain criteria, like enables version control if not set. The script works like: $sitesdonelist =…
vilmarci
  • 451
  • 10
  • 31
-1
votes
1 answer

Use Azure Runbook to upload files from local machine or network drive to Azure file share or blob storage

So I am trying to create a PowerShell runbook to automate the upload of files from local machine and network drives to an Azure storage account. I have tried doing this with Set-AzureStorageFileContent however get the error that the directory does…
1 2 3
24
25