Skip to content

fix: Add Active Directory site support to NetApp account module AD configuration - #7032

Open
Felipe Binotto (fbinotto) with Copilot wants to merge 11 commits into
mainfrom
copilot/add-site-property-active-directory
Open

Felipe Binotto (fbinotto) with Copilot wants to merge 11 commits into
mainfrom
copilot/add-site-property-active-directory

Conversation

Copilot AI commented May 12, 2026 •

Copy link
Copy Markdown
Contributor

Description

The NetApp account module did not expose the Active Directory site field, which blocked parity with existing portal-configured AD integrations during migration to Bicep. This change adds an explicit module input and maps it to the ARM activeDirectories[].site property.

  • Module behavior

    • Added new optional nullable parameter: activeDirectorySite.
    • Wired activeDirectorySite into Microsoft.NetApp/netAppAccounts.properties.activeDirectories[].site.
    • Emits site only when both domainName and activeDirectorySite are non-empty (avoids sending empty string values).
  • Generated artifacts

    • Updated main.json to include the new parameter and compiled mapping.
    • Updated README.md to document activeDirectorySite, keep parameter ordering consistent, and clarify the site description.
    • Updated CHANGELOG.md with a new entry (0.12.5) for this enhancement.
@description('Optional. The Active Directory site (as configured in Active Directory Sites and Services) the service will limit Domain Controller discovery to.')
param activeDirectorySite string?

var activeDirectoryConnectionProperties = [
  {
    // ...
    site: !empty(domainName) && !empty(activeDirectorySite) ? activeDirectorySite : null
  }
]
  • Test infrastructure
    • Replaced the CMK test's sleep-only Azure deploymentScript with OIDC-authenticated runner-side dependency preparation and the same 15-second propagation wait.
    • Retained the actual CMK account deployment and cleanup tracking for both phases; no production-module changes were needed for this test fix and no Azure security controls were relaxed.

Pipeline Reference

Pipeline
NetApp module validation - successful fork run for 5e557f121

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

@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 May 12, 2026
@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!

Copilot AI 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.

Copilot wasn't able to review any files in this pull request.

@fbinotto

Copy link
Copy Markdown
Contributor

Copilot make the changes based on the plan.

Copilot AI changed the title [WIP] Add site property for activeDirectory configuration in NetApp module Add Active Directory site support to NetApp account module AD configuration May 12, 2026

Copilot AI commented May 12, 2026

Copy link
Copy Markdown
Contributor Author

Copilot make the changes based on the plan.

Implemented the follow-up changes from the plan, including the module CHANGELOG update for activeDirectorySite support. Addressed in commit d5c7098.

@fbinotto Felipe Binotto (fbinotto) 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.

Copilot it failed validation. Fix it.

Error: No release type found in pull request title "Add Active Directory site support to NetApp account module AD configuration". Add a prefix to indicate what kind of release this pull request corresponds to. For reference, see https://www.conventionalcommits.org/

Available types:

  • feat: A new feature
  • fix: A bug fix
  • docs: Documentation only changes
  • style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
  • refactor: A code change that neither fixes a bug nor adds a feature
  • perf: A code change that improves performance
  • test: Adding missing tests or correcting existing tests
  • build: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)
  • ci: Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)
  • chore: Other changes that don't modify src or test files
  • revert: Reverts a previous commit

Copilot AI commented May 12, 2026

Copy link
Copy Markdown
Contributor Author

Copilot it failed validation. Fix it.

Error: No release type found in pull request title "Add Active Directory site support to NetApp account module AD configuration". Add a prefix to indicate what ...

Updated the PR title to use a conventional-commit release type prefix (fix: Add Active Directory site support to NetApp account module AD configuration). No code changes were required; current head is d5c7098.

Copilot AI changed the title Add Active Directory site support to NetApp account module AD configuration fix: Add Active Directory site support to NetApp account module AD configuration May 12, 2026

@fbinotto Felipe Binotto (fbinotto) 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

@fbinotto
Felipe Binotto (fbinotto) marked this pull request as ready for review May 12, 2026 05:34
@fbinotto
Felipe Binotto (fbinotto) requested review from a team May 12, 2026 05:34

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.

Hey Felipe Binotto (@fbinotto) I see you raised this via copilot. Is this experimental or ready for review?
If ready, could you please add a pipeline badge proving the successful run in your fork?
If not ready, could you please set this as draft?

@azure-verified-modules azure-verified-modules Bot added the Needs: Module Owner 📣 This module needs an owner to develop or maintain it label Sep 24, 2026
fbinottoms and others added 2 commits October 17, 2026 11:46
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 7440d54c-504e-4b76-be4e-a68aea10e61e
@fbinotto

Copy link
Copy Markdown
Contributor

Erika Gressi (@eriqua) Addressed the nullable-parameter suggestion in eb81787: activeDirectorySite is now string?, with the existing null/empty guard retained; README and ARM template were regenerated. A real AD-site E2E would require an AD environment and configured site, which the current scenarios do not provision, so no nominal test was added that would skip the site mapping. Ran the fork pipeline with static validation, deployment validation and cleanup enabled: https://github.com/fbinotto/bicep-registry-modules/actions/runs/38992842888 . Static validation, all PSRule jobs, and defaults/max/nfs3/waf-aligned deployments passed. The cmk-uami dependency deployment failed before the NetApp module was exercised because its deployment-script storage rejected key authentication (KeyBasedAuthenticationNotPermitted, HTTP 403); cleanup completed successfully for that failed scenario. The existing HSM scenario remains explicitly excluded. The PR description now reflects the nullable contract and actual run result; a successful-run badge is still pending resolution of the CMK test-environment blocker.

Replace the sleep-only deployment script with opt-in runner-side dependency preparation while preserving the full CMK deployment and cleanup tracking.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 7440d54c-504e-4b76-be4e-a68aea10e61e
@fbinotto
Felipe Binotto (fbinotto) requested a review from a team as a code owner October 17, 2026 03:34
@azure-verified-modules azure-verified-modules Bot added the Needs: Core Team 🧞 This item needs the AVM Core Team to review it label Oct 17, 2026
@fbinotto

Copy link
Copy Markdown
Contributor

Erika Gressi (@eriqua) The fork pipeline is now green for the current PR head, 5e557f1: https://github.com/fbinotto/bicep-registry-modules/actions/runs/38999314221 . I added the workflow badge linked to that successful run under Pipeline Reference. Static validation, all PSRule jobs and all five enabled E2E deployment scenarios passed, including cmk-uami. The existing cmk-hsm-uami exclusion remains unchanged. The earlier CMK blocker was resolved using test/CI-only changes: dependency staging and the existing 15-second RBAC propagation wait now run on the OIDC-authenticated GitHub runner instead of an Azure deploymentScript; the actual CMK account deployment and cleanup for both phases remain enabled. No Azure security controls were relaxed, and production-module files were unchanged by this test fix. Your nullable suggestion is implemented as param activeDirectorySite string?; the AD-site integration coverage limitation described above still applies. Ready for another review.

This branch has not been deployed

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

Labels

Needs: Core Team 🧞 This item needs the AVM Core Team to review 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.

[AVM Module Issue]: Netapp account module missing site property for activeDirectory configuration

5 participants