本文介绍了AZ CLI:找不到资源组'...'下的资源'...'。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在努力执行与资源组相关的az cli命令。

我已经设置了正确的订阅。

我可以使用命令'az'列出资源组group list'。

但是在涉及mysql的命令中引用资源组时会收到错误消息,例如:如



 'az mysql server show --resource-group HHDevelopment --name hh-dev-test'



当我登录Azure门户时,我可以访问mysql服务器和数据库没有任何问题。

我应该怎么做才能让它在Azure命令行界面上工作?



I am struggling to execute az cli commands related to resource groups.
I have set the correct subscription.
I can list the resource group with the command 'az group list'.
But I get erros messages when referring to the resource group in a command where mysql is involved, for example: like

 'az mysql server show --resource-group HHDevelopment --name hh-dev-test'

When I login to Azure portal, I can access the mysql server and the databases without any problem.
What should I do to get it working on the Azure Command Line Interface?


C:> az mysql服务器show --resource-group HHDevelopment --name hh-dev-test

资源'Microsoft.DBforMySQL / servers找不到资源组'HHDevelopment'下的/ hh-dev-test'。

C:>az mysql server show --resource-group HHDevelopment --name hh-dev-test
The Resource 'Microsoft.DBforMySQL/servers/hh-dev-test' under resource group 'HHDevelopment' was not found.

推荐答案

az资源列表--res ource-group HHDevelopment

az resource list --resource-group HHDevelopment

hth

Marcin

hth
Marcin


这篇关于AZ CLI:找不到资源组'...'下的资源'...'。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-28 19:30