Mountain West Farm Bureau Insurance
office workers empowered by business technology solutions
BLOG
10
18
2018
12.18.2020

How to Run Azure Automation Runbook Locally While Accessing Assets

When you work with Azure Automation, you might find yourself coding locally, putting all the initial logic into the script, copying and pasting the code to the web to run it, and then testing the code from the portal.

Usually this practice takes longer to execute and will require a printout of variables or comments to follow the code execution, as you are not debugging your script.

There is another, possibly better, way to get your PowerShell code into Azure.

You can install an add-on on your local machine that allows you to connect to Azure and interact with the different automation components. You can easily download and use this add-on locally, giving you the ability to debug your code. It is called Azure Automation PowerShell ISE add-on.

Install it with either of these two options:

You can install the ISE add-on module from PowerShell Gallery with:

Install-Module AzureAutomationAuthoringToolkit -Scope CurrentUser

Then, if you want the PowerShell ISE to always automatically load the add-on, run:

Install-AzureAutomationIseAddOn

Otherwise, whenever you want to load the add-on, just run the following in the PowerShell ISE:

Import-Module AzureAutomationAuthoringToolkit

The add-on will prompt you to update if a newer version becomes available.

 

What can you do with the Azure Automation Powershell ISE Add On?

Once you installed it will appear like this.


We have multiple tabs: Configuration, Runbooks, DSC, Assets and Modules. Let's take a look at each.

Configuration

Here you will sign in to Azure and select the Automation Account you wish to use.


After you log in with your credentials, a folder is created where all components are downloaded.
 

Runbooks

This tab allows you to create, open, download, upload, delete and even test a draft version or a runbook in Azure.

DSC

This tab allows you to create, open, download, upload, delete and even compile a Desire State Configuration file in Azure.



Assets

I think this is the most important area in the ISE Add-On—you can create, edit locally, download, upload, insert, or delete different assets like Credentials, Connections, Variables, or Certificates.



Modules

Like the last one, this is one of the main tabs. It allows you to see, delete, upload and select the storage to use for any module.

Get Started

Once you installed and logged in you can test your code with the same commands that you have, and you can easily debug it in the same way as any normal PowerShell code you have built before. Enjoy!

Recent Blog Posts

lunavi logo alternate white and yellow
Blog
1.20.2021
01
.
20
.
2021
More Than Just Another Partnership, the Azure Expert MSP Is a Unique Source of Pride

As a founder and leader at Lunavi, I’ve seen our organization achieve a lot of big things over the years in our effort to continuously deliver more value in more ways to help our customers. That said, achieving the distinction of Azure Expert MSP stands out.

Learn more
lunavi logo alternate white and yellow
Blog
1.19.2021
12
.
18
.
2020
What You Should Know About the SolarWinds Nation-State Hack

A supply chain attack on SolarWinds software has led to numerous security breaches. Learn how Lunavi is responding and what you should know about the hack.

Learn more
lunavi logo alternate white and yellow
Blog
12.18.2020
11
.
24
.
2020
Throughout a History of Change, Creating Business Value For Customers Remains Our Constant Priority

CEO Shawn Mills takes you on a journey through Lunavi's past, future, and constant commitment to delivering value.

Learn more