Skip to content

Commit b4c9b39

Browse files
fix: fix downmerge issue - Update environment variable references for Azure SQL configuration
2 parents 7cbb787 + 24c3317 commit b4c9b39

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/06_create_agent.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
- AZURE_AI_SEARCH_CONNECTION_NAME: AI Search connection name (search connection mode)
3131
- AZURE_AI_SEARCH_ENDPOINT: AI Search endpoint (knowledge base mode)
3232
- AZURE_AI_SEARCH_INDEX: AI Search index name
33-
- SQLDB_SERVER, SQLDB_DATABASE: Azure SQL (for azure-only mode)
33+
- AZURE_SQLDB_SERVER, AZURE_SQLDB_DATABASE: Azure SQL (for azure-only mode)
3434
- FABRIC_WORKSPACE_ID: Fabric workspace (for Fabric mode)
3535
"""
3636

@@ -87,8 +87,8 @@
8787

8888
# SQL Configuration - determine mode
8989
FABRIC_WORKSPACE_ID = os.getenv("FABRIC_WORKSPACE_ID")
90-
SQL_SERVER = os.getenv("SQLDB_SERVER")
91-
SQL_DATABASE = os.getenv("SQLDB_DATABASE")
90+
SQL_SERVER = os.getenv("AZURE_SQLDB_SERVER") or os.getenv("SQLDB_SERVER")
91+
SQL_DATABASE = os.getenv("AZURE_SQLDB_DATABASE") or os.getenv("SQLDB_DATABASE")
9292

9393
# Determine SQL mode
9494
if args.azure_only:
@@ -131,7 +131,7 @@
131131

132132
if not USE_FABRIC and (not SQL_SERVER or not SQL_DATABASE):
133133
print("ERROR: Azure SQL not configured and Fabric not available")
134-
print(" Set SQLDB_SERVER and SQLDB_DATABASE in azd environment")
134+
print(" Set AZURE_SQLDB_SERVER and AZURE_SQLDB_DATABASE in azd environment")
135135
print(" Or configure FABRIC_WORKSPACE_ID for Fabric mode")
136136
sys.exit(1)
137137

0 commit comments

Comments
 (0)