Skip to content

Select-AzureRmSubscription: support tab-complete on subscription ID and tenant ID #2210

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 5, 2016

Conversation

iouri-s
Copy link
Contributor

@iouri-s iouri-s commented May 5, 2016

It is always a hassle to select a subscription because all we can remember is a few characters from the beginning of the GUID. Auto-complete solves this issue.
Now a user can press to cycle through the subscriptions available to them.
Auto-complete for SubscriptionName would also be nice, but it's out of scope for this commit.

@azurecla
Copy link

azurecla commented May 5, 2016

Hi @iouri-s, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!


It looks like you're working at Microsoft (iouris). If you're full-time, we DON'T require a contribution license agreement.



If you are a vendor, DO please sign the electronic contribution license agreement. It will take 2 minutes and there's no faxing! https://cla.azure.com.

TTYL, AZPRBOT;

@azuresdkci
Copy link

Can one of the admins verify this patch?

@pcgeek86
Copy link
Contributor

pcgeek86 commented May 5, 2016

@iouri-s Check out the Azure PowerShell Extensions. It supports auto-completion for a bunch of different things, although subscriptions isn't there just yet. Because of the module's framework, it will be very easy to add this.

http://www.powershellgallery.com/packages/azureext

https://trevorsullivan.net/2016/04/23/azure-powershell-extensions-updates/

Cheers,
Trevor Sullivan
Microsoft MVP: PowerShell
https://trevorsullivan.net
https://twitter.com/pcgeek86

@hovsepm
Copy link
Contributor

hovsepm commented May 5, 2016

@azuresdkci add to whitelist

@iouri-s
Copy link
Contributor Author

iouri-s commented May 5, 2016

@pcgeek86 - thanks for the pointer, I'll check out the extensions. In this case, Login-AzureRmAccount already retrieves the list of user's subscription IDs. The change I made caches it for further use in the account property that already existed for that purpose and reuses it in Select-AzureRmSubscription.

@iouri-s iouri-s changed the title Support autocomplete on subscription ID and tenant ID Select-AzureRmSubscription: support tab-complete on subscription ID and tenant ID May 5, 2016
@hovsepm
Copy link
Contributor

hovsepm commented May 5, 2016

@iouri-s please resolve merge conflicts.

@iouri-s
Copy link
Contributor Author

iouri-s commented May 5, 2016

Resolved merge conflicts.

@pcgeek86
Copy link
Contributor

pcgeek86 commented May 5, 2016

@iouri-s Good deal, that's useful! Thanks

@hovsepm hovsepm merged commit 58e567c into Azure:dev May 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants