Skip to content

Commit c72e70e

Browse files
fix: update environment variable names to use AZURE_ prefix in deploy.ps1
1 parent c3cd3ed commit c72e70e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/deploy.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ $ProjectDir = Split-Path -Parent $ScriptDir
4040
Set-Location $ProjectDir
4141

4242
# Configuration from environment or prompt
43-
$ResourceGroup = if ($env:RESOURCE_GROUP) { $env:RESOURCE_GROUP } else { $null }
44-
$Location = if ($env:LOCATION) { $env:LOCATION } else { "eastus" }
43+
$ResourceGroup = if ($env:AZURE_RESOURCE_GROUP) { $env:AZURE_RESOURCE_GROUP } else { $null }
44+
$Location = if ($env:AZURE_LOCATION) { $env:AZURE_LOCATION } else { "eastus" }
4545
$AcrName = if ($env:AZURE_ENV_CONTAINER_REGISTRY_NAME) { $env:AZURE_ENV_CONTAINER_REGISTRY_NAME } else { $null }
46-
$ContainerName = if ($env:CONTAINER_NAME) { $env:CONTAINER_NAME } else { "aci-contentgen-backend" }
46+
$ContainerName = if ($env:CONTAINER_INSTANCE_NAME) { $env:CONTAINER_INSTANCE_NAME } else { "aci-contentgen-backend" }
4747
$AppServiceName = if ($env:APP_SERVICE_NAME) { $env:APP_SERVICE_NAME } else { $null }
4848
$ImageTag = if ($env:AZURE_ENV_IMAGE_TAG) { $env:AZURE_ENV_IMAGE_TAG } else { "latest" }
4949

0 commit comments

Comments
 (0)