-
Notifications
You must be signed in to change notification settings - Fork 166
fix: merging dev to main #747
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Added a note about average response time and formatted the document. Co-authored-by: Prajwal-Microsoft <[email protected]>
* DataRefreshLogic * pylint * pylintfix * fix
…rrect agent handling
fix: reduced the replica instance count to 1 for WAF version
fix: Updated Naming convention in Process_Sample_data file
* custom templates for developer experience * updated azure_custom.yaml * updated readme * updated template name * updated keyvault prefix to lower case * changes suggested by copilot * main.json
…for index_script and dev script
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This pull request migrates the codebase from direct Azure OpenAI SDK usage to the Azure AI Projects SDK, standardizes infrastructure resource naming conventions, improves deployment automation, and enhances security configurations. The changes align API endpoints, configuration variables, and test infrastructure with Azure AI Services standards while introducing a new developer-friendly custom deployment workflow.
Key changes:
- Migrated from
AsyncAzureOpenAItoAIProjectClientfor AI service interactions across the application and test suites - Standardized API version parameter naming from
azureOpenaiAPIVersiontoazureAIServicesAPIVersionand updated endpoint references to use simplifiedoutputs.endpointinstead of indexed dictionary access - Added
azure_custom.yamlwith comprehensive deployment automation hooks and introducedmain_custom.bicepfor developer-focused deployments with custom ACR configuration
Reviewed Changes
Copilot reviewed 20 out of 20 changed files in this pull request and generated 8 comments.
Show a summary per file
| File | Description |
|---|---|
| src/App/tests/test_app.py | Updated tests to use init_ai_projects_client instead of init_openai_client with mocked AIProjectClient |
| src/App/tests/backend/plugins/test_chat_with_data_plugin.py | Added test for get_project_openai_client method with AIProjectClient mocking |
| src/App/requirements.txt | Removed direct openai package dependency (moved to dev dependencies) |
| src/App/requirements-dev.txt | Added azure-ai-projects and azure-ai-inference packages for development and testing |
| src/App/backend/services/sqldb_service.py | Fixed data retrieval logic to re-query after sample data update |
| src/App/backend/plugins/chat_with_data_plugin.py | Removed deprecated get_openai_client method and import cleanup |
| src/App/backend/common/config.py | Reorganized AI Project Client configuration section to appear before AOAI settings |
| src/App/app.py | Refactored client initialization to use AIProjectClient with get_openai_client() method |
| infra/scripts/process_sample_data.sh | Enhanced deployment output parsing with fallback logic for multiple naming conventions |
| infra/scripts/index_scripts/requirements.txt | Added Azure AI Projects SDK dependencies for index creation scripts |
| infra/scripts/index_scripts/create_search_index.py | Migrated embedding generation to use AIProjectClient instead of direct AzureOpenAI client |
| infra/modules/dependencies.bicep | Removed unused OpenAI Contributor and OpenAI User role definitions |
| infra/main_custom.bicep | Added new developer-friendly Bicep template with custom ACR support and user permissions for local debugging |
| infra/main.waf.parameters.json | Renamed parameter from deploymentType/azureOpenaiAPIVersion to gptModelDeploymentType/azureAIServicesAPIVersion |
| infra/main.parameters.json | Updated parameter reference to use azureAIServicesAPIVersion |
| infra/main.json | Compiled ARM template reflecting parameter renames, endpoint changes, DNS zone updates, and security improvements |
| infra/main.bicep | Updated parameter naming, removed legacy OpenAI DNS zone, simplified endpoint references, fixed Key Vault naming, and improved storage security |
| docs/SampleQuestions.md | Added note about average response time of 8-30 seconds |
| docs/DeploymentGuide.md | Added instructions for deploying local changes using custom configuration files |
| azure_custom.yaml | New deployment configuration with automated hooks for ACR setup, container build/push, and web app configuration |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
fix: Enable Key Vault while running post deployment script
…st meetings” (#751) * docs: merge from dev to main Samplequestion (#737) * Update SampleQuestions.md with response time note (#736) Added a note about average response time and formatted the document. Co-authored-by: Prajwal-Microsoft <[email protected]> * fix: update API version to 2025-04-01 and adjust skuCapacity in main.bicep * fix: rename deploymentType parameter to gptModelDeploymentType for clarity * fix: Re-query data after updating sample data to refresh rows (#739) * DataRefreshLogic * pylint * pylintfix * fix * fix: clarify skuCapacity comment in main.bicep for WAF deployment * fix: update skuCapacity configuration for WAF deployment to ensure correct agent handling --------- Co-authored-by: Prajwal-Microsoft <[email protected]> Co-authored-by: Pavan-Microsoft <[email protected]> Co-authored-by: UtkarshMishra-Microsoft <[email protected]> * Add disclaimer for AI solutions in README (#741) Added a disclaimer about AI solutions and compliance. * fix v1 * code cleanup * Remove README changes - reset to dev version --------- Co-authored-by: Prajwal-Microsoft <[email protected]> Co-authored-by: Thanusree-Microsoft <[email protected]> Co-authored-by: Pavan-Microsoft <[email protected]> Co-authored-by: UtkarshMishra-Microsoft <[email protected]>
…nd add assign_sql_roles.py script
fix: FDPO Windows SQL Server interactive auth issue
* custom templates for developer experience * updated azure_custom.yaml * updated readme * updated template name * updated keyvault prefix to lower case * changes suggested by copilot * main.json * updated the approach * updated main_custom.bicep * added comment
|
🎉 This PR is included in version 1.10.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Purpose
azure_custom.yamlconfiguration file and makes several infrastructure improvements and bug fixes to the Bicep deployment scripts and documentation. The main focus is on streamlining Azure container deployment, updating resource naming conventions, improving security, and aligning API endpoints and variables with current Azure AI Services standards.Infrastructure automation and deployment:
azure_custom.yamlwith comprehensive hooks for pre-package, pre-deploy, post-provision, and post-deploy steps, automating container registry setup, image build/push, web app configuration, and managed identity assignments for both Windows and POSIX environments.Azure AI Services and resource configuration:
azureOpenaiAPIVersiontoazureAIServicesAPIVersionand replaced endpoint lookups fromaiFoundryAiServices.outputs.endpoints['OpenAI Language Model Instance API']toaiFoundryAiServices.outputs.endpointthroughout the Bicep scripts, ensuring compatibility with Azure AI Services. [1] [2] [3]AZURE-AI-AGENT-ENDPOINTenvironment variable and its propagation through Key Vault and web app configuration. [1] [2]Security and resource naming:
allowBlobPublicAccesstofalsefor storage accounts to improve security, and standardized Key Vault naming to lowercase (kv-...). [1] [2]Private DNS zone and scalability fixes:
skuCapacity: 1to prevent excessive agent creation during WAF deployment. [1] [2] [3] [4]Documentation updates:
Does this introduce a breaking change?
Golden Path Validation
Deployment Validation
What to Check
Verify that the following are valid
Other Information