New-AzResourceGroupDeployment parameter discrepancy

Abierto
#740 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
55/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Tranquilo
Stack tecnológico
csharp, powershell
Área
cli

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
C#
Estrellas
18
Forks
10
Merge medio
1 d 20 h
PR fusionados (30 d)
157

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Azure/azclips

Todos los issues de Azure/azclips

Issues similares

Más issues de C#

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.