diff --git a/.github/workflows/build-docker-images.yml b/.github/workflows/build-docker-images.yml index 250588ed3..b6eb1ed45 100644 --- a/.github/workflows/build-docker-images.yml +++ b/.github/workflows/build-docker-images.yml @@ -4,9 +4,9 @@ on: workflow_run: workflows: [Tests] types: [completed] - branches: [main] + branches: [main, dev, demo] pull_request: - branches: [main] + branches: [main, dev, demo] types: - opened - ready_for_review @@ -28,9 +28,9 @@ jobs: dockerfile: docker/Frontend.Dockerfile uses: ./.github/workflows/build-docker.yml with: - registry: cwydcontainerreg.azurecr.io - username: cwydcontainerreg + registry: ${{ github.event.workflow_run.head_branch == 'main' && 'fruoccopublic.azurecr.io' || 'cwydcontainerreg.azurecr.io'}} + username: ${{ github.event.workflow_run.head_branch == 'main' && 'fruoccopublic' || 'cwydcontainerreg'}} app_name: ${{ matrix.app_name }} dockerfile: ${{ matrix.dockerfile }} - push: ${{ github.event_name == 'workflow_run' && github.event.workflow_run.head_branch == 'main' }} + push: ${{ github.event_name == 'workflow_run' && github.event.workflow_run.head_branch == 'main' || github.event.workflow_run.head_branch == 'dev' || github.event.workflow_run.head_branch == 'demo' }} secrets: inherit diff --git a/.github/workflows/build-docker.yml b/.github/workflows/build-docker.yml index 6f6fe1a7d..40398698e 100644 --- a/.github/workflows/build-docker.yml +++ b/.github/workflows/build-docker.yml @@ -51,7 +51,7 @@ jobs: context: . file: ${{ inputs.dockerfile }} push: ${{ inputs.push }} - cache-from: type=registry,ref=${{ inputs.registry }}/${{ inputs.app_name}}:latest + cache-from: type=registry,ref=${{ inputs.registry }}/${{ inputs.app_name}}:${{ github.ref_name == 'main' && 'latest' || github.ref_name == 'dev' && 'dev' || github.ref_name == 'demo' && 'demo' || 'latest' }} tags: | - ${{ inputs.registry }}/${{ inputs.app_name}}:latest + ${{ inputs.registry }}/${{ inputs.app_name}}:${{ github.ref_name == 'main' && 'latest' || github.ref_name == 'dev' && 'dev' || github.ref_name == 'demo' && 'demo' || 'latest' }} ${{ inputs.registry }}/${{ inputs.app_name}}:${{ steps.date.outputs.date }}_${{ github.run_number }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c6da84c2f..071d64e15 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,6 +4,8 @@ on: push: branches: - main + - dev + - demo schedule: - cron: '0 6,18 * * *' # Runs at 6:00 AM and 6:00 PM GMT @@ -34,6 +36,17 @@ jobs: username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} + - name: Set imageTag + id: set-image-tag + run: | + if [[ "${{ github.event_name }}" == "schedule" ]]; then + echo "imageTag=latest" >> $GITHUB_ENV + elif [[ "${{ github.ref_name }}" == "main" ]]; then + echo "imageTag=latest" >> $GITHUB_ENV + else + echo "imageTag=${{ github.ref_name }}" >> $GITHUB_ENV + fi + - name: Pre-build image and run make in dev container uses: devcontainers/ci@v0.3 env: @@ -42,8 +55,9 @@ jobs: with: imageName: ghcr.io/roopan-microsoft/psl-cwyd-main cacheFrom: ghcr.io/roopan-microsoft/psl-cwyd-main + imageTag: ${{ env.imageTag }} runCmd: make ci && make deploy - refFilterForPush: refs/heads/main + refFilterForPush: refs/heads/${{ github.event_name == 'schedule' && 'main' || github.ref_name }} env: | AZURE_CLIENT_ID AZURE_CLIENT_SECRET @@ -61,6 +75,7 @@ jobs: with: push: never imageName: ghcr.io/roopan-microsoft/psl-cwyd-main + imageTag: ${{ env.imageTag }} runCmd: make destroy env: | AZURE_CLIENT_ID diff --git a/infra/main.bicep b/infra/main.bicep index 9056656a0..d828187c6 100644 --- a/infra/main.bicep +++ b/infra/main.bicep @@ -639,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: 'fruoccopublic.azurecr.io/rag-webapp' + dockerFullImageName: 'fruoccopublic.azurecr.io/rag-webapp:latest' appServicePlanId: hostingplan.outputs.name applicationInsightsName: monitoring.outputs.applicationInsightsName healthCheckPath: '/api/health' @@ -799,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: 'fruoccopublic.azurecr.io/rag-adminwebapp' + dockerFullImageName: 'fruoccopublic.azurecr.io/rag-adminwebapp:latest' appServicePlanId: hostingplan.outputs.name applicationInsightsName: monitoring.outputs.applicationInsightsName azureOpenAIName: openai.outputs.name @@ -974,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: 'fruoccopublic.azurecr.io/rag-backend' + 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 e922d2c26..f00e56bd9 100644 --- a/infra/main.json +++ b/infra/main.json @@ -4,8 +4,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "12333512568102107027" + "version": "0.31.34.60546", + "templateHash": "11066663538566198133" } }, "parameters": { @@ -703,8 +703,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "4859822953916033283" + "version": "0.31.34.60546", + "templateHash": "16376502235448567731" } }, "parameters": { @@ -872,8 +872,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "10946574055690902625" + "version": "0.31.34.60546", + "templateHash": "13364147767022226969" }, "description": "Creates an Azure Key Vault." }, @@ -969,8 +969,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "10621100095067903006" + "version": "0.31.34.60546", + "templateHash": "5846053745240336221" }, "description": "Creates an Azure Cognitive Services instance." }, @@ -1128,8 +1128,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "10621100095067903006" + "version": "0.31.34.60546", + "templateHash": "5846053745240336221" }, "description": "Creates an Azure Cognitive Services instance." }, @@ -1281,8 +1281,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "16440196655390446916" + "version": "0.31.34.60546", + "templateHash": "5620801774479515492" }, "description": "Creates a role assignment for a service principal." }, @@ -1352,8 +1352,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "16440196655390446916" + "version": "0.31.34.60546", + "templateHash": "5620801774479515492" }, "description": "Creates a role assignment for a service principal." }, @@ -1423,8 +1423,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "16440196655390446916" + "version": "0.31.34.60546", + "templateHash": "5620801774479515492" }, "description": "Creates a role assignment for a service principal." }, @@ -1494,8 +1494,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "16440196655390446916" + "version": "0.31.34.60546", + "templateHash": "5620801774479515492" }, "description": "Creates a role assignment for a service principal." }, @@ -1569,8 +1569,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "10621100095067903006" + "version": "0.31.34.60546", + "templateHash": "5846053745240336221" }, "description": "Creates an Azure Cognitive Services instance." }, @@ -1741,8 +1741,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "14579716731765543192" + "version": "0.31.34.60546", + "templateHash": "9526483378278704058" } }, "parameters": { @@ -1975,8 +1975,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "109530586617035708" + "version": "0.31.34.60546", + "templateHash": "12402174270479558945" }, "description": "Creates an Azure AI Search instance." }, @@ -2144,8 +2144,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "3882056790487836425" + "version": "0.31.34.60546", + "templateHash": "11168587044178660695" }, "description": "Creates an Azure App Service plan." }, @@ -2332,8 +2332,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "4871228348238542266" + "version": "0.31.34.60546", + "templateHash": "9347651394814311894" } }, "parameters": { @@ -2514,8 +2514,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "13528682982724980465" + "version": "0.31.34.60546", + "templateHash": "14818871229133632920" }, "description": "Creates an Azure App Service in an existing Azure App Service plan." }, @@ -2741,8 +2741,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "9730065891606131364" + "version": "0.31.34.60546", + "templateHash": "3955925289075906039" }, "description": "Updates app settings for an Azure App Service." }, @@ -2819,8 +2819,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "16440196655390446916" + "version": "0.31.34.60546", + "templateHash": "5620801774479515492" }, "description": "Creates a role assignment for a service principal." }, @@ -2888,8 +2888,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "16440196655390446916" + "version": "0.31.34.60546", + "templateHash": "5620801774479515492" }, "description": "Creates a role assignment for a service principal." }, @@ -2957,8 +2957,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "16440196655390446916" + "version": "0.31.34.60546", + "templateHash": "5620801774479515492" }, "description": "Creates a role assignment for a service principal." }, @@ -3026,8 +3026,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "16440196655390446916" + "version": "0.31.34.60546", + "templateHash": "5620801774479515492" }, "description": "Creates a role assignment for a service principal." }, @@ -3092,8 +3092,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "6278079210023281106" + "version": "0.31.34.60546", + "templateHash": "17352167468248267479" }, "description": "Assigns an Azure Key Vault access policy." }, @@ -3166,8 +3166,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "12223899351427459655" + "version": "0.31.34.60546", + "templateHash": "8033637033572984239" }, "description": "Creates a SQL role assignment under an Azure Cosmos DB account." }, @@ -3256,7 +3256,7 @@ "value": "[union(variables('tags'), createObject('azd-service-name', 'web-docker'))]" }, "dockerFullImageName": { - "value": "fruoccopublic.azurecr.io/rag-webapp" + "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]" @@ -3360,8 +3360,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "4871228348238542266" + "version": "0.31.34.60546", + "templateHash": "9347651394814311894" } }, "parameters": { @@ -3542,8 +3542,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "13528682982724980465" + "version": "0.31.34.60546", + "templateHash": "14818871229133632920" }, "description": "Creates an Azure App Service in an existing Azure App Service plan." }, @@ -3769,8 +3769,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "9730065891606131364" + "version": "0.31.34.60546", + "templateHash": "3955925289075906039" }, "description": "Updates app settings for an Azure App Service." }, @@ -3847,8 +3847,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "16440196655390446916" + "version": "0.31.34.60546", + "templateHash": "5620801774479515492" }, "description": "Creates a role assignment for a service principal." }, @@ -3916,8 +3916,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "16440196655390446916" + "version": "0.31.34.60546", + "templateHash": "5620801774479515492" }, "description": "Creates a role assignment for a service principal." }, @@ -3985,8 +3985,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "16440196655390446916" + "version": "0.31.34.60546", + "templateHash": "5620801774479515492" }, "description": "Creates a role assignment for a service principal." }, @@ -4054,8 +4054,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "16440196655390446916" + "version": "0.31.34.60546", + "templateHash": "5620801774479515492" }, "description": "Creates a role assignment for a service principal." }, @@ -4120,8 +4120,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "6278079210023281106" + "version": "0.31.34.60546", + "templateHash": "17352167468248267479" }, "description": "Assigns an Azure Key Vault access policy." }, @@ -4194,8 +4194,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "12223899351427459655" + "version": "0.31.34.60546", + "templateHash": "8033637033572984239" }, "description": "Creates a SQL role assignment under an Azure Cosmos DB account." }, @@ -4384,8 +4384,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "9122829587959554559" + "version": "0.31.34.60546", + "templateHash": "16426772879193976216" } }, "parameters": { @@ -4555,8 +4555,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "13528682982724980465" + "version": "0.31.34.60546", + "templateHash": "14818871229133632920" }, "description": "Creates an Azure App Service in an existing Azure App Service plan." }, @@ -4782,8 +4782,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "9730065891606131364" + "version": "0.31.34.60546", + "templateHash": "3955925289075906039" }, "description": "Updates app settings for an Azure App Service." }, @@ -4860,8 +4860,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "16440196655390446916" + "version": "0.31.34.60546", + "templateHash": "5620801774479515492" }, "description": "Creates a role assignment for a service principal." }, @@ -4929,8 +4929,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "16440196655390446916" + "version": "0.31.34.60546", + "templateHash": "5620801774479515492" }, "description": "Creates a role assignment for a service principal." }, @@ -4998,8 +4998,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "16440196655390446916" + "version": "0.31.34.60546", + "templateHash": "5620801774479515492" }, "description": "Creates a role assignment for a service principal." }, @@ -5067,8 +5067,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "16440196655390446916" + "version": "0.31.34.60546", + "templateHash": "5620801774479515492" }, "description": "Creates a role assignment for a service principal." }, @@ -5133,8 +5133,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "6278079210023281106" + "version": "0.31.34.60546", + "templateHash": "17352167468248267479" }, "description": "Assigns an Azure Key Vault access policy." }, @@ -5235,7 +5235,7 @@ "value": "[union(variables('tags'), createObject('azd-service-name', 'adminweb-docker'))]" }, "dockerFullImageName": { - "value": "fruoccopublic.azurecr.io/rag-adminwebapp" + "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]" @@ -5332,8 +5332,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "9122829587959554559" + "version": "0.31.34.60546", + "templateHash": "16426772879193976216" } }, "parameters": { @@ -5503,8 +5503,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "13528682982724980465" + "version": "0.31.34.60546", + "templateHash": "14818871229133632920" }, "description": "Creates an Azure App Service in an existing Azure App Service plan." }, @@ -5730,8 +5730,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "9730065891606131364" + "version": "0.31.34.60546", + "templateHash": "3955925289075906039" }, "description": "Updates app settings for an Azure App Service." }, @@ -5808,8 +5808,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "16440196655390446916" + "version": "0.31.34.60546", + "templateHash": "5620801774479515492" }, "description": "Creates a role assignment for a service principal." }, @@ -5877,8 +5877,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "16440196655390446916" + "version": "0.31.34.60546", + "templateHash": "5620801774479515492" }, "description": "Creates a role assignment for a service principal." }, @@ -5946,8 +5946,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "16440196655390446916" + "version": "0.31.34.60546", + "templateHash": "5620801774479515492" }, "description": "Creates a role assignment for a service principal." }, @@ -6015,8 +6015,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "16440196655390446916" + "version": "0.31.34.60546", + "templateHash": "5620801774479515492" }, "description": "Creates a role assignment for a service principal." }, @@ -6081,8 +6081,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "6278079210023281106" + "version": "0.31.34.60546", + "templateHash": "17352167468248267479" }, "description": "Assigns an Azure Key Vault access policy." }, @@ -6196,8 +6196,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "13065021834937678877" + "version": "0.31.34.60546", + "templateHash": "8473455776229346647" }, "description": "Creates an Application Insights instance and a Log Analytics workspace." }, @@ -6248,8 +6248,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "2707024492396982954" + "version": "0.31.34.60546", + "templateHash": "15449976264810996474" }, "description": "Creates a Log Analytics workspace." }, @@ -6329,8 +6329,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "6684811037284796150" + "version": "0.31.34.60546", + "templateHash": "16358460762600875186" }, "description": "Creates an Application Insights instance based on an existing Log Analytics workspace." }, @@ -6394,8 +6394,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "1759216242890853910" + "version": "0.31.34.60546", + "templateHash": "1003060957409338499" }, "description": "Creates a dashboard for an Application Insights instance." }, @@ -7733,8 +7733,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "5649433306021197168" + "version": "0.31.34.60546", + "templateHash": "12632171944221294691" } }, "parameters": { @@ -7816,8 +7816,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "2792566012892132891" + "version": "0.31.34.60546", + "templateHash": "10154909114565024920" } }, "parameters": { @@ -8012,8 +8012,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "6774619842746444908" + "version": "0.31.34.60546", + "templateHash": "9410273585702095132" } }, "parameters": { @@ -8208,8 +8208,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "17012644049299978864" + "version": "0.31.34.60546", + "templateHash": "7133078529690530611" }, "description": "Creates an Azure Function in an existing Azure App Service plan." }, @@ -8419,8 +8419,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "13528682982724980465" + "version": "0.31.34.60546", + "templateHash": "14818871229133632920" }, "description": "Creates an Azure App Service in an existing Azure App Service plan." }, @@ -8646,8 +8646,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "9730065891606131364" + "version": "0.31.34.60546", + "templateHash": "3955925289075906039" }, "description": "Updates app settings for an Azure App Service." }, @@ -8723,8 +8723,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "16440196655390446916" + "version": "0.31.34.60546", + "templateHash": "5620801774479515492" }, "description": "Creates a role assignment for a service principal." }, @@ -8810,8 +8810,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "16440196655390446916" + "version": "0.31.34.60546", + "templateHash": "5620801774479515492" }, "description": "Creates a role assignment for a service principal." }, @@ -8879,8 +8879,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "16440196655390446916" + "version": "0.31.34.60546", + "templateHash": "5620801774479515492" }, "description": "Creates a role assignment for a service principal." }, @@ -8948,8 +8948,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "16440196655390446916" + "version": "0.31.34.60546", + "templateHash": "5620801774479515492" }, "description": "Creates a role assignment for a service principal." }, @@ -9017,8 +9017,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "16440196655390446916" + "version": "0.31.34.60546", + "templateHash": "5620801774479515492" }, "description": "Creates a role assignment for a service principal." }, @@ -9086,8 +9086,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "16440196655390446916" + "version": "0.31.34.60546", + "templateHash": "5620801774479515492" }, "description": "Creates a role assignment for a service principal." }, @@ -9152,8 +9152,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "6278079210023281106" + "version": "0.31.34.60546", + "templateHash": "17352167468248267479" }, "description": "Assigns an Azure Key Vault access policy." }, @@ -9250,7 +9250,7 @@ "value": "[union(variables('tags'), createObject('azd-service-name', 'function-docker'))]" }, "dockerFullImageName": { - "value": "fruoccopublic.azurecr.io/rag-backend" + "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]" @@ -9335,8 +9335,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "6774619842746444908" + "version": "0.31.34.60546", + "templateHash": "9410273585702095132" } }, "parameters": { @@ -9531,8 +9531,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "17012644049299978864" + "version": "0.31.34.60546", + "templateHash": "7133078529690530611" }, "description": "Creates an Azure Function in an existing Azure App Service plan." }, @@ -9742,8 +9742,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "13528682982724980465" + "version": "0.31.34.60546", + "templateHash": "14818871229133632920" }, "description": "Creates an Azure App Service in an existing Azure App Service plan." }, @@ -9969,8 +9969,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "9730065891606131364" + "version": "0.31.34.60546", + "templateHash": "3955925289075906039" }, "description": "Updates app settings for an Azure App Service." }, @@ -10046,8 +10046,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "16440196655390446916" + "version": "0.31.34.60546", + "templateHash": "5620801774479515492" }, "description": "Creates a role assignment for a service principal." }, @@ -10133,8 +10133,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "16440196655390446916" + "version": "0.31.34.60546", + "templateHash": "5620801774479515492" }, "description": "Creates a role assignment for a service principal." }, @@ -10202,8 +10202,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "16440196655390446916" + "version": "0.31.34.60546", + "templateHash": "5620801774479515492" }, "description": "Creates a role assignment for a service principal." }, @@ -10271,8 +10271,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "16440196655390446916" + "version": "0.31.34.60546", + "templateHash": "5620801774479515492" }, "description": "Creates a role assignment for a service principal." }, @@ -10340,8 +10340,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "16440196655390446916" + "version": "0.31.34.60546", + "templateHash": "5620801774479515492" }, "description": "Creates a role assignment for a service principal." }, @@ -10409,8 +10409,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "16440196655390446916" + "version": "0.31.34.60546", + "templateHash": "5620801774479515492" }, "description": "Creates a role assignment for a service principal." }, @@ -10475,8 +10475,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "6278079210023281106" + "version": "0.31.34.60546", + "templateHash": "17352167468248267479" }, "description": "Assigns an Azure Key Vault access policy." }, @@ -10581,8 +10581,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "10621100095067903006" + "version": "0.31.34.60546", + "templateHash": "5846053745240336221" }, "description": "Creates an Azure Cognitive Services instance." }, @@ -10736,8 +10736,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "10621100095067903006" + "version": "0.31.34.60546", + "templateHash": "5846053745240336221" }, "description": "Creates an Azure Cognitive Services instance." }, @@ -10894,8 +10894,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "7008837948540418623" + "version": "0.31.34.60546", + "templateHash": "14787323190374281342" } }, "parameters": { @@ -11027,8 +11027,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "11811484180274743641" + "version": "0.31.34.60546", + "templateHash": "17192989974061212120" }, "description": "Creates an Azure storage account." }, @@ -11255,8 +11255,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "16440196655390446916" + "version": "0.31.34.60546", + "templateHash": "5620801774479515492" }, "description": "Creates a role assignment for a service principal." }, @@ -11325,8 +11325,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "16440196655390446916" + "version": "0.31.34.60546", + "templateHash": "5620801774479515492" }, "description": "Creates a role assignment for a service principal." }, @@ -11395,8 +11395,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "16440196655390446916" + "version": "0.31.34.60546", + "templateHash": "5620801774479515492" }, "description": "Creates a role assignment for a service principal." }, @@ -11465,8 +11465,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "16440196655390446916" + "version": "0.31.34.60546", + "templateHash": "5620801774479515492" }, "description": "Creates a role assignment for a service principal." }, @@ -11551,8 +11551,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.27.1.19265", - "templateHash": "1703863751305099956" + "version": "0.31.34.60546", + "templateHash": "14309427698097244890" } }, "parameters": { @@ -11911,4 +11911,4 @@ "value": "[string(createObject('accountName', reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, variables('rgName')), 'Microsoft.Resources/deployments', 'deploy_cosmos_db'), '2022-09-01').outputs.cosmosOutput.value.cosmosAccountName, 'databaseName', reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, variables('rgName')), 'Microsoft.Resources/deployments', 'deploy_cosmos_db'), '2022-09-01').outputs.cosmosOutput.value.cosmosDatabaseName, 'containerName', reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, variables('rgName')), 'Microsoft.Resources/deployments', 'deploy_cosmos_db'), '2022-09-01').outputs.cosmosOutput.value.cosmosContainerName))]" } } -} \ No newline at end of file +}