No easy way to switch subscriptions

Aperta
#911 2 commenti 1 reazione 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

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

Direzione di ricerca

Start by locating the existing *-AzProfile cmdlets and the profile/subscription context model they read and write. Read how the active profile stores its subscription and how commands resolve -SubscriptionId, then compare with the public Az Get-AzSubscription and Select-AzSubscription behavior described in the issue. Done means new cmdlets can list subscriptions and switch the active profile's subscription without re-login, with tests and help text for the PowerShell surface.

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

Descrizione

act-identity-squad duplicate X Engineering Agent Triaged
Target surface

PowerShell

What problem are you trying to solve?

In public Az commands we have commands like Select-AzSubscription. Here we have only *-AzProfile commands and none of them allows you to switch subscription context. Basically to switch subscription you either have to re-login again in order to create a new profile that you will set as active. Other option is in every command to start to set -SubscriptionId parameter. If I have already logged why I need to re-login just to set a subscription? Also there is no option to get existing subscription.

Proposed solution
Provide the cmdlets from public Az for managing subscriptions in context/profile. Add option to change the subscription for a profile.
Alternatives or workarounds

No response

Additional context

No response

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.