Get-AzResourceGroup doesn't handle -ErrorAction correct

オープン
#1,255 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
55/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
csharp, powershell
領域
cli

調査の方向性

Start by finding the PowerShell cmdlet implementation for Get-AzResourceGroup in the C# engine and tracing how it reports a missing resource group. Check how the cmdlet surface reads the caller's -ErrorAction preference before writing a non-terminating error, since the bug is that SilentlyContinue is ignored. Reproduce with Get-AzResourceGroup -Name doesntexist -ErrorAction SilentlyContinue and compare against the same call without the flag. Done means the silent case prints no error while the default case still surfaces one, with a regression test on the PowerShell surface.

索引モデルが issue の本文から書いたものです。

説明

act-codegen-extensibility-squad
Affected surface

PowerShell

Describe the bug

Running Get-AzResourceGroup with a bag RG and -ErrorAction SilentlyContinue still throws an error when it should be ignored.

Related command
Get-AzResourceGroup -Name doesntexist -ErrorAction SilentlyContinue
Steps to reproduce

Get-AzResourceGroup -Name doesntexist -ErrorAction SilentlyContinue

Image
Errors & debug output
There shouldn't be an error..
Expected behavior

No error should be thrown, as in the current public version

Image
Environment
Windows 11, PowerShell 7.6, azlips PowerShell CmdLets version 0.1.6
Additional context

No response

主要言語
C#
スター
18
フォーク
10
平均マージ
1日 20時間
マージ済み PR(30日)
157

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Azure/azclips のほかの issue

Azure/azclips の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。