Azure / azure-cli

Azure Command-Line Interface
MIT License
4.03k stars 3.01k forks source link

Not selecting Subscription #30266

Open BenjaminBDC opened 2 weeks ago

BenjaminBDC commented 2 weeks ago

Describe the bug

this is the sub i listed: [1] Azure subscription 1 17831a77-1961-47df-b02b-6520a71d67b3 UCL Erhvervsakademi og Professionshøjskole [2] * Subscription 1 e9bec43e-9e97-4f2f-8d43-dc4373a69f29 UCL Erhvervsakademi og Professionshøjskole

The default is marked with an *; the default tenant is 'UCL Erhvervsakademi og Professionshøjskole' and subscription is 'Subscription 1' (e9bec43e-9e97-4f2f-8d43-dc4373a69f29).

Select a subscription and tenant (Type a number or Enter for no changes): 2

PS C:\Users\benja> az account show --output table EnvironmentName HomeTenantId IsDefault Name State TenantDefaultDomain TenantDisplayName TenantId


AzureCloud 1855fd54-8283-4d57-ab22-4e818e22fcf7 True Subscription 1 Enabled 365.ucl.dk UCL Erhvervsakademi og Professionshøjskole 1855fd54-8283-4d57-ab22-4e818e22fcf7

but i get this sub instead, which cannot be found when i try to create a resource group and blob..

Related command

az account show output table

Errors

(SubscriptionNotFound) Subscription e9bec43e-9e97-4f2f-8d43-dc4373a69f29 was not found. Code: SubscriptionNotFound Message: Subscription e9bec43e-9e97-4f2f-8d43-dc4373a69f29 was not found.

Issue script & Debug output

(SubscriptionNotFound) Subscription e9bec43e-9e97-4f2f-8d43-dc4373a69f29 was not found. Code: SubscriptionNotFound Message: Subscription e9bec43e-9e97-4f2f-8d43-dc4373a69f29 was not found.

Expected behavior

create my resource

Environment Summary

azure-cli 2.65.0

core 2.65.0 telemetry 1.1.0

Dependencies: msal 1.31.0 azure-mgmt-resource 23.1.1

Python location 'C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe' Extensions directory 'C:\Users\benja.azure\cliextensions'

Python (Windows) 3.11.8 (tags/v3.11.8:db85d51, Feb 6 2024, 21:52:07) [MSC v.1937 32 bit (Intel)]

Legal docs and information: aka.ms/AzureCliLegal

Your CLI is up-to-date.

Additional context

No response

yonzhan commented 2 weeks ago

Thank you for opening this issue, we will look into it.