Skip to content

Commit

Permalink
Add useAPIM conditional judgment
Browse files Browse the repository at this point in the history
update formate
  • Loading branch information
Menghua1 committed Jul 2, 2024
1 parent 4b2f44a commit 00648d5
Show file tree
Hide file tree
Showing 12 changed files with 20 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ module apiConfig '../../../../../common/infra/bicep/app/website-config.bicep' =
name: 'apiconfig'
scope: rg
params: {
apimServiceId: apim.outputs.resourceId
apimServiceId: useAPIM ? apim.outputs.resourceId : ''
apiName: apimApiName
apiAppName: api.outputs.name
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ module apiConfig '../../../../../common/infra/bicep/app/website-config.bicep' =
name: 'apiconfig'
scope: rg
params: {
apimServiceId: apim.outputs.resourceId
apimServiceId: useAPIM ? apim.outputs.resourceId : ''
apiName: apimApiName
apiAppName: api.outputs.name
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ module apiConfig '../../../../../common/infra/bicep/app/website-config.bicep' =
name: 'apiconfig'
scope: rg
params: {
apimServiceId: apim.outputs.resourceId
apimServiceId: useAPIM ? apim.outputs.resourceId : ''
apiName: apimApiName
apiAppName: api.outputs.name
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ module apiConfig '../../../../../common/infra/bicep/app/website-config.bicep' =
name: 'apiconfig'
scope: rg
params: {
apimServiceId: apim.outputs.resourceId
apimServiceId: useAPIM ? apim.outputs.resourceId : ''
apiName: apimApiName
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ module apiConfig '../../../../../common/infra/bicep/app/website-config.bicep' =
name: 'apiconfig'
scope: rg
params: {
apimServiceId: apim.outputs.resourceId
apimServiceId: useAPIM ? apim.outputs.resourceId : ''
apiName: apimApiName
apiAppName: api.outputs.name
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ module apiConfig '../../../../../common/infra/bicep/app/website-config.bicep' =
name: 'apiconfig'
scope: rg
params: {
apimServiceId: apim.outputs.resourceId
apimServiceId: useAPIM ? apim.outputs.resourceId : ''
apiName: apimApiName
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,6 @@ var actualDatabaseName = !empty(cosmosDatabaseName) ? cosmosDatabaseName : defau
var acrPullRole = subscriptionResourceId('Microsoft.Authorization/roleDefinitions', '7f951dda-4ed3-4680-a7ca-43fe172d538d')
var aksClusterAdminRole = subscriptionResourceId('Microsoft.Authorization/roleDefinitions', 'b1ff04bb-8a4e-4dc4-8eb5-8693973ce19b')
var systemPoolSpec = nodePoolPresets[systemPoolType]
var nodePoolBase = {
osType: 'Linux'
maxPods: 30
type: 'VirtualMachineScaleSets'
upgradeSettings: {
maxSurge: '33%'
}
}
var nodePoolPresets = {
CostOptimised: {
vmSize: 'Standard_B4ms'
Expand Down Expand Up @@ -124,6 +116,14 @@ var nodePoolPresets = {
]
}
}
var nodePoolBase = {
osType: 'Linux'
maxPods: 30
type: 'VirtualMachineScaleSets'
upgradeSettings: {
maxSurge: '33%'
}
}

// Organize resources in a resource group
resource rg 'Microsoft.Resources/resourceGroups@2021-04-01' = {
Expand Down Expand Up @@ -310,7 +310,7 @@ module logAnalytics 'br/public:avm/res/operational-insights/workspace:0.3.4' = {
}

// Monitor application with Azure applicationInsights
module applicationInsights 'br/public:avm/res/insights/component:0.3.0' = {
module applicationInsights 'br/public:avm/res/insights/component:0.3.1' = {
name: 'applicationinsights'
scope: rg
params: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ module apiConfig '../../../../../common/infra/bicep/app/website-config.bicep' =
name: 'apiconfig'
scope: rg
params: {
apimServiceId: apim.outputs.resourceId
apimServiceId: useAPIM ? apim.outputs.resourceId : ''
apiName: apimApiName
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ module apiConfig '../../../../../common/infra/bicep/app/website-config.bicep' =
name: 'apiconfig'
scope: rg
params: {
apimServiceId: apim.outputs.resourceId
apimServiceId: useAPIM ? apim.outputs.resourceId : ''
apiName: apimApiName
apiAppName: api.outputs.name
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ module apiConfig '../../../../../common/infra/bicep/app/website-config.bicep' =
name: 'apiconfig'
scope: rg
params: {
apimServiceId: apim.outputs.resourceId
apimServiceId: useAPIM ? apim.outputs.resourceId : ''
apiName: apimApiName
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ module apiConfig '../../../../../common/infra/bicep/app/website-config.bicep' =
name: 'apiconfig'
scope: rg
params: {
apimServiceId: apim.outputs.resourceId
apimServiceId: useAPIM ? apim.outputs.resourceId : ''
apiName: apimApiName
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ module apiConfig '../../../../../common/infra/bicep/app/website-config.bicep' =
name: 'apiconfig'
scope: rg
params: {
apimServiceId: apim.outputs.resourceId
apimServiceId: useAPIM ? apim.outputs.resourceId : ''
apiName: apimApiName
apiAppName: api.outputs.name
}
Expand Down

0 comments on commit 00648d5

Please sign in to comment.