Skip to content

chore: Enhance deployment guides and improve OneLake data source creation#133

Draft
Harmanpreet-Microsoft wants to merge 1 commit intomicrosoft:mainfrom
Harmanpreet-Microsoft:fabric-byo-enhancements
Draft

chore: Enhance deployment guides and improve OneLake data source creation#133
Harmanpreet-Microsoft wants to merge 1 commit intomicrosoft:mainfrom
Harmanpreet-Microsoft:fabric-byo-enhancements

Conversation

@Harmanpreet-Microsoft
Copy link
Copy Markdown
Contributor

Purpose

This pull request introduces significant improvements to the configuration and automation of Microsoft Fabric resource deployment, especially around "bring your own" (BYO) scenarios. The changes enhance environment variable management, clarify documentation, and improve the robustness of resource ID handling across deployment scripts.

Key changes:

Documentation and Configuration Improvements

  • Expanded documentation in docs/parameter_guide.md and docs/deploymentguide.md to clearly explain the different Fabric deployment modes (create, byo, none), how to configure them via environment variables, and step-by-step instructions for BYO scenarios. This includes guidance on setting and discovering required resource IDs and workspace GUIDs. [1] [2]
  • Updated parameter names and descriptions to clarify that the fabricCapacityMode environment variable is the primary control point for both capacity and workspace presets, and that BYO inputs are now expected as environment variables.

Environment Variable Handling in Bicep

  • Modified infra/main.bicepparam to read fabricCapacityResourceId, fabricWorkspaceId, and fabricWorkspaceName directly from environment variables (using readEnvironmentVariable), improving flexibility and alignment with deployment practices.

Automation Script Enhancements

  • Updated create_lakehouses.ps1 to persist lakehouse IDs into the azd environment store after creation, enabling downstream scripts and reruns to reliably locate existing lakehouses.
  • Improved 04_create_onelake_datasource.ps1 to robustly resolve workspace and lakehouse IDs by checking azd outputs, the azd environment store, and fallback temp files, ensuring compatibility with both BYO and newly created resources.
  • ...

Does this introduce a breaking change?

  • Yes
  • No

Golden Path Validation

  • I have tested the primary workflows (the "golden path") to ensure they function correctly without errors.

Deployment Validation

  • I have validated the deployment process successfully and all services are running as expected with this change.

What to Check

Verify that the following are valid

  • ...

Other Information

…tion

- Expanded docs for BYO Fabric mode (capacity + workspace reuse)
- Updated main.bicepparam to read Fabric IDs from environment variables
- Persist lakehouse IDs via azd env in create_lakehouses.ps1
- Improved 04_create_onelake_datasource.ps1 to resolve workspace/lakehouse IDs from multiple sources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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