Azure / Azure/azure-quickstart-templates

AD deployment Mandatory Parameter is missing

Open
#5,339 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Bicep
Stars
14.9k
Forks
16.2k
Avg merge
6d 21h
Merged PRs (30d)
6

Description

Template Issue: Mandatory parameter DomainName is missing.
Template: CreateADPDC.ps1
"message": "The DSC Extension failed to execute: Mandatory parameter DomainName is missing.

### Issue Details
I'm trying to deploy an active directory server using DSC for learning I have created my own JSON
The error That I get is this one "**Mandatory parameter DomainName is missing**", I'm sure I have defined the parameter domain name in my parameter file and in the azuredeploy.json but I don't know how to get rid of this error, I had attach the ps1, json files and the 0.status file output for the VM.

[azuredeploy.json.txt](https://github.com/Azure/azure-quickstart-templates/files/2502156/azuredeploy.json.txt)

[azuredeploy.parameters.json.txt](https://github.com/Azure/azure-quickstart-templates/files/2502154/azuredeploy.parameters.json.txt)

[0.status.txt](https://github.com/Azure/azure-quickstart-templates/files/2502167/0.status.txt)

[CreateADPDC.ps1.txt](https://github.com/Azure/azure-quickstart-templates/files/2502172/CreateADPDC.ps1.txt)

Regards,
German

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by comparing how DomainName is declared and passed across CreateADPDC.ps1, azuredeploy.json, and azuredeploy.parameters.json, then inspect 0.status.txt for the DSC Extension invocation. Done means the template deploys the Active Directory server without the mandatory-parameter error.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, powershell
Domain
cloud, infrastructure
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.