Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for migrating #requires #128

Open
FuncLun opened this issue Nov 30, 2023 · 1 comment
Open

Support for migrating #requires #128

FuncLun opened this issue Nov 30, 2023 · 1 comment
Assignees

Comments

@FuncLun
Copy link

FuncLun commented Nov 30, 2023

Component
PowerShell module

Description of the new feature
New-AzUpgradeModulePlan/Invoke-AzUpgradeModulePlan does not migrate #requires -Modules AzureRM.

Describe the solution you'd like
Scripts with #requires -Modules AzureRM should be updated to #requires the proper modules, or at least the #requires line should be commented out.

@isra-fel
Copy link
Member

isra-fel commented Dec 7, 2023

That makes sense. Thanks for the feedback.

Things to consider when implmeting this:

  • The supportability of #requires in PS5/PS7
  • Whether to migrate #requires AzureRM to #requires Az or #requires Az.XXX or commented out.
  • Whether -Version makes sense here.

@VeryEarly VeryEarly self-assigned this Dec 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants