Execute-AzureRMVMRemoteScriptRunbook

1.0.0

This runbook sets up and remotely executes Inline Powershell scripts on one/more/all Azure ARM virtual machines in
your Azure Subscription. It enables you to traverse through all resource groups and corresponding VMs in your Azure
Subscription, check the current state of VMs (and skip the deallocated/atopped ones), check OS type (Windows or
Linux, and skip Linux
This runbook sets up and remotely executes Inline Powershell scripts on one/more/all Azure ARM virtual machines in
your Azure Subscription. It enables you to traverse through all resource groups and corresponding VMs in your Azure
Subscription, check the current state of VMs (and skip the deallocated/atopped ones), check OS type (Windows or
Linux, and skip Linux ones). Thereafter, this script triggers specific Inline functions to enable and configure
Windows Remote Management service on each VM, setup a connection to the Azure subscription, get the public IP
Address of the VM, and remote into it to for execution of whatever commands/script needs to be executed there.
You need to pass the script to be executed on the VMs as an Inline string. You need to execute this Runbook through
a 'Azure Run As account (service principal)' Identity from an Azure Automation account.

Show more

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Script -Name Execute-AzureRMVMRemoteScriptRunbook -RequiredVersion 1.0.0

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) 2018 Arjun Bahree. All rights reserved.

Package Details

FileList

Version History

Version Downloads Last updated
1.1.0 172 1/15/2018
1.0.1 19 1/14/2018
1.0.0 (current version) 21 1/14/2018