Support --allow-no-subscriptions equivalent for login without a subscription

Abierto
#1,328 0 comentarios 2 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
32/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
azure, csharp

Línea de trabajo

No files are named; start by locating how the az login command is registered and how it enumerates subscriptions after authentication, since the request is to let that step succeed with an empty list. Read the existing login option definitions and the code path that rejects a tenant with no subscriptions, then decide whether a new flag or a relaxed check fits. Done means az login --allow-no-subscriptions returns a token for a subscription-less tenant, with tests covering the empty-subscription case.

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

Descripción

act-identity-squad
Target surface

CLI (az)

What problem are you trying to solve?

In Azure CLI 2.x, there was an option called --allow-no-subscriptions. I used this option when I needed to log in to a tenant that has no subscriptions, just to get a token.

It seems that login now basically requires at least one subscription. I want to confirm whether this scenario (logging in to a subscription-less tenant to obtain a token) is no longer supported going forward.

Proposed solution

I would like azclips to support a way to log in and get a token even when the tenant has no subscriptions, similar to how az login --allow-no-subscriptions worked in Azure CLI 2.x.

az login --allow-no-subscriptions

If this is intentionally no longer supported, I would appreciate a note in the documentation explaining the reasoning and any recommended alternative.

Alternatives or workarounds

No response

Additional context

This came up because I rely on a subscription-less tenant login purely to obtain a token, not to manage Azure resources, so a subscription requirement at login time is a blocker for my use case.

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.