feat: existing resources support with azd up #46
Merged
Yamini-Microsoft merged 9 commits intodevfrom Feb 25, 2026
Merged
Conversation
- Add parameters for existing Event Hub Namespace, Event Hub, and Fabric Capacity - Support three scenarios: create all new, use existing namespace with new Event Hub, use all existing - Update outputs to handle both new and existing resource scenarios - Update DeploymentGuide.md with usage examples and configuration reference
- Require Event Hub resources to be in the same resource group as deployment - Make deployment guide more readable with collapsible sections
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request introduces support for reusing existing Azure resources (Event Hub Namespace, Event Hub, and Fabric Capacity) during deployment, enabling cost optimization and flexibility for users who want to leverage pre-existing infrastructure. The PR also refactors the deployment documentation to provide clearer, more organized guidance with collapsible sections and specific instructions for using existing resources.
Changes:
- Added Bicep parameters and conditional logic to support existing Event Hub Namespace, Event Hub, and Fabric Capacity resources
- Updated Python deployment script to resolve Event Hub resource group correctly when reusing existing resources
- Reorganized deployment documentation with collapsible sections and comprehensive instructions for resource reuse scenarios
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 6 comments.
| File | Description |
|---|---|
| infra/main.bicep | Added parameters for existing resources, implemented conditional resource creation logic, and updated outputs to reflect resource usage |
| infra/main.parameters.json | Added parameter mappings for existing resource names from environment variables |
| infra/scripts/fabric/deploy_fabric_rti.py | Added Event Hub resource group resolution logic and reformatted docstring for better readability |
| docs/DeploymentGuide.md | Restructured documentation with collapsible sections, added detailed instructions for using existing resources, and clarified deployment requirements |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Update Bicep parameter description and code comments - Add note in deployment guide that Event Hub name requires namespace - Prevent misconfiguration where only Event Hub name is set
- Grant Data Sender role when using existing Event Hub namespace - Add BCP318 suppression for Event Hub module outputs (consistent with Fabric) - Document automatic role assignment in deployment guide
- Correct Configuration Settings anchor from 'advanced-configuration' to 'optional' - Ensures table of contents links navigate correctly to Step 3 heading
Prajwal-Microsoft
approved these changes
Feb 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
Deployment customization and resource reuse:
infra/main.bicepto allow the use of existing Event Hub Namespace, Event Hub, and Fabric Capacity, enabling deployments to reuse resources instead of always creating new ones.infra/main.bicepto conditionally reference or create Event Hub Namespace and Event Hub based on provided parameters, and to conditionally create Fabric Capacity. [1] [2]infra/main.bicepto reflect whether existing resources were used and to provide additional deployment context, such as resource group location and usage flags.Documentation improvements:
docs/DeploymentGuide.mdto clarify advanced configuration, grouping environment variable settings by common scenarios (alert email, resource reuse), and providing detailed instructions for deploying with existing resources.docs/DeploymentGuide.mdfor permission checks, tool verification, and deployment options, making the guide more navigable and user-friendly. [1] [2] [3] [4] [5] [6] [7] [8]docs/DeploymentGuide.mdto reference a dedicated troubleshooting document for common deployment issues.Other improvements:
infra/main.bicepfor better readability and maintainability. [1] [2]These changes together make deployments more flexible, documentation clearer, and troubleshooting easier for users.
Does this introduce a breaking change?
How to Test
What to Check
Verify that the following are valid
Other Information