diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index fdde396d..86f71a75 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -194,7 +194,8 @@ jobs: - name: Login to Azure run: | - az login --service-principal -u ${{ secrets.AZURE_CLIENT_ID }} -p ${{ secrets.AZURE_CLIENT_SECRET }} --tenant ${{ secrets.AZURE_TENANT_ID }} + az login --service-principal -u ${{ secrets.AZURE_CLIENT_ID }} -p ${{ secrets.AZURE_CLIENT_SECRET }} --tenant ${{ secrets.AZURE_TENANT_ID }} + az account set --subscription "${{ secrets.AZURE_SUBSCRIPTION_ID }}" - name: Assign Contributor role to Service Principal if: always() @@ -208,7 +209,7 @@ jobs: echo "Assigning Log Analytics Contributor role for Log Analytics workspace access at RG level..." az role assignment create \ --assignee ${{ secrets.AZURE_CLIENT_ID }} \ - --role "Log Analytics Contributor" \ + --role "Log Analytics Reader" \ --scope /subscriptions/${{ secrets.AZURE_SUBSCRIPTION_ID }}/resourceGroups/${{ env.RESOURCE_GROUP_NAME }} || echo "Log Analytics Contributor role assignment failed (may already exist)" echo "Waiting for role assignment propagation..." @@ -439,4 +440,4 @@ jobs: if: always() run: | az logout - echo "Logged out from Azure." \ No newline at end of file + echo "Logged out from Azure." diff --git a/docs/AVMPostDeploymentGuide.md b/docs/AVMPostDeploymentGuide.md new file mode 100644 index 00000000..856a4d2f --- /dev/null +++ b/docs/AVMPostDeploymentGuide.md @@ -0,0 +1,25 @@ +# AVM Post Deployment Guide + +> **📋 Note**: This guide is specifically for post-deployment steps after using the AVM template. For complete deployment from scratch, see the main [Deployment Guide](./DeploymentGuide.md). + +--- + +This document provides guidance on post-deployment steps after deploying the Modernize your code solution accelerator from the [AVM (Azure Verified Modules) repository](https://github.com/Azure/bicep-registry-modules/tree/main/avm/ptn/sa/modernize-your-code). + +## Pre-requisites + +Ensure you have a **Deployed Infrastructure** - A successful Modernize your code solution accelerator deployment from the [AVM repository](https://github.com/Azure/bicep-registry-modules/tree/main/avm/ptn/sa/modernize-your-code) + +## Next Steps + +1. **Access the Application** + + Navigate to your Azure portal, open the resource group created by the deployment, locate the frontend Container App, and copy the Application URL to access the solution. + +2. **Add App Authentication** + + If you chose to enable authentication for the deployment, follow the steps in [App Authentication](./AddAuthentication.md) + +## Running the application + +To help you get started, sample Informix queries have been included in the `data/informix/functions` and `data/informix/simple` directories. You can choose to upload these files to test the application. diff --git a/scripts/checkquota.sh b/scripts/checkquota.sh index 0e33730f..5bb30b59 100644 --- a/scripts/checkquota.sh +++ b/scripts/checkquota.sh @@ -49,6 +49,7 @@ for REGION in "${REGIONS[@]}"; do if [ -z "$MODEL_INFO" ]; then echo "⚠️ WARNING: No quota information found for model: $MODEL in $REGION. Skipping." + INSUFFICIENT_QUOTA=true continue fi