Skip to content

Remove private dns zone on azure vnet and subnet tfm module#1047

Closed
alambike wants to merge 11 commits intomainfrom
feat/remove-private-dns-zone-on-azure-vnet-and-subnet-tfm-module
Closed

Remove private dns zone on azure vnet and subnet tfm module#1047
alambike wants to merge 11 commits intomainfrom
feat/remove-private-dns-zone-on-azure-vnet-and-subnet-tfm-module

Conversation

@alambike
Copy link
Contributor

No description provided.

gustavoborragan and others added 9 commits March 17, 2026 13:09
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Init release module project.
Init release module project.
Co-authored-by: fs-prefapp-state[bot] <261589752+fs-prefapp-state[bot]@users.noreply.github.com>
* Add azure-dns-zone module

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Set release-please manifest

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Fix release please manifest
Co-authored-by: fs-prefapp-state[bot] <261589752+fs-prefapp-state[bot]@users.noreply.github.com>
@alambike alambike requested a review from a team as a code owner March 17, 2026 16:08
@alambike alambike requested a review from Copilot March 17, 2026 16:10
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes Private DNS Zone creation/linking functionality from the azure-vnet-and-subnet Terraform module, simplifying the module to only manage VNets, subnets, and VNet peerings.

Changes:

  • Removes the private_dns_zones input variable from the module.
  • Deletes the azurerm_private_dns_zone and azurerm_private_dns_zone_virtual_network_link resources.
  • Removes the related outputs and partial README references.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
modules/azure-vnet-and-subnet/variables.tf Removes private_dns_zones input, but currently leaves peerings/tags definitions in a broken state.
modules/azure-vnet-and-subnet/private_dns_zone.tf Deletes Private DNS Zone resource creation.
modules/azure-vnet-and-subnet/private_dns_zone_vnet_link.tf Deletes Private DNS Zone ↔ VNet link resource creation logic.
modules/azure-vnet-and-subnet/outputs.tf Removes private DNS-related outputs.
modules/azure-vnet-and-subnet/README.md Removes some private DNS references, but still contains stale examples/outputs further down.
Comments suppressed due to low confidence (2)

modules/azure-vnet-and-subnet/variables.tf:28

  • variables.tf is now syntactically invalid: the peerings variable’s type = list(object({ ... block is not closed, and the subsequent tags variable fields appear to be accidentally inlined inside peerings (the variable "tags" { header and the remaining peerings attributes are missing). This will prevent terraform init/validate from running. Restore a complete peerings object schema (matching the fields used in vnet-peering.tf) and reintroduce a separate variable "tags" block.
  description = "List of virtual network peerings"
  type = list(object({
    peering_name                 = string
    allow_forwarded_traffic      = optional(bool, false)
  description = "The tags to associate with your resources"

modules/azure-vnet-and-subnet/README.md:56

  • The README removes private_dns_zones from the Inputs table, but later sections still document and show usage/output for private_dns_zones, private_dns_zone_ids, and private_dns_zone_virtual_network_link_ids (see the .tfvars example and Output snippet further down). Please update/remove those examples and output docs so the README matches the module after dropping private DNS zone support.
| `peerings` | List of virtual network peerings | list(object) | `[]` | no |
| `peerings.peering_name` | The name of the peering | string | n/a | yes |
| `peerings.allow_forwarded_traffic` | Whether forwarded traffic is allowed | bool | `false` | no |
| `peerings.allow_gateway_transit` | Whether gateway transit is allowed | bool | `false` | no |
| `peerings.allow_virtual_network_access` | Whether virtual network access is allowed | bool | `true` | no |

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@gustavoborragan
Copy link
Contributor

Desestimada

@gustavoborragan gustavoborragan deleted the feat/remove-private-dns-zone-on-azure-vnet-and-subnet-tfm-module branch March 20, 2026 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants