Skip to content

Commit

Permalink
moved parm validation call
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonindia-mcs committed Mar 9, 2025
1 parent 29ed213 commit 7486c8d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Deployment/scripts/deployAzureResources.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -375,15 +375,15 @@ function build_push_container_images() {
$acrAIServiceTag = "$($deploymentResult.ContainerRegistryName).azurecr.io/$acrNamespace/aiservice"
# Write-Host "*** TESTING DEPLOYMENT *** TAGGING IMAGE, NO docker build -t $acrAIServiceTag" -ForegroundColor DarkRed
# docker tag aiservice $acrAIServiceTag
docker build ../../Services/src/esg-ai-doc-analysis/. --no-cache -t $acrAIServiceTag
docker build ../../Services/src/esg-ai-doc-analysis/. --no-cache -t $acrAIServiceTag
# Write-Host "*** TESTING DEPLOYMENT *** NO docker push $acrAIServiceTag" -ForegroundColor DarkRed
docker push $acrAIServiceTag

# 2-2. Build and push the Kernel Memory Service container image to Azure Container Registry
$acrKernelMemoryTag = "$($deploymentResult.ContainerRegistryName).azurecr.io/$acrNamespace/kernelmemory"
# Write-Host "*** TESTING DEPLOYMENT *** TAGGING IMAGE, NO docker build -t $acrKernelMemoryTag" -ForegroundColor DarkRed
# docker tag kernelmemory $acrKernelMemoryTag
docker build ../../Services/src/kernel-memory/. --no-cache -t $acrKernelMemoryTag
docker build ../../Services/src/kernel-memory/. --no-cache -t $acrKernelMemoryTag
# Write-Host "*** TESTING DEPLOYMENT *** NO docker push $acrKernelMemoryTag" -ForegroundColor DarkRed
docker push $acrKernelMemoryTag

Expand Down Expand Up @@ -695,13 +695,13 @@ if($is_testing) {
try {
Write-Host "Script start $(Get-Date -Format 'yyyyMMdd_T_hhmmss')"
# Step1
validate_parms
LoginAzure($subscriptionID)
$json = $(az account show --query "{Subscription:name,SubscriptionID:id,Type:user.type,User:user.name,Tenant:tenantId}" -o json)
if ([string]::IsNullOrEmpty($json)) {
throw [System.Exception]"NOLOGIN"
}
Write-Host "$($json | ConvertFrom-Json | ConvertTo-Json)" -ForegroundColor Green
validate_parms
deploy_main_services

# Step2
Expand Down

0 comments on commit 7486c8d

Please sign in to comment.