问题描述
使用命令行进行部署时遇到问题。我收到以下错误
I am having trouble while doing a Deployment using the command line . I am getting the below error
C:\ Users \AzureStackUser> azure account env add AzureStack --resource-manager-endpoint-url" url "
- management-endpoint-url" url " --active目录端点的URL  " URL "
- portal-url" url " --gallery-endpoint-url" url "
- active-directory-resource-id" url " --active-directory-graph-resource-id" url "
info: 执行命令帐户env add
info: 新环境AzureStack已创建
info: account env add command OK
C:\Users\AzureStackUser>azure account env add AzureStack --resource-manager-endpoint-url "url"
--management-endpoint-url "url" --active-directory-endpoint-url "url"
--portal-url "url" --gallery-endpoint-url "url"
--active-directory-resource-id "url" --active-directory-graph-resource-id "url"
info: Executing command account env add
info: New environment AzureStack created
info: account env add command OK
C:\ Users \AzureStackUser> azure login -e AzureStack -u" admin live account / tenant account"
info: 执行命令登录
密码:************
+验证。 ..
错误: 连接ECONNREFUSED
信息: 错误信息已记录到C:\ Users \AzureStackUser \。azure \ azure.err
错误: 登录命令失败
我已经给出了正确的管理员用户名真实帐户/租户用户名,但仍未通过。我能够成功登录Azure门户帐户。
是否有人遇到此身份验证问题?
I have given the right Administrator's username live account/tenant username , but still not getting through. I am able to successfully login to the Azure Portal Account.
Has anyone faced this authentication issue?
请建议。
推荐答案
感谢您在此发帖。
如果您收到证书验证问题,通过运行命令集" NODE_TLS_REJECT_UNAUTHORIZED = 0 "来禁用证书验证。
If you're getting certificate validation issues, disable certificate validation by running the command set "NODE_TLS_REJECT_UNAUTHORIZED=0".
有关详细信息,请参阅以下链接:
For More information, Kindly please refer the link given below:
问候,
Pradeep
这篇关于使用命令行在Azure堆栈中部署模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!