0
我正在嘗試使用git-bash(在Windows上)在azure中部署nodejs webapp。我遵循following tutorial,並在執行以下命令(第5號子彈)時卡住:azure site create --git {appname}
。我得到以下輸出:未能在azure上部署NodeJS應用程序
info: Executing command site create
error: The server failed to authenticate the request. Verify that the certificate is valid and is associated with this subscription.
error: Error information has been recorded to C:\Users\myname\.azure\azure.err
error: site create command failed
不能上網就如何解決這個問題找到一個明確的解決方案......
編輯:這是錯誤文件的內容:
2016-12-01T13:49:38.217Z:
{ Error: The server failed to authenticate the request. Verify that the certificate is valid and is associated with this subscription.
<<< async stack >>>
at getSites__7 (C:\Users\myname\AppData\Roaming\npm\node_modules\azure-cli\lib\commands\asm\websites\websitesclient.js:460:24)
at determineIfSiteAndSlotExists (C:\Users\myname\AppData\Roaming\npm\node_modules\azure-cli\lib\commands\asm\site.js:282:30)
at __4 (C:\Users\myname\AppData\Roaming\npm\node_modules\azure-cli\lib\commands\asm\site.js:229:11)
<<< raw stack >>>
at Function.ServiceClient._normalizeError (C:\Users\myname\AppData\Roaming\npm\node_modules\azure-cli\node_modules\azure-common\lib\services\serviceclient.js:814:23)
at C:\Users\myname\AppData\Roaming\npm\node_modules\azure-cli\node_modules\azure-common\lib\services\filters\errorhandlingfilter.js:44:29
at Request._callback (C:\Users\myname\AppData\Roaming\npm\node_modules\azure-cli\node_modules\azure-common\lib\http\request-pipeline.js:109:14)
at Request.self.callback (C:\Users\myname\AppData\Roaming\npm\node_modules\azure-cli\node_modules\request\request.js:187:22)
at emitTwo (events.js:106:13)
at Request.emit (events.js:191:7)
at Request.<anonymous> (C:\Users\myname\AppData\Roaming\npm\node_modules\azure-cli\node_modules\request\request.js:1044:10)
at emitOne (events.js:101:20)
at Request.emit (events.js:188:7)
at IncomingMessage.<anonymous> (C:\Users\myname\AppData\Roaming\npm\node_modules\azure-cli\node_modules\request\request.js:965:12)
stack: [Getter],
code: 'ForbiddenError',
statusCode: 403,
__frame:
{ name: 'getSites__7',
line: 455,
file: 'C:\\Users\\myname\\AppData\\Roaming\\npm\\node_modules\\azure-cli\\lib\\commands\\asm\\websites\\websitesclient.js',
prev:
{ name: 'determineIfSiteAndSlotExists',
line: 280,
file: 'C:\\Users\\myname\\AppData\\Roaming\\npm\\node_modules\\azure-cli\\lib\\commands\\asm\\site.js',
prev: [Object],
calls: 1,
active: false,
offset: 2,
col: 29 },
calls: 0,
active: false,
offset: 5,
col: 23 },
rawStack: [Getter] }
Error: The server failed to authenticate the request. Verify that the certificate is valid and is associated with this subscription.
<<< async stack >>>
at getSites__7 (C:\Users\myname\AppData\Roaming\npm\node_modules\azure-cli\lib\commands\asm\websites\websitesclient.js:460:24)
at determineIfSiteAndSlotExists (C:\Users\myname\AppData\Roaming\npm\node_modules\azure-cli\lib\commands\asm\site.js:282:30)
at __4 (C:\Users\myname\AppData\Roaming\npm\node_modules\azure-cli\lib\commands\asm\site.js:229:11)
<<< raw stack >>>
at Function.ServiceClient._normalizeError (C:\Users\myname\AppData\Roaming\npm\node_modules\azure-cli\node_modules\azure-common\lib\services\serviceclient.js:814:23)
at C:\Users\myname\AppData\Roaming\npm\node_modules\azure-cli\node_modules\azure-common\lib\services\filters\errorhandlingfilter.js:44:29
at Request._callback (C:\Users\myname\AppData\Roaming\npm\node_modules\azure-cli\node_modules\azure-common\lib\http\request-pipeline.js:109:14)
at Request.self.callback (C:\Users\myname\AppData\Roaming\npm\node_modules\azure-cli\node_modules\request\request.js:187:22)
at emitTwo (events.js:106:13)
at Request.emit (events.js:191:7)
at Request.<anonymous> (C:\Users\myname\AppData\Roaming\npm\node_modules\azure-cli\node_modules\request\request.js:1044:10)
at emitOne (events.js:101:20)
at Request.emit (events.js:188:7)
at IncomingMessage.<anonymous> (C:\Users\myname\AppData\Roaming\npm\node_modules\azure-cli\node_modules\request\request.js:965:12)
謝謝,但我已經試過了,每當我做'蔚藍帳戶download'我跌倒在網頁上說:「未找到Azure的帳戶訂閱」。請注意,我是「所有者」...我也試圖在無痕瀏覽器中複製該鏈接,並使用「所有者」憑據登錄 - 仍然出現相同的錯誤 – ncohen
順便說一下,我正在使用Microsoft Imagine程序... – ncohen
或者,您可以嘗試使用Azure門戶在Azure App Service中創建Web應用程序。有關詳細信息,請參閱https://docs.microsoft.com/en-us/azure/app-service-web/web-sites-nodejs-develop-deploy-mac。 –