New-AzResourceGroupDeployment parameter discrepancy

Aperta
#740 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
55/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
csharp, powershell
Ambito
cli

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
C#
Stelle
18
Fork
10
Merge medio
1g 20h
PR unite (30g)
157

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Azure/azclips

Tutte le issue di Azure/azclips

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.