Skip to content

az login: "Invalid selection" while selecting the subscription #31612

@GummaVamsi

Description

@GummaVamsi

Describe the bug

[Tenant and subscription selection]

No Subscription name Subscription ID Tenant


[1] * Azure subscription 1 0c355f40-740b-489b-a9a4-574ffcbf59e4 Default Directory

The default is marked with an *; the default tenant is 'Default Directory' and subscription is 'Azure subscription 1' (0c355f40-740b-489b-a9a4-574ffcbf59e4).

Select a subscription and tenant (Type a number or Enter for no changes): Invalid selection.
Select a subscription and tenant (Type a number or Enter for no changes): 1

Tenant: Default Directory
Subscription: Azure subscription 1 (0c355f40-740b-489b-a9a4-574ffcbf59e4)

[Announcements]
With the new Azure CLI login experience, you can select the subscription you want to use more easily. Learn more about it and its configuration at https://go.microsoft.com/fwlink/?linkid=2271236

If you encounter any problem, please open an issue at https://aka.ms/azclibug

[Warning] The login output has been updated. Please be aware that it no longer displays the full list of available subscriptions by default.

PS /home/vamsi>

Related command

az vm create

Errors

No Subscription name Subscription ID Tenant


[1] * Azure subscription 1 0c355f40-740b-489b-a9a4-574ffcbf59e4 Default Directory

The default is marked with an *; the default tenant is 'Default Directory' and subscription is 'Azure subscription 1' (0c355f40-740b-489b-a9a4-574ffcbf59e4).

Select a subscription and tenant (Type a number or Enter for no changes): Invalid selection.
Select a subscription and tenant (Type a number or Enter for no changes): 1

Tenant: Default Directory
Subscription: Azure subscription 1 (0c355f40-740b-489b-a9a4-574ffcbf59e4)

Issue script & Debug output

output here

Expected behavior

No Subscription name Subscription ID Tenant


[1] * Azure subscription 1 0c355f40-740b-489b-a9a4-574ffcbf59e4 Default Directory

The default is marked with an *; the default tenant is 'Default Directory' and subscription is 'Azure subscription 1' (0c355f40-740b-489b-a9a4-574ffcbf59e4).

Select a subscription and tenant (Type a number or Enter for no changes): Invalid selection.
Select a subscription and tenant (Type a number or Enter for no changes): 1

Tenant: Default Directory
Subscription: Azure subscription 1 (0c355f40-740b-489b-a9a4-574ffcbf59e4)

Environment Summary

azure

Additional context

No Subscription name Subscription ID Tenant


[1] * Azure subscription 1 0c355f40-740b-489b-a9a4-574ffcbf59e4 Default Directory

The default is marked with an *; the default tenant is 'Default Directory' and subscription is 'Azure subscription 1' (0c355f40-740b-489b-a9a4-574ffcbf59e4).

Select a subscription and tenant (Type a number or Enter for no changes): Invalid selection.
Select a subscription and tenant (Type a number or Enter for no changes): 1

Tenant: Default Directory
Subscription: Azure subscription 1 (0c355f40-740b-489b-a9a4-574ffcbf59e4)

Metadata

Metadata

Labels

Auto-AssignAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamComputeaz vm/vmss/image/disk/snapshotSimilar-Issuecustomer-reportedIssues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions