azure-powershell
azure-powershell copied to clipboard
[Feature]: Managing PowerShell Modules in Runtime Environments and Retrieving Detailed Runbook Information
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
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
Or check https://doitpshway.com/managing-azure-automation-runtime-environments-via-powershell