Skip to content
Open
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 @@ -139,6 +139,14 @@ function Get-ValuesFromAzDeployment {
$script:gptModelName = Get-DeploymentValue -DeploymentOutputs $deploymentOutputs -PrimaryKey "azureAiAgentModelDeploymentName" -FallbackKey "AZURE_AI_AGENT_MODEL_DEPLOYMENT_NAME"
$script:aiFoundryResourceId = Get-DeploymentValue -DeploymentOutputs $deploymentOutputs -PrimaryKey "aiFoundryResourceId" -FallbackKey "AI_FOUNDRY_RESOURCE_ID"
$script:apiAppName = Get-DeploymentValue -DeploymentOutputs $deploymentOutputs -PrimaryKey "apiAppName" -FallbackKey "API_APP_NAME"
# Fallback: try additional output key names used by AVM deployments
if (-not $script:apiAppName) {
$script:apiAppName = Get-DeploymentValue -DeploymentOutputs $deploymentOutputs -PrimaryKey "chatApiAppName" -FallbackKey "CHAT_API_APP_NAME"
}
# Final fallback: derive from solutionName using known naming convention
if (-not $script:apiAppName -and $script:solutionName) {
$script:apiAppName = "api-chat-$($script:solutionName)"
}
Comment thread
NirajC3-Microsoft marked this conversation as resolved.
$script:searchEndpoint = Get-DeploymentValue -DeploymentOutputs $deploymentOutputs -PrimaryKey "azureAiSearchEndpoint" -FallbackKey "AZURE_AI_SEARCH_ENDPOINT"

# Validate that we extracted all required values
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,14 @@ function get_values_from_az_deployment() {
gptModelName=$(extract_value "azureAiAgentModelDeploymentName" "AZURE_AI_AGENT_MODEL_DEPLOYMENT_NAME")
aiFoundryResourceId=$(extract_value "aiFoundryResourceId" "AI_FOUNDRY_RESOURCE_ID")
apiAppName=$(extract_value "apiAppName" "API_APP_NAME")
# Fallback: try additional output key names used by AVM deployments
if [[ -z "$apiAppName" ]]; then
apiAppName=$(extract_value "chatApiAppName" "CHAT_API_APP_NAME")
fi
# Final fallback: derive from solutionName using known naming convention
if [[ -z "$apiAppName" && -n "$solutionName" ]]; then
apiAppName="api-chat-${solutionName}"
fi
Comment thread
NirajC3-Microsoft marked this conversation as resolved.
searchEndpoint=$(extract_value "azureAiSearchEndpoint" "AZURE_AI_SEARCH_ENDPOINT")

# Debug output
Expand Down