0
votes

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"

But now when I run

$ azure vm list

it shows following error :

{ [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
1
The third line should be azure account import .publishsettingsJack Zeng

1 Answers

0
votes

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.

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