Skip to content

Commit cc609e2

Browse files
Merge pull request #34 from microsoft/update-aiDeploymentLocation
chore: Update ai deployment location
2 parents 70af70e + 0470996 commit cc609e2

File tree

3 files changed

+53
-2
lines changed

3 files changed

+53
-2
lines changed

.github/workflows/azure-dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: AZD Template Validation
2-
on:
2+
on:
33
workflow_dispatch:
44

55
permissions:

azure.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,36 @@ metadata:
66

77
requiredVersions:
88
azd: '>=1.18.2'
9+
10+
hooks:
11+
postdeploy:
12+
posix:
13+
shell: sh
14+
run: |
15+
echo "-----"
16+
echo "🧭 Web App Details:"
17+
echo "✅ Name: $CONTAINER_WEB_APP_NAME"
18+
echo "🌐 Endpoint: https://$CONTAINER_WEB_APP_FQDN"
19+
echo "🔗 Portal URL: https://portal.azure.com/#resource/subscriptions/$AZURE_SUBSCRIPTION_ID/resourceGroups/$AZURE_RESOURCE_GROUP/providers/Microsoft.App/containerApps/$CONTAINER_WEB_APP_NAME"
20+
echo "-----"
21+
echo "🧭 API App Details:"
22+
echo "✅ Name: $CONTAINER_API_APP_NAME"
23+
echo "🌐 Endpoint: https://$CONTAINER_API_APP_FQDN"
24+
echo "🔗 Portal URL: https://portal.azure.com/#resource/subscriptions/$AZURE_SUBSCRIPTION_ID/resourceGroups/$AZURE_RESOURCE_GROUP/providers/Microsoft.App/containerApps/$CONTAINER_API_APP_NAME"
25+
echo "-----"
26+
interactive: true
27+
windows:
28+
shell: pwsh
29+
run: |
30+
Write-Host "-----"
31+
Write-Host "🧭 Web App Details:"
32+
Write-Host "✅ Name: $env:CONTAINER_WEB_APP_NAME"
33+
Write-Host "🌐 Endpoint: https://$env:CONTAINER_WEB_APP_FQDN"
34+
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
35+
Write-Host "-----"
36+
Write-Host "🧭 API App Details:"
37+
Write-Host "✅ Name: $env:CONTAINER_API_APP_NAME"
38+
Write-Host "🌐 Endpoint: https://$env:CONTAINER_API_APP_FQDN"
39+
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
40+
Write-Host "-----"
41+
interactive: true

infra/main.bicep

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ param location string = resourceGroup().location
3636
}
3737
})
3838
@description('Optional. Location for all AI service resources. This location can be different from the resource group location.')
39-
param aiDeploymentLocation string?
39+
param aiDeploymentLocation string
4040

4141
@description('Optional. The host (excluding https://) of an existing container registry. This is the `loginServer` when using Azure Container Registry.')
4242
param containerRegistryHost string = 'containermigrationacr.azurecr.io'
@@ -612,3 +612,21 @@ module containerAppProcessor 'br/public:avm/res/app/container-app:0.18.1' = {
612612

613613
@description('The name of the resource group.')
614614
output resourceGroupName string = resourceGroup().name
615+
616+
@description('The name of the web app container app.')
617+
output CONTAINER_WEB_APP_NAME string = containerAppFrontend.outputs.name
618+
619+
@description('The FQDN of the web app container app.')
620+
output CONTAINER_WEB_APP_FQDN string = containerAppFrontend.outputs.fqdn
621+
622+
@description('The name of the API container app.')
623+
output CONTAINER_API_APP_NAME string = containerAppBackend.outputs.name
624+
625+
@description('The FQDN of the API container app.')
626+
output CONTAINER_API_APP_FQDN string = containerAppBackend.outputs.fqdn
627+
628+
@description('The Azure subscription ID.')
629+
output AZURE_SUBSCRIPTION_ID string = subscription().subscriptionId
630+
631+
@description('The Azure resource group name.')
632+
output AZURE_RESOURCE_GROUP string = resourceGroup().name

0 commit comments

Comments
 (0)