azure - 如何在 az cli 中查找特定资源的资源组

标签 azure azure-devops azure-cli

我有资源名称,但我必须找到资源所属的资源组。需要使用 az cli 来完成

最佳答案

您可以使用以下命令按资源名称列出资源:

az resource list -n '<resource name>'

这样你就可以在结果中找到resourceGroup属性:

enter image description here

关于azure - 如何在 az cli 中查找特定资源的资源组,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67938286/

相关文章:

azure - 如何使用 azure CLI 创建 Power BI Embedded 工作区?

azure - Azure CLI 是否使用 Azure Rest API

azure - 使用章节或时间线标记在 Azure 媒体服务中对视频进行编码

azure - 微服务架构中的数据库位置

docker - 当我将docker任务添加到Azure构建管道时构建失败

git - 使用 TFS + git 设置 Xamarin Studio 版本控制

visual-studio-2013 - 我在 Visual Studio 2013 中有一个现有的解决方案。如何将它导入我的 VS Online 工作区?

mongodb - 通过代码在 Cosmos DB 中启用 Mongo DB 聚合管道

azure - 如何将 CORS 与 azure 流量管理器一起使用

Azure Function 部署速度慢