Skip to content

fix: DevOps CI/CD agents pattern module DNS properties were not used and added dnsIsDeployedByPolicy property#5944

Closed
johnlokerse wants to merge 8 commits into
Azure:mainfrom
johnlokerse:johnlokerse/update-cicd-agent-ptn
Closed

fix: DevOps CI/CD agents pattern module DNS properties were not used and added dnsIsDeployedByPolicy property#5944
johnlokerse wants to merge 8 commits into
Azure:mainfrom
johnlokerse:johnlokerse/update-cicd-agent-ptn

Conversation

@johnlokerse

Copy link
Copy Markdown
Contributor

Description

Ran into some DNS issues when bringing your own DNS setup and when using DINE policies. This pull request removes privateDnsZoneGroupName and privateDnsZoneResourceIds in module acr. These properties were not used. Updated them to the correct properties as defined in the UDT. Additionally, added the parameter dnsIsDeployedByPolicy to be able to skip the configuration of privateDnsZoneGroups.

Updated modules to the latest version.

Pipeline Reference

Do you have an environment set up @sebassem so this change can be tested?

Type of Change

  • Azure Verified Module updates:
    • Bugfix containing backwards-compatible bug fixes, and I have NOT bumped the MAJOR or MINOR version in version.json:
    • Feature update backwards compatible feature updates, and I have bumped the MINOR version in version.json.
    • Breaking changes and I have bumped the MAJOR version in version.json.
    • Update to documentation
  • Update to CI Environment or utilities (Non-module affecting changes)

Checklist

  • I'm sure there are no other open Pull Requests for the same update/change
  • I have run Set-AVMModule locally to generate the supporting module files.
  • My corresponding pipelines / checks run clean and green without any errors or warnings
  • I have updated the module's CHANGELOG.md file with an entry for the next version

- Added optional parameter 'dnsIsDeployedByPolicy' to control DNS deployment by policy.
- Updated private DNS zone group logic to utilize the new parameter.
- Introduced a new parameter `dnsIsDeployedByPolicy` to indicate if the DNS configuration is deployed by policy.
- Updated README.md to document the new parameter.
- Modified main.json to include the new parameter in the parameters section.
- Updated API version for private DNS zone and container registry modules.
- Adjusted references to outputs for new version compatibility.
- Updated managed environment and job module versions for consistency.
@johnlokerse johnlokerse requested review from a team as code owners September 8, 2025 13:01
@avm-organizer avm-organizer Bot added the Needs: Module Owner 📣 This module needs an owner to develop or maintain it label Sep 8, 2025
@microsoft-github-policy-service microsoft-github-policy-service Bot added the Needs: Triage 🔍 Maintainers need to triage still label Sep 8, 2025
@microsoft-github-policy-service

Copy link
Copy Markdown

Important

The "Needs: Triage 🔍" label must be removed once the triage process is complete!

Tip

For additional guidance on how to triage this issue/PR, see the BRM Issue Triage documentation.

@microsoft-github-policy-service microsoft-github-policy-service Bot added the Type: AVM 🅰️ ✌️ Ⓜ️ This is an AVM related issue label Sep 8, 2025
@microsoft-github-policy-service

Copy link
Copy Markdown

Important

If this is a module-related PR, being submitted by the sole owner of the module, the AVM core team must review and approve it (as module owners can't approve their own PRs).

To indicate this PR needs the core team''s attention, apply the "Needs: Core Team 🧞" label!

The core team will only review and approve PRs that have this label applied!

@avm-organizer avm-organizer Bot requested a review from sebassem September 8, 2025 13:02
@johnlokerse johnlokerse changed the title Johnlokerse/update cicd agent ptn Fix: CI/CD agents DNS properties were not used Sep 8, 2025
@johnlokerse johnlokerse changed the title Fix: CI/CD agents DNS properties were not used Fix: DevOps CI/CD agents pattern module DNS properties were not used and added dnsIsDeployedByPolicy property Sep 8, 2025
sebassem
sebassem previously approved these changes Sep 8, 2025

@sebassem sebassem left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@johnlokerse johnlokerse changed the title Fix: DevOps CI/CD agents pattern module DNS properties were not used and added dnsIsDeployedByPolicy property fix: DevOps CI/CD agents pattern module DNS properties were not used and added dnsIsDeployedByPolicy property Sep 8, 2025
jtracey93
jtracey93 previously approved these changes Oct 22, 2025
@jtracey93 jtracey93 closed this Oct 22, 2025
@jtracey93 jtracey93 reopened this Oct 22, 2025
@jtracey93

Copy link
Copy Markdown
Contributor

@johnlokerse can you resolve the merge conflicts

@johnlokerse johnlokerse dismissed stale reviews from jtracey93 and sebassem via cea7697 October 31, 2025 08:10
@johnlokerse

Copy link
Copy Markdown
Contributor Author

@jtracey93 Done, but I have some issues with generating the README via Set-AVMModule command. This pattern module does not have a waf-aligned e2e test but the command creates it, resulting in errors because the generated waf-aligned tests have module errors. See console output:

CleanShot 2025-10-31 at 09 15 10@2x

Comment thread avm/ptn/dev-ops/cicd-agents-and-runners/main.bicep
@johnlokerse johnlokerse requested a review from jtracey93 October 31, 2025 09:29
@AlexanderSehr

Copy link
Copy Markdown
Collaborator

@jtracey93 Done, but I have some issues with generating the README via Set-AVMModule command. This pattern module does not have a waf-aligned e2e test but the command creates it, resulting in errors because the generated waf-aligned tests have module errors. See console output:

CleanShot 2025-10-31 at 09 15 10@2x

Regarding this @johnlokerse, please run the script with the corresponding skips. For example:
Set-AvmModule -ModuleFolderPath '<path>' -SkipFileAndFolderSetup -ThrottleLimit 10.

Maybe it's time to flip this skip-switch parameter on its head.

@johnlokerse

Copy link
Copy Markdown
Contributor Author

Set-AvmModule -ModuleFolderPath '' -SkipFileAndFolderSetup -ThrottleLimit 10

That works! Pushed changes.

@AlexanderSehr

Copy link
Copy Markdown
Collaborator

Closing in favor of #7030

@johnlokerse you'll remain the author of the changes as I just rebased the PR to resolve the conflicts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs: Module Owner 📣 This module needs an owner to develop or maintain it Needs: Triage 🔍 Maintainers need to triage still Type: AVM 🅰️ ✌️ Ⓜ️ This is an AVM related issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants