New-AzRoleAssignment generates random GUID for name

Abierto
#1,163 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
Activo
Stack tecnológico
azure, csharp, powershell
Área
cli, cloud

Línea de trabajo

Start from src/Extensions/Resources/Customization/NewRoleAssignmentProcessor_Orchestrator.cs, where the issue says the random name is produced, and trace where the role assignment name is set when omitted. Check what scope, role definition and principal identifiers are available at that point, then compare with the Azure CLI path for az role assignment create and the deterministic scheme agreed with the Bicep team. Done means both surfaces generate the same stable GUID for the same scope/definition/principal, with tests covering omitted-name behavior.

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

Descripción

act-identity-squad
Target surface

Both

What problem are you trying to solve?

New-AzRoleAssignment generates random GUID for name. It is probably the same for az role assignment create. Source: https://github.com/Azure/azclips/blob/main/src/Extensions/Resources/Customization/NewRoleAssignmentProcessor_Orchestrator.cs

There is ongoing effort to make the name deterministic when omitted and created via various tools like Azure Portal, CLI, PS, Bicep, Terraform, etc. The name will still be guid but it will be made based on scope, definition and principal. I do not know exactly the full schedule for such release but I would guess will probably be released at the same time in the various tools including the publicly available CLI and PS. Would be good if this is implemented now on the preview cmdlets before they are released to public. As the architecture for this is already settled from various public calls with Bicep team it should be easy to implement.

Proposed solution
deterministic name when not omitted.
Alternatives or workarounds

No response

Additional context

No response

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.