From 8f473fc523cfd759c275baf6820160630db5982b Mon Sep 17 00:00:00 2001 From: "Menghua Chen (WICRESOFT NORTH AMERICA LTD)" Date: Mon, 24 Jun 2024 18:44:39 +0800 Subject: [PATCH] Add useAPIM conditional judgment --- .../projects/csharp-cosmos-sql/.repo/bicep/infra/main.bicep | 2 +- .../projects/csharp-sql-swa-func/.repo/bicep/infra/main.bicep | 2 +- templates/todo/projects/csharp-sql/.repo/bicep/infra/main.bicep | 2 +- .../todo/projects/java-mongo-aca/.repo/bicep/infra/main.bicep | 2 +- templates/todo/projects/java-mongo/.repo/bicep/infra/main.bicep | 2 +- .../todo/projects/nodejs-mongo-aca/.repo/bicep/infra/main.bicep | 2 +- .../projects/nodejs-mongo-swa-func/.repo/bicep/infra/main.bicep | 2 +- .../todo/projects/nodejs-mongo/.repo/bicep/infra/main.bicep | 2 +- .../todo/projects/python-mongo-aca/.repo/bicep/infra/main.bicep | 2 +- .../projects/python-mongo-swa-func/.repo/bicep/infra/main.bicep | 2 +- .../todo/projects/python-mongo/.repo/bicep/infra/main.bicep | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/templates/todo/projects/csharp-cosmos-sql/.repo/bicep/infra/main.bicep b/templates/todo/projects/csharp-cosmos-sql/.repo/bicep/infra/main.bicep index 9ff77f88afa..3eb64886058 100644 --- a/templates/todo/projects/csharp-cosmos-sql/.repo/bicep/infra/main.bicep +++ b/templates/todo/projects/csharp-cosmos-sql/.repo/bicep/infra/main.bicep @@ -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 } diff --git a/templates/todo/projects/csharp-sql-swa-func/.repo/bicep/infra/main.bicep b/templates/todo/projects/csharp-sql-swa-func/.repo/bicep/infra/main.bicep index 571af251b5a..a647be3f171 100644 --- a/templates/todo/projects/csharp-sql-swa-func/.repo/bicep/infra/main.bicep +++ b/templates/todo/projects/csharp-sql-swa-func/.repo/bicep/infra/main.bicep @@ -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 } diff --git a/templates/todo/projects/csharp-sql/.repo/bicep/infra/main.bicep b/templates/todo/projects/csharp-sql/.repo/bicep/infra/main.bicep index 11ed1433574..e4ce65e99cf 100644 --- a/templates/todo/projects/csharp-sql/.repo/bicep/infra/main.bicep +++ b/templates/todo/projects/csharp-sql/.repo/bicep/infra/main.bicep @@ -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 } diff --git a/templates/todo/projects/java-mongo-aca/.repo/bicep/infra/main.bicep b/templates/todo/projects/java-mongo-aca/.repo/bicep/infra/main.bicep index a0894ac6084..52c9ce32f57 100644 --- a/templates/todo/projects/java-mongo-aca/.repo/bicep/infra/main.bicep +++ b/templates/todo/projects/java-mongo-aca/.repo/bicep/infra/main.bicep @@ -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 } } diff --git a/templates/todo/projects/java-mongo/.repo/bicep/infra/main.bicep b/templates/todo/projects/java-mongo/.repo/bicep/infra/main.bicep index a0778df106f..f0ff126481b 100644 --- a/templates/todo/projects/java-mongo/.repo/bicep/infra/main.bicep +++ b/templates/todo/projects/java-mongo/.repo/bicep/infra/main.bicep @@ -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 } diff --git a/templates/todo/projects/nodejs-mongo-aca/.repo/bicep/infra/main.bicep b/templates/todo/projects/nodejs-mongo-aca/.repo/bicep/infra/main.bicep index a0894ac6084..52c9ce32f57 100644 --- a/templates/todo/projects/nodejs-mongo-aca/.repo/bicep/infra/main.bicep +++ b/templates/todo/projects/nodejs-mongo-aca/.repo/bicep/infra/main.bicep @@ -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 } } diff --git a/templates/todo/projects/nodejs-mongo-swa-func/.repo/bicep/infra/main.bicep b/templates/todo/projects/nodejs-mongo-swa-func/.repo/bicep/infra/main.bicep index 63e70b66beb..22ab294a987 100644 --- a/templates/todo/projects/nodejs-mongo-swa-func/.repo/bicep/infra/main.bicep +++ b/templates/todo/projects/nodejs-mongo-swa-func/.repo/bicep/infra/main.bicep @@ -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 } } diff --git a/templates/todo/projects/nodejs-mongo/.repo/bicep/infra/main.bicep b/templates/todo/projects/nodejs-mongo/.repo/bicep/infra/main.bicep index 8ef14f471e9..7d84e6cdaaf 100644 --- a/templates/todo/projects/nodejs-mongo/.repo/bicep/infra/main.bicep +++ b/templates/todo/projects/nodejs-mongo/.repo/bicep/infra/main.bicep @@ -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 } diff --git a/templates/todo/projects/python-mongo-aca/.repo/bicep/infra/main.bicep b/templates/todo/projects/python-mongo-aca/.repo/bicep/infra/main.bicep index 73255a9c388..5edd6a772b9 100644 --- a/templates/todo/projects/python-mongo-aca/.repo/bicep/infra/main.bicep +++ b/templates/todo/projects/python-mongo-aca/.repo/bicep/infra/main.bicep @@ -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 } } diff --git a/templates/todo/projects/python-mongo-swa-func/.repo/bicep/infra/main.bicep b/templates/todo/projects/python-mongo-swa-func/.repo/bicep/infra/main.bicep index 52169bf6ce2..bd1261af453 100644 --- a/templates/todo/projects/python-mongo-swa-func/.repo/bicep/infra/main.bicep +++ b/templates/todo/projects/python-mongo-swa-func/.repo/bicep/infra/main.bicep @@ -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 } } diff --git a/templates/todo/projects/python-mongo/.repo/bicep/infra/main.bicep b/templates/todo/projects/python-mongo/.repo/bicep/infra/main.bicep index e9f9d6deaed..0f2327f32aa 100644 --- a/templates/todo/projects/python-mongo/.repo/bicep/infra/main.bicep +++ b/templates/todo/projects/python-mongo/.repo/bicep/infra/main.bicep @@ -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 }