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
7
votes
2 answers

How to fail an Azure Automation Runbook?

Is there any way to make an Azure Automation Runbook end with a status of 'Failed'? Even when exceptions are thrown, the runbook still ends in a status of 'Complete'. You can go into the runbook job with status of "Complete" and see the exceptions…
Birdman
  • 1,404
  • 5
  • 22
  • 49
5
votes
3 answers

Can custom console application be executed in Azure (PowerShell) Runbook?

Can I use my own/custom console application in Azure Runbook (PowerShell or any other)? When I try to run my own console application (after retrieving it from Azure Storage), it fails. When I try to execute it simply by: .\myapp.exe I…
Martin Prikryl
  • 188,800
  • 56
  • 490
  • 992
5
votes
1 answer

convert Csv file into Xml on Azure data lake store using Azure Powershell runbook

I want to convert CSV file into XML on Azure data lake store using Azure Powershell. I was using this code on Runbook of azure automation and it worked fine but No XML is being generated $cred = Get-AutomationPSCredential…
5
votes
2 answers

Azure Runbook - Get a file from Azure File System Storage

I am creating a Azure workflow runbook wherein I have to get a file from Azure File System Storage and publish that to a azure web app. I tried with New-PSDrive but that command is not supported in runbook (even InlineScript doesn't work). Could…
Adavesh
  • 557
  • 5
  • 9
4
votes
4 answers

I want to create a runbook on an automation account with a shedule already connected to it through arm

With my ARM template I want to create an automation account with a runbook and a shedule , so far so good. But if i want to connect my shedule to my runbook through the template I can't seem to find the working way to do this. First try (working) :…
achahbar
  • 901
  • 3
  • 21
  • 47
3
votes
0 answers

Azure Runbook still return error when using Get-PowerBIActivityEvent

I'm struggling to make my azure account automation runbook work. Logging using Login-PowerBIServiceAccount is working correctly, but with these commands, Get-PowerBIActivityEvent, Get-PowerBIWorkspace I get the error: Attempted to access an element…
3
votes
1 answer

Get-AzRoleAssignment throws Microsoft.Rest.Azure.CloudException in Azure Runbook

I am using runbook in Azure Automation Account. In this runbook, i use "run as account" which has Owner rights on the subscription. When i execute the command Get-AzRoleAssignment, i get: Get-AzRoleAssignment : Exception of type…
MoonHorse
  • 1,966
  • 2
  • 24
  • 46
3
votes
2 answers

How to import automatically Az Powershell modules in azure automation account?

I am trying to install az powershell modules from my automation runbook with powershell script. But i am failing to do that. I have tried the solution in a similar topic which is here but it didn't work for me. The code is below: $AAccName =…
3
votes
0 answers

Running Kubectl in Azure Automation Account runbook

I need to run kubectl commands in Azure Automation Runbook. I tried installing it from PowerShellGallery but the deployment failed with error : "Unable to process template language expressions for resource…
3
votes
0 answers

Is there a way to find the azure region from a runbook?

I have a runbook deployed to multiple azure regions. I need to know the region in which it executes from the runbook itself. Presently I am passing the region name as a parameter while executing the runbook. But I would like to avoid it. Is there a…
3
votes
1 answer

Trigger next step in data factory after Tabular model refresh is complete

I have setup an Azure automation account and Web hook to process my analysis services database. I am calling that using Web activity (POST method) in Azure Data Factory to trigger the cube refresh. Web activity method is working fine but it returns…
3
votes
3 answers

Azure Automation Runbook unable to parse the webhookdata as a JSON object

I am badly struck by this problem. I request you to answer or give a hint. I am running out of options. I am calling an azure runbook upon high CPU utilization via a WebHook. My problem is inside runbook data is not getting decoded properly. For…
3
votes
1 answer

Azure Portal Custom Tiles - Markdown tile

Is it possible to show custom information in azure dashboards? I was searching on how to add custom content in azure dashboards but did not find anything. The only thing close was the markdown tile which allows html to be displayed.
Dash
  • 401
  • 5
  • 14
3
votes
3 answers

Logic App - Create CSV table from JSON output

I've created a Runbook which starts or shutsdown VMs and then spits the result in a JSON output. I'm having trouble trying to figure out how to take that output and use it in a 'Create CSV Table' within my Logic App. Output (which is exactly how it…
Beefcake
  • 733
  • 2
  • 12
  • 37
2
votes
1 answer

Store file in the azure storage account which is network restricted

we have one azure storage account which is network restricted. We are saving a file from the runbook but seems it is failing. Any thoughts? $fileshare ='TestStorage' #Map to the reports BLOB context $storageContext = New-AzureStorageContext…
Revan
  • 1,104
  • 12
  • 27
1
2 3
24 25