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
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
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.
Installation Options
Owners
Copyright
(c) 2018 Arjun Bahree. All rights reserved.
Package Details
Author(s)
- Arjun Bahree
Tags
Windows PowerShell PSRemoting Azure AzureAutomation Runbooks
Functions
Remote-AzureRMVMExecute Connect-AzureRMVMRemote Create-AzureAutomationCredentials InitRemoting
Dependencies
This script has no dependencies.
FileList
- Execute-AzureRMVMRemoteScriptRunbook.nuspec
- Execute-AzureRMVMRemoteScriptRunbook.ps1
Version History
Version | Downloads | Last updated |
---|---|---|
1.1.0 | 188 | 1/15/2018 |
1.0.1 | 22 | 1/14/2018 |
1.0.0 (current version) | 24 | 1/14/2018 |