Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Get-AzResourceListRestMethod.ps1 to update function exec-azres…
…tmethod (#839) While using this fuction in our organization ,facing linting issues shared below. tried by tweak function name by Invoke-AzRestMethodCustom instead Exec-AzRestMethod and linting got passed. Could you please take a look on this code and suggest. powershell latest version also not being used in code. it seems exec-azrestmethod is not being used by powershell latest version https://learn.microsoft.com/en-us/powershell/module/az.accounts/invoke-azrestmethod?view=azps-13.0.0 Linted [POWERSHELL] files with [powershell]: Found 1 error(s) - (191.84s) (expand for details) - Using [powershell v7.4.1] https://megalinter.io/7.10.0/descriptors/powershell_powershell - MegaLinter key: [POWERSHELL_POWERSHELL] - Rules config: [/github/workspace/.github/linters/.powershell-psscriptanalyzer.psd1] - Number of files analyzed: [172] [powershell] Scripts/Helpers/RestMethods/Get-AzResourceListRestMethod.ps1 - ERROR - 1 error(s) --Error detail: Severity RuleName ScriptName Line Message -------- -------- ---------- ---- ------- Warning PSUseApprovedVerbs Get-AzResourceListRestMethod.ps1 8 The cmdlet 'Ex ec-AzRestMetho d' uses an una pproved verb. there were some trail spaces issues also in this file , please update those also ,I have fixed those trail spaces at my end
- Loading branch information