diff --git a/src/spring/azext_spring/migration/templates/environment.bicep.j2 b/src/spring/azext_spring/migration/templates/environment.bicep.j2 index 8ed91e22278..e2c55d2db0a 100644 --- a/src/spring/azext_spring/migration/templates/environment.bicep.j2 +++ b/src/spring/azext_spring/migration/templates/environment.bicep.j2 @@ -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}} @@ -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}}' } diff --git a/src/spring/azext_spring/migration/templates/main.bicep.j2 b/src/spring/azext_spring/migration/templates/main.bicep.j2 index 4f117772fdd..72a133a5b52 100644 --- a/src/spring/azext_spring/migration/templates/main.bicep.j2 +++ b/src/spring/azext_spring/migration/templates/main.bicep.j2 @@ -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 @@ -20,6 +22,8 @@ module containerAppEnv 'environment.bicep' = { containerAppEnvName: containerAppEnvName containerAppLogAnalyticsName: containerAppLogAnalyticsName location: location + workloadProfileName: workloadProfileName + workloadProfileType: workloadProfileType } } diff --git a/src/spring/azext_spring/migration/templates/param.bicepparam.j2 b/src/spring/azext_spring/migration/templates/param.bicepparam.j2 new file mode 100644 index 00000000000..62c211dceb9 --- /dev/null +++ b/src/spring/azext_spring/migration/templates/param.bicepparam.j2 @@ -0,0 +1,4 @@ +using './main.bicep' + +param workloadProfileName = 'Consumption' +param workloadProfileType = 'Consumption' \ No newline at end of file