diff --git a/.github/workflows/azure-dev.yml b/.github/workflows/azure-dev.yml index 2c16436..adf68f0 100644 --- a/.github/workflows/azure-dev.yml +++ b/.github/workflows/azure-dev.yml @@ -1,5 +1,5 @@ name: AZD Template Validation -on: +on: workflow_dispatch: permissions: diff --git a/azure.yaml b/azure.yaml index 465738c..3d61aa2 100644 --- a/azure.yaml +++ b/azure.yaml @@ -6,3 +6,36 @@ metadata: requiredVersions: azd: '>=1.18.2' + +hooks: + postdeploy: + posix: + shell: sh + run: | + echo "-----" + echo "🧭 Web App Details:" + echo "✅ Name: $CONTAINER_WEB_APP_NAME" + echo "🌐 Endpoint: https://$CONTAINER_WEB_APP_FQDN" + echo "🔗 Portal URL: https://portal.azure.com/#resource/subscriptions/$AZURE_SUBSCRIPTION_ID/resourceGroups/$AZURE_RESOURCE_GROUP/providers/Microsoft.App/containerApps/$CONTAINER_WEB_APP_NAME" + echo "-----" + echo "🧭 API App Details:" + echo "✅ Name: $CONTAINER_API_APP_NAME" + echo "🌐 Endpoint: https://$CONTAINER_API_APP_FQDN" + echo "🔗 Portal URL: https://portal.azure.com/#resource/subscriptions/$AZURE_SUBSCRIPTION_ID/resourceGroups/$AZURE_RESOURCE_GROUP/providers/Microsoft.App/containerApps/$CONTAINER_API_APP_NAME" + echo "-----" + interactive: true + windows: + shell: pwsh + run: | + Write-Host "-----" + Write-Host "🧭 Web App Details:" + Write-Host "✅ Name: $env:CONTAINER_WEB_APP_NAME" + Write-Host "🌐 Endpoint: https://$env:CONTAINER_WEB_APP_FQDN" + Write-Host "🔗 Portal URL: https://portal.azure.com/#resource/subscriptions/$env:AZURE_SUBSCRIPTION_ID/resourceGroups/$env:AZURE_RESOURCE_GROUP/providers/Microsoft.App/containerApps/$env:CONTAINER_WEB_APP_NAME" -ForegroundColor Cyan + Write-Host "-----" + Write-Host "🧭 API App Details:" + Write-Host "✅ Name: $env:CONTAINER_API_APP_NAME" + Write-Host "🌐 Endpoint: https://$env:CONTAINER_API_APP_FQDN" + Write-Host "🔗 Portal URL: https://portal.azure.com/#resource/subscriptions/$env:AZURE_SUBSCRIPTION_ID/resourceGroups/$env:AZURE_RESOURCE_GROUP/providers/Microsoft.App/containerApps/$env:CONTAINER_API_APP_NAME" -ForegroundColor Cyan + Write-Host "-----" + interactive: true diff --git a/infra/main.bicep b/infra/main.bicep index 598e44c..707018a 100644 --- a/infra/main.bicep +++ b/infra/main.bicep @@ -36,7 +36,7 @@ param location string = resourceGroup().location } }) @description('Optional. Location for all AI service resources. This location can be different from the resource group location.') -param aiDeploymentLocation string? +param aiDeploymentLocation string @description('Optional. The host (excluding https://) of an existing container registry. This is the `loginServer` when using Azure Container Registry.') param containerRegistryHost string = 'containermigrationacr.azurecr.io' @@ -612,3 +612,21 @@ module containerAppProcessor 'br/public:avm/res/app/container-app:0.18.1' = { @description('The name of the resource group.') output resourceGroupName string = resourceGroup().name + +@description('The name of the web app container app.') +output CONTAINER_WEB_APP_NAME string = containerAppFrontend.outputs.name + +@description('The FQDN of the web app container app.') +output CONTAINER_WEB_APP_FQDN string = containerAppFrontend.outputs.fqdn + +@description('The name of the API container app.') +output CONTAINER_API_APP_NAME string = containerAppBackend.outputs.name + +@description('The FQDN of the API container app.') +output CONTAINER_API_APP_FQDN string = containerAppBackend.outputs.fqdn + +@description('The Azure subscription ID.') +output AZURE_SUBSCRIPTION_ID string = subscription().subscriptionId + +@description('The Azure resource group name.') +output AZURE_RESOURCE_GROUP string = resourceGroup().name