使用命令行自动部署Azure Active Directory [英] Automating the deployment of Azure Active Directory using Command Line

查看:114
本文介绍了使用命令行自动部署Azure Active Directory的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I have used the following command to achieve it :

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

此链接具有执行此操作的模板:

This link has a template which does it :

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

我运行了几次,但显示此错误:

I ran it several times but it shows this error :

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

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

The extensions part is failing. Could anyone tell what I have to do now???

推荐答案

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

I have solved it....I was not in the arm mode.

azure config mode arm

然后键入上面发布的命令。这行得通。

And then type the commands posted above. This worked.

这篇关于使用命令行自动部署Azure Active Directory的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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