-
Notifications
You must be signed in to change notification settings - Fork 3.4k
az login: "Invalid selection" while selecting the subscription #31612
Copy link
Copy link
Closed
Labels
Auto-AssignAuto assign by botAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamThe command of the issue is owned by Azure CLI teamComputeaz vm/vmss/image/disk/snapshotaz vm/vmss/image/disk/snapshotOKR CandidateThis label is used to track how many GitHub issues we have resolved for OKR purpose.This label is used to track how many GitHub issues we have resolved for OKR purpose.Similar-Issuecustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues 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 thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
Milestone
Metadata
Metadata
Assignees
Labels
Auto-AssignAuto assign by botAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamThe command of the issue is owned by Azure CLI teamComputeaz vm/vmss/image/disk/snapshotaz vm/vmss/image/disk/snapshotOKR CandidateThis label is used to track how many GitHub issues we have resolved for OKR purpose.This label is used to track how many GitHub issues we have resolved for OKR purpose.Similar-Issuecustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues 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 thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
Type
Fields
Give feedbackNo fields configured for issues without a type.
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)