从CLI部署VM [英] Deploy VM from CLI

查看:65
本文介绍了从CLI部署VM的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从Azure堆栈中的CLI部署Simple Windows VM模板。


面对错误:
:"身份验证失败。 "授权"标题缺失"。


我已导入发布设置文件并添加了环境。


还得到错误:  group create命令失败。


基本上我正在使用CLI中的命令尝试部署:
azure group create" CLIstorageRG" "本地" -f azuredeploy.json -d" testDeploy" -e azuredeploy.parameters.json



问候,


Isahac

解决方案

你好,


azure account env add AzureStack --resource-manager-endpoint-url" HTTPS://api.azurestack.local" --management-endpoint-url" https://api.azurestack.local" --active-directory-endpoint-url" https://login.windows.net" --portal-url" https://portal.azurestack.local" --gallery-endpoint-url" https://portal.azurestack.local" --active-directory-resource-id" https://azurestack.local-api/" --active-directory-graph-resource-id" https://graph.windows.net/"


注意:
如果您收到证书验证问题,请通过运行命令禁用证书验证 设置NODE_TLS_REJECT_UNAUTHORIZED = 0


有关详细信息,请参阅"
连接到Azure Stack
"。


使用命令行在Azure Stack中部署
模板


 


问候,


与Pradeep


I am trying to deploy the Simple windows VM template from CLI in Azure stack.

Facing the error : : "Authentication failed. The 'Authorization' header is missing".

I have imported the publish settings file and added the environment.

Also getting the error :  group create command failed.

Basically I am trying the deployment using the command in CLI : azure group create "CLIstorageRG" "local" –f azuredeploy.json –d "testDeploy" –e azuredeploy.parameters.json

Regards,

Isahac

解决方案

Hello,

Use the following CLI command to add the Azure Stack environment, making sure to update --active-directory-resource-id with the data URL.

azure account env add AzureStack --resource-manager-endpoint-url "https://api.azurestack.local" --management-endpoint-url "https://api.azurestack.local" --active-directory-endpoint-url  "https://login.windows.net" --portal-url "https://portal.azurestack.local" --gallery-endpoint-url "https://portal.azurestack.local" --active-directory-resource-id "https://azurestack.local-api/" --active-directory-graph-resource-id "https://graph.windows.net/"

Note: If you're getting certificate validation issues, disable certificate validation by running the command set NODE_TLS_REJECT_UNAUTHORIZED=0

For more details, see "Connect to Azure Stack".

Deploy templates in Azure Stack using the command line.

 

Regards,

Pradeep


这篇关于从CLI部署VM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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