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

Added Management Group Suffix Parameter parTopLevelManagementGroupSuffix #462

Merged
merged 16 commits into from
Feb 27, 2023

Conversation

mbrat2005
Copy link
Contributor

@mbrat2005 mbrat2005 commented Feb 23, 2023

Overview/Summary

Added a Management Group suffix parameter, enabling users to further customize the name of deployed management groups.

The suffix value will need to include a delimiter if the customer desires (to keep logic simple).

Child and custom management groups will also have the suffix appended.

#452
AB#26778

This PR fixes/adds/changes/removes

  1. Adds the parTopLevelManagementGroupSuffix parameter to the managementGroups, alzDefaultPolicyAssignments, hubPeeredSpoke, mgDiagSettingsAll, and subPlacementAll deployments
  2. Updates readmes to document parameter

Breaking Changes

None

Testing Evidence

Tested management group and policy deployments

Name                                          Type                       Value
                          ============================================  =========================  ==========
                          outTopLevelManagementGroupId                  String                     "/providers/Microsoft.Management/managementGroups/alz-mtb"
                          outPlatformManagementGroupId                  String                     "/providers/Microsoft.Management/managementGroups/alz-platform-mtb"
                          outPlatformManagementManagementGroupId        String                     "/providers/Microsoft.Management/managementGroups/alz-platform-management-mtb"
                          outPlatformConnectivityManagementGroupId      String                     "/providers/Microsoft.Management/managementGroups/alz-platform-connectivity-mtb"
                          outPlatformIdentityManagementGroupId          String                     "/providers/Microsoft.Management/managementGroups/alz-platform-identity-mtb"
                          outLandingZonesManagementGroupId              String                     "/providers/Microsoft.Management/managementGroups/alz-landingzones-mtb"
                          outLandingZoneChildrenManagementGroupIds      Array                      ["/providers/Microsoft.Management/managementGroups/alz-landingzones-corp-mtb","/providers/Microsoft.Management/managementGroups/alz-landingzones-online-mtb"]
                          outSandboxManagementGroupId                   String                     "/providers/Microsoft.Management/managementGroups/alz-sandbox-mtb"
                          outDecommissionedManagementGroupId            String                     "/providers/Microsoft.Management/managementGroups/alz-decommissioned-mtb"
                          outTopLevelManagementGroupName                String                     "alz-mtb"
                          outPlatformManagementGroupName                String                     "alz-platform-mtb"
                          outPlatformManagementManagementGroupName      String                     "alz-platform-management-mtb"
                          outPlatformConnectivityManagementGroupName    String                     "alz-platform-connectivity-mtb"
                          outPlatformIdentityManagementGroupName        String                     "alz-platform-identity-mtb"
                          outLandingZonesManagementGroupName            String                     "alz-landingzones-mtb"
                          outLandingZoneChildrenManagementGroupNames    Array                      ["Corp","Online"]
                          outSandboxManagementGroupName                 String                     "alz-sandbox-mtb"
                          outDecommissionedManagementGroupName          String                     "alz-decommissioned-mtb"

As part of this Pull Request I have

@ghost ghost added the Needs: Triage 🔍 Needs triaging by the team label Feb 23, 2023
@mbrat2005 mbrat2005 marked this pull request as ready for review February 23, 2023 20:08
@jtracey93 jtracey93 added enhancement and removed Needs: Triage 🔍 Needs triaging by the team labels Feb 24, 2023
Copy link
Collaborator

@jtracey93 jtracey93 left a comment

Choose a reason for hiding this comment

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

Looks great @mbrat2005, thanks as always.

A couple of suggestions as the management group name is also know more commonly as the ID, so just clarifying that in the suggestions.

Also there are some linter errors with trailing whitespaces and end of lines/files. Simply openning the files in VS Code and doing a format (Shift + Alt + F) will resolve it with the .editorconfig extension installed (which should be recommended when you load the ALZ-Bicep repo 👊

@ghost ghost removed the Needs: Author Feedback label Feb 24, 2023
@jtracey93
Copy link
Collaborator

/azp run validateazcloud

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jtracey93
Copy link
Collaborator

/azp run e2e

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Collaborator

@jtracey93 jtracey93 left a comment

Choose a reason for hiding this comment

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

LGTM

@jtracey93 jtracey93 merged commit 5f3119e into Azure:main Feb 27, 2023
@jtracey93 jtracey93 linked an issue Feb 28, 2023 that may be closed by this pull request
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.

💡 Management Group ID Suffix Support
2 participants