使用命令行自动部署Azure Active Directory

时间:2016-09-27 07:14:06

标签: azure active-directory azure-resource-manager

我使用以下命令来实现它:

azure group deployment create <my-resource-group> <my-deployment-name> --template-uri https://raw.githubusercontent.com/azure/azure-quickstart-templates/master/active-directory-new-domain/azuredeploy.json

此链接有一个模板:

https://raw.githubusercontent.com/azure/azure-quickstart-templates/master/active-directory-new-domain/azuredeploy.json

我跑了好几次但显示了这个错误:

info:    Resource 'adVM/CreateADForest' of type 'Microsoft.Compute/virtualMachines/extensions' provisioning status is Running
info:    Resource 'adVM' of type 'Microsoft.Compute/virtualMachines' provisioning status is Succeeded
info:    Resource 'adNic' of type 'Microsoft.Network/networkInterfaces' provisioning status is Succeeded
info:    Resource 'adLoadBalancer' of type 'Microsoft.Network/loadBalancers' provisioning status is Succeeded
info:    Resource 'csyh7daynrjiaadsa' of type 'Microsoft.Storage/storageAccounts' provisioning status is Succeeded
info:    Resource 'adPublicIP' of type 'Microsoft.Network/publicIPAddresses' provisioning status is Succeeded
info:    Resource 'adAvailabiltySet' of type 'Microsoft.Compute/availabilitySets' provisioning status is Succeeded
info:    Resource 'VNet' of type 'Microsoft.Resources/deployments' provisioning status is Succeeded
info:    Resource 'adVNET' of type 'Microsoft.Network/virtualNetworks' provisioning status is Succeeded

error:   getaddrinfo ENOTFOUND management.azure.com management.azure.com:443
ApplicationInsights:Sender [ { [Error: getaddrinfo ENOENT dc.services.visualstudio.com:80]
code: 'ENOENT',
errno: 'ENOENT',
syscall: 'getaddrinfo',
hostname: 'dc.services.visualstudio.com',
host: 'dc.services.visualstudio.com',
port: 80 } ]
error:   Error information has been recorded to             C:\Users\admin\.azure\azure.err
error:   group deployment create command failed

扩展部分失败。谁能告诉我现在要做什么???

1 个答案:

答案 0 :(得分:0)

我已经解决了......我没有处于手臂模式

azure config mode arm

然后输入上面发布的命令。这很有用。