Skip to content

Commit

Permalink
Merge pull request Azure#4 from ninpan-ms/ninpan/param
Browse files Browse the repository at this point in the history
Add param file
  • Loading branch information
ninpan-ms authored Jan 14, 2025
2 parents efaacf0 + 3529106 commit 006681b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
param containerAppEnvName string = {{containerAppEnvName}}
param containerAppLogAnalyticsName string = {{containerAppLogAnalyticsName}}
param location string = {{location}}
param workloadProfileName string
param workloadProfileType string
param daprAIInstrumentationKey string? = {{daprAIInstrumentationKey}}
param daprAIConnectionString string? = {{daprAIConnectionString}}

Expand Down Expand Up @@ -32,8 +34,8 @@ resource containerAppEnv 'Microsoft.App/managedEnvironments@2024-03-01' = {
// customDomainConfiguration: {}
workloadProfiles: [
{
name: '{{workloadProfileName}}'
workloadProfiles: '{{workloadProfiles}}'
name: workloadProfileName
workloadProfileType: workloadProfileType
minimumCount: '{{minimumCount}}'
maximumCount: '{{maximumCount}}'
}
Expand Down
4 changes: 4 additions & 0 deletions src/spring/azext_spring/migration/templates/main.bicep.j2
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ param containerAppLogAnalyticsName string
param location string
param apps array
param revisions object
param workloadProfileName string
param workloadProfileType string

// App
param containerAppName string
Expand All @@ -20,6 +22,8 @@ module containerAppEnv 'environment.bicep' = {
containerAppEnvName: containerAppEnvName
containerAppLogAnalyticsName: containerAppLogAnalyticsName
location: location
workloadProfileName: workloadProfileName
workloadProfileType: workloadProfileType
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
using './main.bicep'

param workloadProfileName = 'Consumption'
param workloadProfileType = 'Consumption'

0 comments on commit 006681b

Please sign in to comment.