From 8f8cc98a4b4be5f003b4f3e813de7a131fefb57f Mon Sep 17 00:00:00 2001 From: Ajit Padhi Date: Tue, 26 Nov 2024 12:29:24 +0530 Subject: [PATCH] fixed bicep --- infra/main.bicep | 9 +++------ infra/main.json | 10 ++++------ 2 files changed, 7 insertions(+), 12 deletions(-) diff --git a/infra/main.bicep b/infra/main.bicep index d0e21d59c..d828187c6 100644 --- a/infra/main.bicep +++ b/infra/main.bicep @@ -329,9 +329,6 @@ var azureOpenAIEmbeddingModelInfo = string({ modelVersion: azureOpenAIEmbeddingModelVersion }) -var appversion = 'latest' // Update GIT deployment branch -var registryName = 'fruoccopublic' // Update Registry name - // Organize resources in a resource group resource rg 'Microsoft.Resources/resourceGroups@2021-04-01' = { name: rgName @@ -642,7 +639,7 @@ module web_docker './app/web.bicep' = if (hostingModel == 'container') { name: '${websiteName}-docker' location: location tags: union(tags, { 'azd-service-name': 'web-docker' }) - dockerFullImageName: '${registryName}.azurecr.io/rag-webapp:${appversion}' + dockerFullImageName: 'fruoccopublic.azurecr.io/rag-webapp:latest' appServicePlanId: hostingplan.outputs.name applicationInsightsName: monitoring.outputs.applicationInsightsName healthCheckPath: '/api/health' @@ -802,7 +799,7 @@ module adminweb_docker './app/adminweb.bicep' = if (hostingModel == 'container') name: '${adminWebsiteName}-docker' location: location tags: union(tags, { 'azd-service-name': 'adminweb-docker' }) - dockerFullImageName: '${registryName}.azurecr.io/rag-adminwebapp:${appversion}' + dockerFullImageName: 'fruoccopublic.azurecr.io/rag-adminwebapp:latest' appServicePlanId: hostingplan.outputs.name applicationInsightsName: monitoring.outputs.applicationInsightsName azureOpenAIName: openai.outputs.name @@ -977,7 +974,7 @@ module function_docker './app/function.bicep' = if (hostingModel == 'container') name: '${functionName}-docker' location: location tags: union(tags, { 'azd-service-name': 'function-docker' }) - dockerFullImageName: '${registryName}.azurecr.io/rag-backend:${appversion}' + dockerFullImageName: 'fruoccopublic.azurecr.io/rag-backend:latest' appServicePlanId: hostingplan.outputs.name applicationInsightsName: monitoring.outputs.applicationInsightsName azureOpenAIName: openai.outputs.name diff --git a/infra/main.json b/infra/main.json index 2ad41a12e..9d10e2e23 100644 --- a/infra/main.json +++ b/infra/main.json @@ -5,7 +5,7 @@ "_generator": { "name": "bicep", "version": "0.31.34.60546", - "templateHash": "9243131736696562084" + "templateHash": "500949809707316311" } }, "parameters": { @@ -643,8 +643,6 @@ "keyVaultName": "[format('kv-{0}', parameters('resourceToken'))]", "azureOpenAIModelInfo": "[string(createObject('model', parameters('azureOpenAIModel'), 'modelName', parameters('azureOpenAIModelName'), 'modelVersion', parameters('azureOpenAIModelVersion')))]", "azureOpenAIEmbeddingModelInfo": "[string(createObject('model', parameters('azureOpenAIEmbeddingModel'), 'modelName', parameters('azureOpenAIEmbeddingModelName'), 'modelVersion', parameters('azureOpenAIEmbeddingModelVersion')))]", - "appversion": "latest", - "registryName": "fruoccopublic", "defaultOpenAiDeployments": [ { "name": "[parameters('azureOpenAIModel')]", @@ -3258,7 +3256,7 @@ "value": "[union(variables('tags'), createObject('azd-service-name', 'web-docker'))]" }, "dockerFullImageName": { - "value": "[format('{0}.azurecr.io/rag-webapp:{1}', variables('registryName'), variables('appversion'))]" + "value": "fruoccopublic.azurecr.io/rag-webapp:latest" }, "appServicePlanId": { "value": "[reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, variables('rgName')), 'Microsoft.Resources/deployments', parameters('hostingPlanName')), '2022-09-01').outputs.name.value]" @@ -5237,7 +5235,7 @@ "value": "[union(variables('tags'), createObject('azd-service-name', 'adminweb-docker'))]" }, "dockerFullImageName": { - "value": "[format('{0}.azurecr.io/rag-adminwebapp:{1}', variables('registryName'), variables('appversion'))]" + "value": "fruoccopublic.azurecr.io/rag-adminwebapp:latest" }, "appServicePlanId": { "value": "[reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, variables('rgName')), 'Microsoft.Resources/deployments', parameters('hostingPlanName')), '2022-09-01').outputs.name.value]" @@ -9252,7 +9250,7 @@ "value": "[union(variables('tags'), createObject('azd-service-name', 'function-docker'))]" }, "dockerFullImageName": { - "value": "[format('{0}.azurecr.io/rag-backend:{1}', variables('registryName'), variables('appversion'))]" + "value": "fruoccopublic.azurecr.io/rag-backend:latest" }, "appServicePlanId": { "value": "[reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, variables('rgName')), 'Microsoft.Resources/deployments', parameters('hostingPlanName')), '2022-09-01').outputs.name.value]"