New-AzResourceGroupDeployment parameter discrepancy

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

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

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

評価

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

調査の方向性

Locate the PowerShell cmdlet definitions for New-AzResourceGroupDeployment and New-AzResourceGroupDeploymentWhatIf in the azclips PowerShell surface, then compare their parameter attributes with the Az.Resources 16.x names. The concrete asks are aliases for -TemplateParameterFile/-TemplateParameterUri and a hashtable-accepting -TemplateParameterObject; confirm how parameters are declared and surfaced before changing them. Done means both cmdlets accept the old names and the hashtable form, with existing tests still passing.

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

説明

act-codegen-extensibility-squad question X Engineering Agent Triaged
Which did you use?

PowerShell

What worked well?

No response

What was confusing or hard?

The parameters for New-AzResourceGroupDeployment as well as New-AzResourceGroupDeploymentWhatIf differs from the current live version of the same CmdLets in version 16 as seen here
In version 16 and earlier "live" versions the parameter templates are -TemplateParameterFile, and -TemplateParameterUri where the same version 0.1.0 azclips PowerShell CmdLet parameters are -ParametersUri and -ParametersFile

Furthermore, in version 16 the -TemplateParameterObject that accepts a hashtable as input (-TemplateParameterObject @{Name = 'name123'}) seems to have been replaced by a -Parameter that accepts a string with key=value as input (-Parameter 'Name=name123')

I am aware this is very early on, and I am also aware there will be other breaking changes in the PowerShell modules, but is there a particular reason for renaming the parameters? And if so, it would be good to include aliases for the parameters to support the old parameter names as the parameter input (filepaths) is the same.
And as for the missing -TemplateParameterObject parameter I do hope this is just overlooked and will be implemented as hashtables is the preferred input in PowerShell, and string input makes very little sense in an object oriented world.

What would make azclips easier or more useful for you?

Keep parameter naming consistent with current released Az* CmdLets

Overall impression

None

主要言語
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 を短くまとめたダイジェスト。