Skip to content

Make managed exports optional #1723

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

Merged
merged 4 commits into from
Jul 4, 2025
Merged

Make managed exports optional #1723

merged 4 commits into from
Jul 4, 2025

Conversation

flanakin
Copy link
Collaborator

@flanakin flanakin commented Jun 26, 2025

πŸ› οΈ Description

Make managed exports optional for people who cannot grant User Access Administrator.

Related to #1600
Fixes #1700

πŸ“‹ Checklist

πŸ”¬ How did you test this change?

  • 🀏 Lint tests
  • 🀞 PS -WhatIf / az validate
  • πŸ‘ Manually deployed + verified
  • πŸ’ͺ Unit tests
  • πŸ™Œ Integration tests

πŸ™‹β€β™€οΈ Do any of the following that apply?

  • 🚨 This is a breaking change.
  • 🀏 The change is less than 20 lines of code.

πŸ“‘ Did you update docs/changelog.md?

  • βœ… Updated changelog (required for dev PRs)
  • ➑️ Will add log in a future PR (feature branch PRs only)
  • ❎ Log not needed (small/internal change)

πŸ“– Did you update documentation?

  • βœ… Public docs in docs (required for dev)
  • βœ… Internal dev docs in src (required for dev)
  • ➑️ Will add docs in a future PR (feature branch PRs only)
  • ❎ Docs not needed (small/internal change)

@flanakin flanakin added this to the 2025-06 - June milestone Jun 26, 2025
@microsoft-github-policy-service microsoft-github-policy-service bot added Micro PR πŸ”¬ Very small PR that should be especially easy for newcomers Needs: Review πŸ‘€ PR that is ready to be reviewed labels Jun 26, 2025
@flanakin flanakin linked an issue Jun 27, 2025 that may be closed by this pull request
@flanakin flanakin requested a review from Copilot June 27, 2025 08:06
Copy link
Contributor

@Copilot 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 makes managed exports optional for FinOps hub deployments, allowing users who cannot grant User Access Administrator to disable this functionality. Key changes include:

  • Introducing a new boolean parameter (enableManagedExports) in multiple Bicep templates (hub.bicep, dataFactory.bicep, and main.bicep) to control managed exports.
  • Wrapping related resources and role assignments in conditionals based on enableManagedExports.
  • Updating the UI definition and documentation to reflect the change.

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/templates/finops-hub/modules/hub.bicep Added parameter enableManagedExports and passed it to resource modules.
src/templates/finops-hub/modules/dataFactory.bicep Added parameter enableManagedExports, applied conditional logic to RBAC roles and resources.
src/templates/finops-hub/main.bicep Passed enableManagedExports parameter to the hub module.
src/templates/finops-hub/createUiDefinition.json Updated UI elements to include managed exports settings.
docs-mslearn/toolkit/hubs/template.md Updated documentation to describe the new enableManagedExports parameter.
docs-mslearn/toolkit/changelog.md Added changelog entry for the enableManagedExports feature.
Comments suppressed due to low confidence (2)

src/templates/finops-hub/createUiDefinition.json:734

  • Ensure that the UI definition for 'enableManagedExports' accurately reflects the parameter's purpose and default behavior, matching the implementation in the Bicep modules.
      "enableManagedExports": "[steps('advanced').networking.enableManagedExports]",

docs-mslearn/toolkit/hubs/template.md:64

  • Clarify in the documentation that the 'User Access Administrator' role is conditionally applied based on the enableManagedExports setting, ensuring consistency with the new behavior.
   | [User Access Administrator](/azure/role-based-access-control/built-in-roles#user-access-administrator)                                       | Assigned to Data Factory to manage data in storage. Not applied when **enableManagedExports** is disabled. |

flanakin and others added 2 commits June 29, 2025 07:44
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@arthurclares arthurclares merged commit fd9c824 into dev Jul 4, 2025
4 checks passed
@arthurclares arthurclares deleted the flanakin/hubs-mexopt branch July 4, 2025 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Micro PR πŸ”¬ Very small PR that should be especially easy for newcomers Needs: Review πŸ‘€ PR that is ready to be reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deployment fails with authorisation error
2 participants