使用Azure CLI工具获取虚拟机列表时出错 [英] Error fetching vm list using azure cli tools

查看:95
本文介绍了使用Azure CLI工具获取虚拟机列表时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Mac OS X上使用的是Azure工具.我确实运行了以下命令:

I'm using azure tools on mac OS X. I did run following commands :

1. $ azure login
2. $ azure account download
3. $ azure import .publishsettings
4. $ azure account set "subscription id"

但是现在我跑步

$ azure虚拟机列表

$ azure vm list

它显示以下错误:

{ [Error: The server failed to authenticate the request. Verify that the certificate is valid and is associated with this subscription.] code: 'ForbiddenError', statusCode: 403 }
Error: The server failed to authenticate the request. Verify that the certificate is valid and is associated with this subscription.
    at Function.ServiceClient._normalizeError (/usr/local/lib/node_modules/azure-cli/node_modules/azure-common/lib/services/serviceclient.js:815:23)
    at /usr/local/lib/node_modules/azure-cli/node_modules/azure-common/lib/services/filters/errorhandlingfilter.js:44:29
    at Request._callback (/usr/local/lib/node_modules/azure-cli/node_modules/azure-common/lib/http/request-pipeline.js:109:14)
    at Request.self.callback (/usr/local/lib/node_modules/azure-cli/node_modules/azure-common/node_modules/request/request.js:199:22)
    at Request.emit (events.js:98:17)
    at Request.<anonymous> (/usr/local/lib/node_modules/azure-cli/node_modules/azure-common/node_modules/request/request.js:1160:14)
    at Request.emit (events.js:117:20)
    at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/azure-cli/node_modules/azure-common/node_modules/request/request.js:1111:12)
    at IncomingMessage.emit (events.js:117:20)
    at _stream_readable.js:944:16

推荐答案

该问题具有订阅权限.您需要转到 https://manage.windowsazure.com 并将用户添加为共同管理员,然后将其添加为所有者在 http://portal.azure.com 上.

Issue was with the subscription permission. You need to go to https://manage.windowsazure.com and add user as co-admin then add him owner on http://portal.azure.com.

http://portal.azure.com 添加用户并使其成为所有者,这是行不通的

Adding a user from http://portal.azure.com and making him owner, alone does not work.

这篇关于使用Azure CLI工具获取虚拟机列表时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆