Azure / azure-powershell

Microsoft Azure PowerShell
Other
4.12k stars 3.76k forks source link

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

Open Kello-it opened 2 months ago

Kello-it commented 2 months ago

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

mortenlerudjordet commented 1 month ago

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

ztrhgf commented 2 weeks ago

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