Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@
"type": "string",
"defaultValue": "swedencentral",
"allowedValues": [
"swedencentral"
"swedencentral",
"francecentral",
"germanywestcentral"
],
"metadata": {
"description": "Azure location where resources should be deployed (e.g., swedencentral)"
"description": "Azure location where resources should be deployed. Restricted to regions verified to support both the gpt-5.4 and mistral-document-ai-2512 model deployments."
}
},
"deployModelDeployments": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,11 @@ function Publish-HackboxCredential {
}

# Resolve effective location and enforce template constraint.
# Only these regions support both the gpt-5.4 and mistral-document-ai-2512
# model deployments.
$supportedLocations = @("swedencentral", "francecentral", "germanywestcentral")
$effectiveLocation = if ($PreferredLocation.Count -gt 0) { $PreferredLocation[0] } else { "swedencentral" }
if ($effectiveLocation -ne "swedencentral") {
if ($effectiveLocation -notin $supportedLocations) {
Write-Host "[WARN] Requested location '$effectiveLocation' is not supported by this template. Using 'swedencentral'." -ForegroundColor Yellow
$effectiveLocation = "swedencentral"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"groups": [],
"deploymentType": "resourcegroup-with-subscriptionowner",
"labsPerSubscription": 4,
"preferredLocation": "westeurope, swedencentral, norwayeast, northeurope",
"preferredLocation": "swedencentral, francecentral, germanywestcentral",
"estimatedDailyCostsUsd": 8.0
}
Loading