Azure / Azure/azure-quickstart-templates
Create Domain Controllers Broken "Out Of The Box"--Create 2 new Windows VMs, create a new AD Forest, Domain and 2 DCs in an availability set.
- Dominant language
- Bicep
- Stars
- 14.9k
- Forks
- 16.2k
- Avg merge
- 6d 21h
- Merged PRs (30d)
- 6
Description
Hi,
This is the "out of the box" experience when I run the "Create 2 new Windows VMs, create a new AD Forest, Domain and 2 DCs in an availability set" template:
```
{"code":"DeploymentFailed","message":"At least one resource
deployment operation failed. Please list deployment operations for details.
Please see https://aka.ms/arm-debug for usage details."
,"details":[{"code":"BadRequest","message":"{\r\n \"error\": {\r\n \"code\": \"InvalidResourceReference\"
,\r\n \"message\": \"Resource /subscriptions/mysub...661335b54707/resourceGroups/cr-prod-sqlclone-vmpool-east-us/providers/Microsoft.Network/virtualNetworks/adVNET/subnets/adSubnet referenced by resource /subscriptions/mysub..661335b54707/resourceGroups/cr-prod-sqlclone-vmpool-east-us/providers/Microsoft.Network/networkInterfaces/adPDCNic was not found.
Please make sure that the referenced resource exists
, and that both resources are in the same region.\"
,\r\n \"details\": []\r\n }\r\n}"},{"code":"BadRequest"
,"message":"{\r\n \"error\": {\r\n \"code\": \"InvalidResourceReference\"
,\r\n \"message\": \"Resource /subscriptions/mysub...661335b54707/resourceGroups/cr-prod-sqlclone-vmpool-east-us/providers/Microsoft.Network/virtualNetworks/adVNET/subnets/adSubnet referenced by resource /subscriptions/mysub...661335b54707/resourceGroups/cr-prod-sqlclone-vmpool-east-us/providers/Microsoft.Network/networkInterfaces/adBDCNic was not found.
Please make sure that the referenced resource exists, and that both resources are in the same
region.\",\r\n \"details\": []\r\n }\r\n}"}]}
```
There is no user interface for this, and I'd say that it's less than optimal that this template does not create NICs. There is no documentation regarding this template, so it's not clear to me why the NICs are not created. Since we are creating VMs that are to function as domain controllers, I'd suspect that creating NICs for the system is a bare minimum requirement. I'd say this experience is less than optimal, as it is broken "out of the box" to use the parlance of our times.
--------------------MESSAGE FROM ADMIN, DELETE BEFORE SUBMITTING----------------------
Sorry to hear you had a bad experience with one of the templates :worried: But, in case you're just asking a question, we're happy to help. You can also check if the question might already have been asked here https://github.com/Azure/azure-quickstart-templates/issues?utf8=%E2%9C%93&q=is%3Aissue
We've created an outline of recommended sections to fill out that will help make this Pull Request awesome!
--------------------MESSAGE FROM ADMIN, DELETE BEFORE SUBMITTING----------------------
[Template Name goes here](Template link goes here)
### Issue Details
### Repro steps (*if necessary, delete otherwise*)
1. Navigate to:
2. Launch the process.
3. Watch it bomb.
4.
5.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with active-directory-new-domain-ha-2-dc/azuredeploy.json from the deployment link and reproduce the template deployment. Inspect how adPDCNic and adBDCNic reference adVNET/adSubnet; done means the template deploys successfully and creates the NICs required by both domain controller VMs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure
- Domain
- cloud, infrastructure
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100