Franck Dernoncourt Asked: 2025-03-21 02:11:06 +0800 CST2025-03-21 02:11:06 +0800 CST 2025-03-21 02:11:06 +0800 CST 为什么 Azure 命令行界面 (CLI) 没有列出我的 Azure 帐户中的组和资源? 772 我的 Azure 帐户中有多个资源组和实例。但是,Azure 命令行界面 (CLI)未列出我的 Azure 帐户中任何组和资源: franck [ ~ ]$ az group list [] franck [ ~ ]$ az resource list [] 为什么 Azure CLI 没有列出我的 Azure 帐户中的组和资源? azure 1 个回答 Voted Best Answer Franck Dernoncourt 2025-03-21T12:22:51+08:002025-03-21T12:22:51+08:00 Reddit 用户InsufficientBorder 发现了这个问题: 如果您有多个订阅,并且/或者没有设置默认订阅,CLI 将“随机”设置一个作为任何请求的主题。 检查您是否已正确设置上下文,和/或已登录正确的租户。 az account show az account set -s "SubscriptionName"
Reddit 用户InsufficientBorder 发现了这个问题: