2016-09-27 57 views
0

我用下面的命令来实现它:自动化Azure中的Active Directory的使用命令行部署

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 

扩展部分失败。任何人都可以告诉我现在必须做什么?

回答

0

我已经解决了....我不是在手臂模式

azure config mode arm 

然后输入上面发布的命令。这工作。