Skip to content

Commit 9ed13e5

Browse files
Infra restructure: align flavor routing and AVM/Bicep module layout
1 parent 26208a7 commit 9ed13e5

66 files changed

Lines changed: 186344 additions & 183320 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

azure.yaml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,14 @@ parameters:
99
AzureAiServiceLocation:
1010
type: string
1111
default: japaneast
12-
deploymentFlavor:
13-
type: string
14-
default: avm
1512
Prefix:
1613
type: string
1714
default: azdtemp
1815
baseUrl:
1916
type: string
2017
default: 'https://raw.githubusercontent.com/microsoft/Modernize-your-code-solution-accelerator'
21-
deployment:
22-
mode: Incremental
23-
template: ./infra/main.bicep # Path to the main.bicep file inside the 'deployment' folder
24-
parameters:
25-
AzureAiServiceLocation: ${{ parameters.AzureAiServiceLocation }}
26-
deploymentFlavor: ${{ parameters.deploymentFlavor }}
27-
Prefix: ${{ parameters.Prefix }}
28-
baseUrl: ${{ parameters.baseUrl }}
18+
infra:
19+
provider: bicep
20+
path: infra
21+
module: main
22+
parameters: infra/main.parameters.json

azure_custom.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ parameters:
99
azureAiServiceLocation:
1010
type: string
1111
default: japaneast
12-
deploymentFlavor:
13-
type: string
14-
default: avm
1512

1613
services:
1714
backend:
@@ -32,3 +29,5 @@ services:
3229
infra:
3330
provider: bicep
3431
path: infra
32+
module: main
33+
parameters: infra/main.parameters.json

infra/avm/main.bicep

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ module dataCollectionEndpoint 'br/public:avm/res/insights/data-collection-endpoi
320320

321321

322322
// Virtual Network with NSGs and Subnets
323-
module virtualNetwork '../modules/virtualNetwork.bicep' = if (enablePrivateNetworking) {
323+
module virtualNetwork './modules/networking/virtual-network.bicep' = if (enablePrivateNetworking) {
324324
name: take('module.virtualNetwork.${solutionSuffix}', 64)
325325
params: {
326326
name: 'vnet-${solutionSuffix}'
@@ -754,7 +754,7 @@ module virtualMachine 'br/public:avm/res/compute/virtual-machine:0.22.0' = if (e
754754
}
755755
}
756756

757-
module aiServices '../modules/ai-foundry/aifoundry.bicep' = {
757+
module aiServices './modules/ai/ai-foundry-project.bicep' = {
758758
name: take('module.aifoundry.${solutionSuffix}', 64)
759759
#disable-next-line no-unnecessary-dependson
760760
dependsOn: [logAnalyticsWorkspace, virtualNetwork] // required due to optional flags that could change dependency
@@ -845,7 +845,7 @@ module aiFoundryPrivateEndpoint 'br/public:avm/res/network/private-endpoint:0.12
845845

846846
var appStorageContainerName = 'appstorage'
847847

848-
module storageAccount '../modules/storageAccount.bicep' = {
848+
module storageAccount './modules/data/storage-account.bicep' = {
849849
name: take('module.storageAccount.${solutionSuffix}', 64)
850850
#disable-next-line no-unnecessary-dependson
851851
dependsOn: [logAnalyticsWorkspace, virtualNetwork] // required due to optional flags that could change dependency
@@ -882,7 +882,7 @@ module storageAccount '../modules/storageAccount.bicep' = {
882882
}
883883
}
884884

885-
module cosmosDb '../modules/cosmosDb.bicep' = {
885+
module cosmosDb './modules/data/cosmos-db.bicep' = {
886886
name: take('module.cosmosDb.${solutionSuffix}', 64)
887887
#disable-next-line no-unnecessary-dependson
888888
dependsOn: [logAnalyticsWorkspace, virtualNetwork] // required due to optional flags that could change dependency

infra/avm/main_custom.bicep

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ module applicationInsights 'br/public:avm/res/insights/component:0.7.1' = if (en
306306

307307

308308
// Virtual Network with NSGs and Subnets
309-
module virtualNetwork '../modules/virtualNetwork.bicep' = if (enablePrivateNetworking) {
309+
module virtualNetwork './modules/networking/virtual-network.bicep' = if (enablePrivateNetworking) {
310310
name: take('module.virtualNetwork.${solutionSuffix}', 64)
311311
params: {
312312
name: 'vnet-${solutionSuffix}'
@@ -663,7 +663,7 @@ module virtualMachine 'br/public:avm/res/compute/virtual-machine:0.22.0' = if (e
663663
}
664664
}
665665

666-
module aiServices '../modules/ai-foundry/aifoundry.bicep' = {
666+
module aiServices './modules/ai/ai-foundry-project.bicep' = {
667667
name: take('module.aifoundry.${solutionSuffix}', 64)
668668
#disable-next-line no-unnecessary-dependson
669669
dependsOn: [logAnalyticsWorkspace, virtualNetwork] // required due to optional flags that could change dependency
@@ -754,7 +754,7 @@ module aiFoundryPrivateEndpoint 'br/public:avm/res/network/private-endpoint:0.12
754754

755755
var appStorageContainerName = 'appstorage'
756756

757-
module storageAccount '../modules/storageAccount.bicep' = {
757+
module storageAccount './modules/data/storage-account.bicep' = {
758758
name: take('module.storageAccount.${solutionSuffix}', 64)
759759
#disable-next-line no-unnecessary-dependson
760760
dependsOn: [logAnalyticsWorkspace, virtualNetwork] // required due to optional flags that could change dependency
@@ -814,7 +814,7 @@ resource acrPullRoleAssignment 'Microsoft.Authorization/roleAssignments@2022-04-
814814
}
815815
}
816816

817-
module cosmosDb '../modules/cosmosDb.bicep' = {
817+
module cosmosDb './modules/data/cosmos-db.bicep' = {
818818
name: take('module.cosmosDb.${solutionSuffix}', 64)
819819
#disable-next-line no-unnecessary-dependson
820820
dependsOn: [logAnalyticsWorkspace, virtualNetwork] // required due to optional flags that could change dependency
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
metadata name = 'Modernize Base Placeholder Module'
2+
metadata description = 'Base-repo-owned placeholder module created to align infra structure with reference layout without importing external implementation.'
3+
4+
@description('Optional pass-through settings for future module implementation.')
5+
param settings object = {}
6+
7+
@description('Optional tags.')
8+
param tags object = {}
9+
10+
@description('Echoes input settings so callers can safely compose with this module when needed.')
11+
output settings object = settings
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
metadata name = 'Modernize Base Placeholder Module'
2+
metadata description = 'Base-repo-owned placeholder module created to align infra structure with reference layout without importing external implementation.'
3+
4+
@description('Optional pass-through settings for future module implementation.')
5+
param settings object = {}
6+
7+
@description('Optional tags.')
8+
param tags object = {}
9+
10+
@description('Echoes input settings so callers can safely compose with this module when needed.')
11+
output settings object = settings
File renamed without changes.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
metadata name = 'Modernize Base Placeholder Module'
2+
metadata description = 'Base-repo-owned placeholder module created to align infra structure with reference layout without importing external implementation.'
3+
4+
@description('Optional pass-through settings for future module implementation.')
5+
param settings object = {}
6+
7+
@description('Optional tags.')
8+
param tags object = {}
9+
10+
@description('Echoes input settings so callers can safely compose with this module when needed.')
11+
output settings object = settings
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)