Create new Active Directory forest with optional subdomain

Última atualização: 02/10/2017

This template creates a new Active Directory forest, with an optional subdomain. You can choose to have either one or two DCs per domain. The network configuration is highly configurable, making it suitable to fit into an existing environment. The VMs use managed disks and have no dependency on storage accounts. As an operating system you can choose between Windows Server 2012, Windows Server 2012 R2, and Windows 2016. This template illustrates the use of nested templates, Powershell DSC, and other advanced concepts.

Este modelo do ARM (Azure Resource Manager) foi criado por um membro da comunidade, e não pela Microsoft. Cada modelo do ARM é licenciado para você de acordo com o contrato de licença de seu proprietário, e não da Microsoft. A Microsoft não é responsável por modelos do ARM fornecidos e licenciado por membros da comunidade e não avalia sua segurança, compatibilidade ou desempenho. Modelos do ARM da comunidade não têm suporte de nenhum programa ou serviço de suporte da Microsoft e são disponibilizados DA FORMA COMO ESTÃO, sem nenhum tipo de garantia.

Parâmetros

Nome do parâmetro Descrição
createChildDomain Do you want a child domain? If false, the parameters for the child domain are ignored.
createSecondDc Do you want a second DC in each domain? If false: parameters for DC2 and DC4 are ignored.
DomainName Full FQDN name for the forest root domain.
ChildDomainName SHORT name for the child domain. New AD trees are not allowed.
adminUsername The name of the admin account for the Domain(s)
adminPassword The (complex!) password for the Administrator account of the new VMs and Domain(s)
VMSize The size and type of the VM. DS types will get Premium (managed) disks.
imageSKU Windows Server Version.
virtualNetworkName The name of the new VNET for the DC(s).
virtualNetworkAddressRange The address range of the new VNET in CIDR format.
externalDNSForwarder DNS forwarder for all non-domain (external) related DNS queries.
adSubnetName The name of the VM subnet created in the new VNET.
adSubnet The address range of the subnet created in the new VNET.
RootDC1Name The computer name of the first DC of the root domain.
RootDC1IPAddress The IP address of the first DC of the root domain.
RootDC2Name The computer name of the second DC of the root domain.
RootDC2IPAddress The IP address of the second DC of the root domain.
ChildDC3Name The computer name of the first DC of the CHILD domain.
ChildDC3IPAddress The IP address of the first DC of the CHILD domain.
ChildDC4Name The computer name of the second DC of the CHILD domain.
ChildDC4IPAddress The IP address of the second DC of the CHILD domain.
_artifactsLocation The location of resources such as templates and DSC modules that the script depends on. No need to change unless you copy or fork this template.
_artifactsLocationSasToken SAS storage token to access _artifactsLocation. No need to change unless you copy or fork this template.

Usar o modelo

PowerShell

New-AzureRmResourceGroupDeployment -Name <deployment-name> -ResourceGroupName <resource-group-name> -TemplateUri https://raw.githubusercontent.com/azure/azure-quickstart-templates/master/301-create-ad-forest-with-subdomain/azuredeploy.json
Instale e configure o PowerShell do Azure

Linha de comando

azure config mode arm
azure group deployment create <my-resource-group> <my-deployment-name> --template-uri https://raw.githubusercontent.com/azure/azure-quickstart-templates/master/301-create-ad-forest-with-subdomain/azuredeploy.json
Instalar e configurar a Interface de Linha de Comando de Plataforma Cruzada do Azure