Skip to content

PSAvoidUsingPositionalParameters: Do not warn on AZ CLI#1846

Merged
JamesWTruher merged 3 commits intoPowerShell:masterfrom
bergmeister:issue1845
Sep 27, 2022
Merged

PSAvoidUsingPositionalParameters: Do not warn on AZ CLI#1846
JamesWTruher merged 3 commits intoPowerShell:masterfrom
bergmeister:issue1845

Conversation

@bergmeister
Copy link
Collaborator

@bergmeister bergmeister commented Sep 22, 2022

PR Summary

Fixes #1845
AZ CLI entrypoint recently changed from a batch file to an az.ps1 'script' in latest version 2.40.0, which just passed $args arguments as-is to python so it is still a CLI and not a script with parameters.

PR Checklist

@bergmeister bergmeister added this to the 1.21 milestone Sep 22, 2022
@bergmeister
Copy link
Collaborator Author

After an internal review we decided that we should not have it in code but as configuration but can still exclude az by default.

Copy link
Contributor

@JamesWTruher JamesWTruher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks really good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PSAvoidUsingPositionalParameters reports issue with az command when version 2.40.0 of az cli is installed

2 participants