feat: Infra restructure#2272
Draft
AjitPadhi1-Microsoft wants to merge 12 commits into
Draft
Conversation
… Apps Author v2/infra/bicep/main.bicep so the 'bicep' flavor is functionally equivalent to v2/infra/avm/main.bicep while using the granular native-resource modules under v2/infra/bicep/modules/*. Frontend and backend run on Azure Container Apps; the Functions host runs as a code/zip Linux Function App. - Enable the bicepDeployment module in the v2/infra/main.bicep router and route via DEPLOYMENT_FLAVOR (now defaulted to bicep in main.parameters.json). - Mirror the avm resource graph, env vars, model deployments and outputs (43 app outputs identical; VNet/Bastion outputs omitted as the Docker flavor has no private-networking layer). - Author all RBAC natively in main.bicep (avm uses a role-assignment module) using deterministic existing-resource refs plus explicit dependsOn, since module files are frozen. - Declare the 6 ingestion storage queues natively (doc-processing/blob-events/add-url + poison). - Documented forced deviations from avm: Log Analytics always deployed and storage allowSharedKeyAccess=true (required by the unchanged container-app-environment and function-app modules); Event Grid uses first-party StorageQueue delivery. - No module files changed. Both v2/infra/main.bicep and v2/infra/bicep/main.bicep build clean (az bicep build, exit 0, no warnings).
The conditional router outputs in v2/infra/main.bicep referenced avmDeployment in both the true and false ternary branches, so in 'bicep' flavor the outputs pointed at the undeployed avm module and ARM rejected the template (InvalidTemplate: output reference to module.avm requires an API version). Point the false (isBicep) branch at bicepDeployment so each flavor reads outputs from the module it actually deploys, mirroring the working avm path.
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
Does this introduce a breaking change?
How to Test
What to Check
Verify that the following are valid
Other Information