azure-powershell icon indicating copy to clipboard operation
azure-powershell copied to clipboard

[Feature]: Managing PowerShell Modules in Runtime Environments and Retrieving Detailed Runbook Information

Open Kello-it opened this issue 9 months ago • 2 comments

Description of the new feature

How can I retrieve all the PowerShell modules containing  within the new feature called 'Runtime Environments'  (https://learn.microsoft.com/en-us/azure/automation/runtime-environment-overview)? Additionally, how can I retrieve information about which Runbook is assigned to which environment using only PowerShell?

Thank you

Proposed implementation details (optional)

No response

Kello-it avatar May 02 '24 03:05 Kello-it

It's in the preview api 2023-05-15-preview of Microsoft.Automation, you can see how to use it in the following Runbooks that imports PS modules into AA runtime environment.

https://github.com/mortenlerudjordet/Import-PSGalleryModuleAArte https://github.com/mortenlerudjordet/Update-PSGalleryModuleAArte

mortenlerudjordet avatar May 09 '24 05:05 mortenlerudjordet

Or check https://doitpshway.com/managing-azure-automation-runtime-environments-via-powershell

ztrhgf avatar Jun 15 '24 05:06 ztrhgf