Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing Effect1 parameter and usage. Updated parameter value #1923

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

SebastianClaesson
Copy link

@SebastianClaesson SebastianClaesson commented Feb 11, 2025

Overview/Summary

Pull request fixes;

The Azure Policy Set for "deploy-private-dns-zones" contains a parameter called effect1 which is used for only these azure policy definitions;

DINE-Private-DNS-Azure-EventGridTopics
DINE-Private-DNS-Azure-IoTHubs
DINE-Private-DNS-Azure-EventGridDomains
The parameter should be removed and the parameter effect should be used instead across these three policy definitions.

However the default value of the parameter dnsZoneNames with key 'azureEventGridTopicsPrivateDnsZoneId' is
"privatelink.eventgrid.azure.net"
Reference; azureEventGridTopicsPrivateDnsZoneId

According to the Event grid documentations the expected DNS zone should be in the following format;
..privatelink.eventgrid.azure.net

Reference; https://learn.microsoft.com/en-us/azure/event-grid/network-security#dns-changes-for-private-endpoints

This PR fixes/adds/changes/removes

  1. Removes Effect1 parameter (Effect1 - Parameter #1919)
  2. Changes that the three policies that utilized Effect1 now uses Effect parameter (Effect1 - Parameter #1919)
  3. Updated the parameter for eventgrid topic and domainName to contain regionName (Eventgrid - Topic - Private dns zone policy #1920)

Breaking Changes

  1. Removed a parameter called "Effect1" which will lead to that the policySet needs to be reprovisioned.

Testing Evidence

Using EnterprisePolicyAsCode this is the output; (Proving that a redeploy of the initiative is required)
image
image

The logic works after update (However I do not have any topics or domain names to test on)
image

As part of this Pull Request I have

  • Checked for duplicate Pull Requests
  • Associated it with relevant issues, for tracking and closure.
  • Ensured my code/branch is up-to-date with the latest changes in the main branch
  • Performed testing and provided evidence.
  • Ensured contribution guidance is followed.
  • Updated relevant and associated documentation.
  • Updated the "What's New?" wiki page (located: /docs/wiki/whats-new.md)

@SebastianClaesson SebastianClaesson requested a review from a team as a code owner February 11, 2025 09:49
@SebastianClaesson SebastianClaesson changed the title Removing Effect1 parameter and usage. Replaced with Effect Removing Effect1 parameter and usage. Updated parameter value Feb 11, 2025
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.

1 participant