Skip to content

Not selecting Subscription #30266

@BenjaminBDC

Description

@BenjaminBDC

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

Metadata

Metadata

Assignees

Labels

ARMaz resource/group/lock/tag/deployment/policy/managementapp/account management-groupAuto-AssignAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamOKR CandidateThis label is used to track how many GitHub issues we have resolved for OKR purpose.customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-author-feedbackMore information is needed from author to address the issue.no-recent-activityThere has been no recent activity on this issue.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

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions