Azure / Azure/azure-quickstart-templates
Issue: Azure Private DNS Resolver Bicep 2nd run fails
- Dominant language
- Bicep
- Stars
- 14.9k
- Forks
- 16.2k
- Avg merge
- 6d 21h
- Merged PRs (30d)
- 6
Description
--------------------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. Deploy Azure private DNS resoler Bicep template. Only change, using existing vnet with new subnets
2. First deployment works
3. second deployment will fail about subnet delegation. Looking at the UI, it has the subnet delegation
```
{"status":"Failed","error":{"code":"DeploymentFailed","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.","details":[{"code":"Conflict","message":"{\r\n \"status\": \"Failed\",\r\n \"error\": {\r\n \"code\": \"ResourceDeploymentFailure\",\r\n \"message\": \"The 'AzureAsyncOperationWaiting' resource operation completed with terminal provisioning state 'Failed'.\",\r\n
\"details\": [\r\n {\r\n \"code\": \"DeploymentFailed\",\r\n \"message\": \"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.\",\r\n \"details\": [\r\n {\r\n \"code\": \"BadRequest\",\r\n \"message\": \"{\\r\\n \\\"error\\\": {\\r\\n \\\"code\\\": \\\"SubnetMissingRequiredDelegation\\\",\\r\\n \\\"message\\\": \\\"Subnet /subscriptions/xxxxxxxx/resourceGroups/rg-network-use2/providers/Microsoft.Network/virtualNetworks/vnet-visualstudioprofessional-use2-10.2.0.0s16/subnets/pvtdnsin-visualstudioprofessional-eus2-10.2.4.0s28 requires any of the following delegation(s) [Microsoft.Network/dnsResolvers] to reference service association link /subscriptions/xxxxxxx/resourceGroups/rg-network-use2/providers/Microsoft.Network/virtualNetworks/vnet-visualstudioprofessional-use2-10.2.0.0s16/subnets/pvtdnsin-visualstudioprofessional-eus2-10.2.4.0s28/serviceAssociationLinks/dnsResolverLink.\\\",\\r\\n \\\"details\\\": []\\r\\n }\\r\\n}\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n}"}]}}
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the Azure private DNS resolver Bicep template referenced in the issue, deploy it against an existing VNet with new subnets, and inspect the deployment operations after the second run fails. Done means the template can be deployed a second time without the SubnetMissingRequiredDelegation error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure
- Domain
- cloud, infrastructure, networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100