-
Notifications
You must be signed in to change notification settings - Fork 61
Bugfix/govcloud document intelligence, ai search, content safety managed identity authentication #388
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
Merged
paullizer
merged 11 commits into
microsoft:Development
from
Xeelee33:bugfix/gov-custom-managed-identity-auth-di-search-safety
Sep 3, 2025
Merged
Bugfix/govcloud document intelligence, ai search, content safety managed identity authentication #388
paullizer
merged 11 commits into
microsoft:Development
from
Xeelee33:bugfix/gov-custom-managed-identity-auth-di-search-safety
Sep 3, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…ent intelligence, ai search, and content safety client initialization for govt and custom environments
…tication for government and custom environments by adding base64 encoding support for document uploads, which is required by current GA document intelligence API version (2024-11-30)
… managed identity integration for government and custom environments. Consolidated Document Intelligence calls to use same module and API and added base64 document uploads in Document Intelligence API, required by most current API GA version (2024-11-30).
Amazing work and write up! Before approving I want to talk through the Doc intel changes. I will reach out on 8/20. |
…ent intelligence, ai search, and content safety client initialization for govt and custom environments
…tication for government and custom environments by adding base64 encoding support for document uploads, which is required by current GA document intelligence API version (2024-11-30)
… managed identity integration for government and custom environments. Consolidated Document Intelligence calls to use same module and API and added base64 document uploads in Document Intelligence API, required by most current API GA version (2024-11-30).
…y' of https://github.com/Xeelee33/simplechat into bugfix/gov-custom-managed-identity-auth-di-search-safety
…th-di-search-safety
paullizer
added a commit
that referenced
this pull request
Sep 3, 2025
* Documentation: Refactor (#406) * Add new images and documentation for Simple Chat setup and infrastructure - Added various images for UI and functionality demonstrations. - Created 'infrastructure_as_code.md' for infrastructure setup guidance. - Added 'setup_instructions.md' detailing deployment options and instructions. - Introduced 'setup_instructions_special.md' for special deployment scenarios including Azure Government configurations and Managed Identity usage. - Updated documentation to enhance clarity and usability for developers. * Update README setup instructions and remove obsolete infrastructure documentation * Fix TOC anchors: README and application_workflows.md --------- Co-authored-by: Steve Carroll <Stephen.Carroll@microsoft.com> * Improvements to Terraform deployment process (#400) * Delete logfile.log * Removed external these are pending release and will show up in next version. * Update route_external_health.py * Adding health check * Added health check feature * updating app.py, removed external * Updated to v0.215.36 * Update app.py * v0.215.37 * v0.215.37 * Update app.py (#359) * Update app.py Super tactical fix to allow ChainGuard container to start * updated to v0.215.38 --------- Co-authored-by: Paul Lizer <paullizer@microsoft.com> * Update README.md * Refactor devcontainer.json to update feature sources and enhance VS Code customizations * Added powershell script to configure Base dependencies. * remove tfvars files from solution * fix: set authentication requirements for app * fix: redirect to correct auth provider * fix: add alternate auth endpoint * fix: corrected image name in app * fix: use managed identity for image retrevial * fix: upate app docker registry server to dynamic config * Documentation updates for deployment with Terraform * removed unused variable from powershell script. * fix: enable shared access key for Azure Storage Account --------- Co-authored-by: Paul Lizer <paullizer@microsoft.com> Co-authored-by: Paul Lizer <paul.lizer@live.com> Co-authored-by: Aaron Barth <aaronba@users.noreply.github.com> Co-authored-by: Steve Carroll <Stephen.Carroll@microsoft.com> * Bugfix/govcloud document intelligence, ai search, content safety managed identity authentication (#388) * Add support for govt and custom search resource manager, update document intelligence, ai search, and content safety client initialization for govt and custom environments * Fix Azure Document Intelligence operation via managed identity authentication for government and custom environments by adding base64 encoding support for document uploads, which is required by current GA document intelligence API version (2024-11-30) * Fix Azure AI services (content safety, document intelligence, search) managed identity integration for government and custom environments. Consolidated Document Intelligence calls to use same module and API and added base64 document uploads in Document Intelligence API, required by most current API GA version (2024-11-30). * Update README.md to correct Managed Identity role requirements for Azure services * Add support for govt and custom search resource manager, update document intelligence, ai search, and content safety client initialization for govt and custom environments * Fix Azure Document Intelligence operation via managed identity authentication for government and custom environments by adding base64 encoding support for document uploads, which is required by current GA document intelligence API version (2024-11-30) * Fix Azure AI services (content safety, document intelligence, search) managed identity integration for government and custom environments. Consolidated Document Intelligence calls to use same module and API and added base64 document uploads in Document Intelligence API, required by most current API GA version (2024-11-30). * Update README.md to correct Managed Identity role requirements for Azure services * added search_client_public to managed identity auth flow --------- Co-authored-by: Joshua Wilshere <joshua.wilshere@oig.dhs.gov> Co-authored-by: Paul Lizer <paullizer@microsoft.com> * Feature/code highlighting (#363) * Delete logfile.log * Removed external these are pending release and will show up in next version. * Update route_external_health.py * Adding health check * Added health check feature * updating app.py, removed external * Updated to v0.215.36 * Update app.py * v0.215.37 * v0.215.37 * Update app.py (#359) * Update app.py Super tactical fix to allow ChainGuard container to start * updated to v0.215.38 --------- Co-authored-by: Paul Lizer <paullizer@microsoft.com> * Update README.md * Feature - added code highlighting in code blocks returned by the GPT model using Prism (www.prismjs.com) with themes for light and dark mode. Also made adjustments to <pre> and <pre><code> css to try and prevent double scrolls bars when code blocks overflow available space in chat box. --------- Co-authored-by: Paul Lizer <paullizer@microsoft.com> Co-authored-by: Paul Lizer <paul.lizer@live.com> Co-authored-by: Aaron Barth <aaronba@users.noreply.github.com> * Bugfix - MAG Video Indexer API & Tweak to Speech Service Defaults (#344) * Delete logfile.log * Removed external these are pending release and will show up in next version. * Update route_external_health.py * Adding health check * Added health check feature * updating app.py, removed external * Updated to v0.215.36 * Update app.py * v0.215.37 * v0.215.37 * updated so video indexer api default changes based on public/government cloud and is not read-only in the admin settings, removed hardcoded commercial speech_service_endpoint and speech_service_location * added placeholder for speech_service_endpoint to show default endpoint format based on location and cloud type * added reminders to save pending changes before fetching GPT models in admin settings * Added process to delete videos from VI service when deleted from front end/blob/cosmos. Includes adding the file's video indexer ID to the file metadata in cosmos. * Added unmerged files from Development branch --------- Co-authored-by: Paul Lizer <paullizer@microsoft.com> Co-authored-by: Paul Lizer <paul.lizer@live.com> --------- Co-authored-by: SteveCInVA <37545884+SteveCInVA@users.noreply.github.com> Co-authored-by: Steve Carroll <Stephen.Carroll@microsoft.com> Co-authored-by: Aaron Barth <aaronba@users.noreply.github.com> Co-authored-by: Xeelee33 <Xeelee33@users.noreply.github.com> Co-authored-by: Joshua Wilshere <joshua.wilshere@oig.dhs.gov>
paullizer
added a commit
that referenced
this pull request
Sep 4, 2025
* Development (#409) * Documentation: Refactor (#406) * Add new images and documentation for Simple Chat setup and infrastructure - Added various images for UI and functionality demonstrations. - Created 'infrastructure_as_code.md' for infrastructure setup guidance. - Added 'setup_instructions.md' detailing deployment options and instructions. - Introduced 'setup_instructions_special.md' for special deployment scenarios including Azure Government configurations and Managed Identity usage. - Updated documentation to enhance clarity and usability for developers. * Update README setup instructions and remove obsolete infrastructure documentation * Fix TOC anchors: README and application_workflows.md --------- Co-authored-by: Steve Carroll <Stephen.Carroll@microsoft.com> * Improvements to Terraform deployment process (#400) * Delete logfile.log * Removed external these are pending release and will show up in next version. * Update route_external_health.py * Adding health check * Added health check feature * updating app.py, removed external * Updated to v0.215.36 * Update app.py * v0.215.37 * v0.215.37 * Update app.py (#359) * Update app.py Super tactical fix to allow ChainGuard container to start * updated to v0.215.38 --------- Co-authored-by: Paul Lizer <paullizer@microsoft.com> * Update README.md * Refactor devcontainer.json to update feature sources and enhance VS Code customizations * Added powershell script to configure Base dependencies. * remove tfvars files from solution * fix: set authentication requirements for app * fix: redirect to correct auth provider * fix: add alternate auth endpoint * fix: corrected image name in app * fix: use managed identity for image retrevial * fix: upate app docker registry server to dynamic config * Documentation updates for deployment with Terraform * removed unused variable from powershell script. * fix: enable shared access key for Azure Storage Account --------- Co-authored-by: Paul Lizer <paullizer@microsoft.com> Co-authored-by: Paul Lizer <paul.lizer@live.com> Co-authored-by: Aaron Barth <aaronba@users.noreply.github.com> Co-authored-by: Steve Carroll <Stephen.Carroll@microsoft.com> * Bugfix/govcloud document intelligence, ai search, content safety managed identity authentication (#388) * Add support for govt and custom search resource manager, update document intelligence, ai search, and content safety client initialization for govt and custom environments * Fix Azure Document Intelligence operation via managed identity authentication for government and custom environments by adding base64 encoding support for document uploads, which is required by current GA document intelligence API version (2024-11-30) * Fix Azure AI services (content safety, document intelligence, search) managed identity integration for government and custom environments. Consolidated Document Intelligence calls to use same module and API and added base64 document uploads in Document Intelligence API, required by most current API GA version (2024-11-30). * Update README.md to correct Managed Identity role requirements for Azure services * Add support for govt and custom search resource manager, update document intelligence, ai search, and content safety client initialization for govt and custom environments * Fix Azure Document Intelligence operation via managed identity authentication for government and custom environments by adding base64 encoding support for document uploads, which is required by current GA document intelligence API version (2024-11-30) * Fix Azure AI services (content safety, document intelligence, search) managed identity integration for government and custom environments. Consolidated Document Intelligence calls to use same module and API and added base64 document uploads in Document Intelligence API, required by most current API GA version (2024-11-30). * Update README.md to correct Managed Identity role requirements for Azure services * added search_client_public to managed identity auth flow --------- Co-authored-by: Joshua Wilshere <joshua.wilshere@oig.dhs.gov> Co-authored-by: Paul Lizer <paullizer@microsoft.com> * Feature/code highlighting (#363) * Delete logfile.log * Removed external these are pending release and will show up in next version. * Update route_external_health.py * Adding health check * Added health check feature * updating app.py, removed external * Updated to v0.215.36 * Update app.py * v0.215.37 * v0.215.37 * Update app.py (#359) * Update app.py Super tactical fix to allow ChainGuard container to start * updated to v0.215.38 --------- Co-authored-by: Paul Lizer <paullizer@microsoft.com> * Update README.md * Feature - added code highlighting in code blocks returned by the GPT model using Prism (www.prismjs.com) with themes for light and dark mode. Also made adjustments to <pre> and <pre><code> css to try and prevent double scrolls bars when code blocks overflow available space in chat box. --------- Co-authored-by: Paul Lizer <paullizer@microsoft.com> Co-authored-by: Paul Lizer <paul.lizer@live.com> Co-authored-by: Aaron Barth <aaronba@users.noreply.github.com> * Bugfix - MAG Video Indexer API & Tweak to Speech Service Defaults (#344) * Delete logfile.log * Removed external these are pending release and will show up in next version. * Update route_external_health.py * Adding health check * Added health check feature * updating app.py, removed external * Updated to v0.215.36 * Update app.py * v0.215.37 * v0.215.37 * updated so video indexer api default changes based on public/government cloud and is not read-only in the admin settings, removed hardcoded commercial speech_service_endpoint and speech_service_location * added placeholder for speech_service_endpoint to show default endpoint format based on location and cloud type * added reminders to save pending changes before fetching GPT models in admin settings * Added process to delete videos from VI service when deleted from front end/blob/cosmos. Includes adding the file's video indexer ID to the file metadata in cosmos. * Added unmerged files from Development branch --------- Co-authored-by: Paul Lizer <paullizer@microsoft.com> Co-authored-by: Paul Lizer <paul.lizer@live.com> --------- Co-authored-by: SteveCInVA <37545884+SteveCInVA@users.noreply.github.com> Co-authored-by: Steve Carroll <Stephen.Carroll@microsoft.com> Co-authored-by: Aaron Barth <aaronba@users.noreply.github.com> Co-authored-by: Xeelee33 <Xeelee33@users.noreply.github.com> Co-authored-by: Joshua Wilshere <joshua.wilshere@oig.dhs.gov> * Improved New Action workflow * fixed global agent / action loading bug --------- Co-authored-by: SteveCInVA <37545884+SteveCInVA@users.noreply.github.com> Co-authored-by: Steve Carroll <Stephen.Carroll@microsoft.com> Co-authored-by: Aaron Barth <aaronba@users.noreply.github.com> Co-authored-by: Xeelee33 <Xeelee33@users.noreply.github.com> Co-authored-by: Joshua Wilshere <joshua.wilshere@oig.dhs.gov>
paullizer
added a commit
that referenced
this pull request
Sep 5, 2025
* Development (#409) * Documentation: Refactor (#406) * Add new images and documentation for Simple Chat setup and infrastructure - Added various images for UI and functionality demonstrations. - Created 'infrastructure_as_code.md' for infrastructure setup guidance. - Added 'setup_instructions.md' detailing deployment options and instructions. - Introduced 'setup_instructions_special.md' for special deployment scenarios including Azure Government configurations and Managed Identity usage. - Updated documentation to enhance clarity and usability for developers. * Update README setup instructions and remove obsolete infrastructure documentation * Fix TOC anchors: README and application_workflows.md --------- Co-authored-by: Steve Carroll <Stephen.Carroll@microsoft.com> * Improvements to Terraform deployment process (#400) * Delete logfile.log * Removed external these are pending release and will show up in next version. * Update route_external_health.py * Adding health check * Added health check feature * updating app.py, removed external * Updated to v0.215.36 * Update app.py * v0.215.37 * v0.215.37 * Update app.py (#359) * Update app.py Super tactical fix to allow ChainGuard container to start * updated to v0.215.38 --------- Co-authored-by: Paul Lizer <paullizer@microsoft.com> * Update README.md * Refactor devcontainer.json to update feature sources and enhance VS Code customizations * Added powershell script to configure Base dependencies. * remove tfvars files from solution * fix: set authentication requirements for app * fix: redirect to correct auth provider * fix: add alternate auth endpoint * fix: corrected image name in app * fix: use managed identity for image retrevial * fix: upate app docker registry server to dynamic config * Documentation updates for deployment with Terraform * removed unused variable from powershell script. * fix: enable shared access key for Azure Storage Account --------- Co-authored-by: Paul Lizer <paullizer@microsoft.com> Co-authored-by: Paul Lizer <paul.lizer@live.com> Co-authored-by: Aaron Barth <aaronba@users.noreply.github.com> Co-authored-by: Steve Carroll <Stephen.Carroll@microsoft.com> * Bugfix/govcloud document intelligence, ai search, content safety managed identity authentication (#388) * Add support for govt and custom search resource manager, update document intelligence, ai search, and content safety client initialization for govt and custom environments * Fix Azure Document Intelligence operation via managed identity authentication for government and custom environments by adding base64 encoding support for document uploads, which is required by current GA document intelligence API version (2024-11-30) * Fix Azure AI services (content safety, document intelligence, search) managed identity integration for government and custom environments. Consolidated Document Intelligence calls to use same module and API and added base64 document uploads in Document Intelligence API, required by most current API GA version (2024-11-30). * Update README.md to correct Managed Identity role requirements for Azure services * Add support for govt and custom search resource manager, update document intelligence, ai search, and content safety client initialization for govt and custom environments * Fix Azure Document Intelligence operation via managed identity authentication for government and custom environments by adding base64 encoding support for document uploads, which is required by current GA document intelligence API version (2024-11-30) * Fix Azure AI services (content safety, document intelligence, search) managed identity integration for government and custom environments. Consolidated Document Intelligence calls to use same module and API and added base64 document uploads in Document Intelligence API, required by most current API GA version (2024-11-30). * Update README.md to correct Managed Identity role requirements for Azure services * added search_client_public to managed identity auth flow --------- Co-authored-by: Joshua Wilshere <joshua.wilshere@oig.dhs.gov> Co-authored-by: Paul Lizer <paullizer@microsoft.com> * Feature/code highlighting (#363) * Delete logfile.log * Removed external these are pending release and will show up in next version. * Update route_external_health.py * Adding health check * Added health check feature * updating app.py, removed external * Updated to v0.215.36 * Update app.py * v0.215.37 * v0.215.37 * Update app.py (#359) * Update app.py Super tactical fix to allow ChainGuard container to start * updated to v0.215.38 --------- Co-authored-by: Paul Lizer <paullizer@microsoft.com> * Update README.md * Feature - added code highlighting in code blocks returned by the GPT model using Prism (www.prismjs.com) with themes for light and dark mode. Also made adjustments to <pre> and <pre><code> css to try and prevent double scrolls bars when code blocks overflow available space in chat box. --------- Co-authored-by: Paul Lizer <paullizer@microsoft.com> Co-authored-by: Paul Lizer <paul.lizer@live.com> Co-authored-by: Aaron Barth <aaronba@users.noreply.github.com> * Bugfix - MAG Video Indexer API & Tweak to Speech Service Defaults (#344) * Delete logfile.log * Removed external these are pending release and will show up in next version. * Update route_external_health.py * Adding health check * Added health check feature * updating app.py, removed external * Updated to v0.215.36 * Update app.py * v0.215.37 * v0.215.37 * updated so video indexer api default changes based on public/government cloud and is not read-only in the admin settings, removed hardcoded commercial speech_service_endpoint and speech_service_location * added placeholder for speech_service_endpoint to show default endpoint format based on location and cloud type * added reminders to save pending changes before fetching GPT models in admin settings * Added process to delete videos from VI service when deleted from front end/blob/cosmos. Includes adding the file's video indexer ID to the file metadata in cosmos. * Added unmerged files from Development branch --------- Co-authored-by: Paul Lizer <paullizer@microsoft.com> Co-authored-by: Paul Lizer <paul.lizer@live.com> --------- Co-authored-by: SteveCInVA <37545884+SteveCInVA@users.noreply.github.com> Co-authored-by: Steve Carroll <Stephen.Carroll@microsoft.com> Co-authored-by: Aaron Barth <aaronba@users.noreply.github.com> Co-authored-by: Xeelee33 <Xeelee33@users.noreply.github.com> Co-authored-by: Joshua Wilshere <joshua.wilshere@oig.dhs.gov> * Improved New Action workflow * fixed global agent / action loading bug * Fixed upload bug * Fixed file upload bug and tabular data in chat * Adding fix markdowns, functional tests, bug fix for tabular data in convos --------- Co-authored-by: SteveCInVA <37545884+SteveCInVA@users.noreply.github.com> Co-authored-by: Steve Carroll <Stephen.Carroll@microsoft.com> Co-authored-by: Aaron Barth <aaronba@users.noreply.github.com> Co-authored-by: Xeelee33 <Xeelee33@users.noreply.github.com> Co-authored-by: Joshua Wilshere <joshua.wilshere@oig.dhs.gov>
paullizer
added a commit
that referenced
this pull request
Sep 12, 2025
* adding semantic kernel, agents, plugins (#291) * Support for custom environment (#235) (#240) Co-authored-by: adu103 <adu103@users.noreply.github.com> Co-authored-by: Alex Unger (Dev Advocate) <alexunger@microsoft.com> * Fix code snippet readability in Dark Mode (#239) * Initial plan for issue * Add dark mode styling for code blocks Co-authored-by: paullizer <34814295+paullizer@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: paullizer <34814295+paullizer@users.noreply.github.com> * Fix dark mode file link contrast in chat messages (#241) * Initial plan for issue * Fix dark mode file link contrast by using white text on green background Co-authored-by: paullizer <34814295+paullizer@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: paullizer <34814295+paullizer@users.noreply.github.com> * update version to 0.215.001 * Admin Setting - Use Local File for Document Intelligence Testing (#245) * Initial plan for issue * Update Document Intelligence test to use local file Co-authored-by: paullizer <34814295+paullizer@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: paullizer <34814295+paullizer@users.noreply.github.com> * Redis (#251) * adding ui to admin page for redis settings * removing APIM from redis * updates so data being saved in cosmos correct and test button working * Session data is correctly being stored in redis * update test redis button * Have the extra fields for redis auth type now working correctly * finished support for managed identities for redis cache * update readme for redis * fixed issue with redis not working with scaled app and managed indentities --------- Co-authored-by: Eldon Gormsen <Eldon.Gormsen@microsoft.com> Co-authored-by: Paul Lizer <paullizer@microsoft.com> * Changing Base Image to reduce CVEs (#266) * Update Dockerfile * Update docker_image_publish_dev.yml * Update Dockerfile to harden * Update Dockerfile Changed back to 3.12-slim * Update Dockerfile to remove libaom * Update Dockerfile Changed base to chainguard * Update docker_image_publish_dev.yml Changed image branches to trigger * Update Dockerfile Changed base to latest * Update Dockerfile removing the installs * Update Dockerfile adding latest-dev layer * Update Dockerfile remove flask * Update Dockerfile Changing EntryPoint * Update Dockerfile Using venv * Update app.py Updating app.run to use 0.0.0.0 * Update Dockerfile Giving User write access to image dir * Update Dockerfile Fixing to support chown without distro * Update Dockerfile update EXPOSE comment * add appinsights logger and function * fix improperly nested function * rmv duplicate function * add appinsights lib * fix version decl * improved logger options * Update chats.css (#272) Fix word wrap to move word to next line in chat * Infra deployer gunger (#232) * deployers update cleaning up code files for commit. * add deployer options readme.md add deployer options readme.md * Notes cleanup Notes cleanup * One Touch Deploy * update to one touch deploy links update to one touch deploy links * OneTouch updates OneTouch updates * One Touch Deploy changes One Touch Deploy changes * Update README.md * update to json template update to json template * Update README.md * Update README.md * Update README.md * Update README.md * Update OneTouchDeploy.md * Update OneTouchDeploy.md * Changed name of one touch to one click Changed name of one touch to one click * update to bicep * update to registry setting that differs by platform * update to variables to make it compatible with Azure Commercial update to variables to make it compatible with Azure Commercial * Update README.md * document bulk loader first checkin * database seeder first checkin * db seeder updates * updates to external api * bulk uploader changes bulk uploader changes * bulk loader related cleanup bulk loader related cleanup * bulk document loader changes bulk document loader changes * bulk loader updates bulk loader updates * Update main.py * Update main.py Bulk loader changes * Update route_external_group_documents.py External api changes * database seeder changes database seeder changes * database seeder updates database seeder updates * database seeder updates database seeder updates * Update admin_settings.json --------- Co-authored-by: Greg Unger <117244765+gregunger_microsoft@users.noreply.github.com> Co-authored-by: Paul Lizer <paullizer@microsoft.com> * Support using Azure File Share for temp files (#264) Co-authored-by: Eldon Gormsen <Eldon.Gormsen@microsoft.com> * Update test_document.pdf * upate pipeline * init semantic kernel commit --------- Co-authored-by: Paul Lizer <paullizer@microsoft.com> Co-authored-by: adu103 <adu103@users.noreply.github.com> Co-authored-by: Alex Unger (Dev Advocate) <alexunger@microsoft.com> Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com> Co-authored-by: paullizer <34814295+paullizer@users.noreply.github.com> Co-authored-by: eldong <eldon@sixarrows.net> Co-authored-by: Eldon Gormsen <Eldon.Gormsen@microsoft.com> Co-authored-by: Aaron Barth <aaronba@users.noreply.github.com> Co-authored-by: Greg <78557883+gregunger-microsoft@users.noreply.github.com> Co-authored-by: Greg Unger <117244765+gregunger_microsoft@users.noreply.github.com> Co-authored-by: Bionic711 <nadoyle@microsoft.com> * Delete logfile.log * removed test docs * Added APIs for agents, external support, and healthcheck * Update config.py * Added openapi plugin * Updated * Update docker_image_publish_dev.yml * Update docker_image_publish_dev.yml (#293) Updated typo for branch so we can test the build * v0.216.003 * external api and healthcheck * Initskbugfixes (#295) * fix saving switching to kwargs * fix the description on plugin and rmv extra field on save * disable kernel redis saving * add allowed keys * upd defaults for greenfield deployments * add enhancements to fact memory * upd get_fact and disable optional filters * Updated version --------- Co-authored-by: Bionic711 <nadoyle@microsoft.com> Co-authored-by: Paul Lizer <paullizer@microsoft.com> * fix global apim settings issues (#296) Co-authored-by: Bionic711 <nadoyle@microsoft.com> * Explicit api-versions (#297) * fix global apim settings issues * add explicit per agent/kernel apiversion --------- Co-authored-by: Bionic711 <nadoyle@microsoft.com> * Update functions_documents.py * updated requests to 2.32.4 * moved pandas to function_document * Development (#321) * Support for custom environment (#235) (#240) Co-authored-by: adu103 <adu103@users.noreply.github.com> Co-authored-by: Alex Unger (Dev Advocate) <alexunger@microsoft.com> * Fix code snippet readability in Dark Mode (#239) * Initial plan for issue * Add dark mode styling for code blocks Co-authored-by: paullizer <34814295+paullizer@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: paullizer <34814295+paullizer@users.noreply.github.com> * Fix dark mode file link contrast in chat messages (#241) * Initial plan for issue * Fix dark mode file link contrast by using white text on green background Co-authored-by: paullizer <34814295+paullizer@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: paullizer <34814295+paullizer@users.noreply.github.com> * update version to 0.215.001 * Admin Setting - Use Local File for Document Intelligence Testing (#245) * Initial plan for issue * Update Document Intelligence test to use local file Co-authored-by: paullizer <34814295+paullizer@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: paullizer <34814295+paullizer@users.noreply.github.com> * Redis (#251) * adding ui to admin page for redis settings * removing APIM from redis * updates so data being saved in cosmos correct and test button working * Session data is correctly being stored in redis * update test redis button * Have the extra fields for redis auth type now working correctly * finished support for managed identities for redis cache * update readme for redis * fixed issue with redis not working with scaled app and managed indentities --------- Co-authored-by: Eldon Gormsen <Eldon.Gormsen@microsoft.com> Co-authored-by: Paul Lizer <paullizer@microsoft.com> * Changing Base Image to reduce CVEs (#266) * Update Dockerfile * Update docker_image_publish_dev.yml * Update Dockerfile to harden * Update Dockerfile Changed back to 3.12-slim * Update Dockerfile to remove libaom * Update Dockerfile Changed base to chainguard * Update docker_image_publish_dev.yml Changed image branches to trigger * Update Dockerfile Changed base to latest * Update Dockerfile removing the installs * Update Dockerfile adding latest-dev layer * Update Dockerfile remove flask * Update Dockerfile Changing EntryPoint * Update Dockerfile Using venv * Update app.py Updating app.run to use 0.0.0.0 * Update Dockerfile Giving User write access to image dir * Update Dockerfile Fixing to support chown without distro * Update Dockerfile update EXPOSE comment * add appinsights logger and function * fix improperly nested function * rmv duplicate function * add appinsights lib * fix version decl * improved logger options * Update chats.css (#272) Fix word wrap to move word to next line in chat * Infra deployer gunger (#232) * deployers update cleaning up code files for commit. * add deployer options readme.md add deployer options readme.md * Notes cleanup Notes cleanup * One Touch Deploy * update to one touch deploy links update to one touch deploy links * OneTouch updates OneTouch updates * One Touch Deploy changes One Touch Deploy changes * Update README.md * update to json template update to json template * Update README.md * Update README.md * Update README.md * Update README.md * Update OneTouchDeploy.md * Update OneTouchDeploy.md * Changed name of one touch to one click Changed name of one touch to one click * update to bicep * update to registry setting that differs by platform * update to variables to make it compatible with Azure Commercial update to variables to make it compatible with Azure Commercial * Update README.md * document bulk loader first checkin * database seeder first checkin * db seeder updates * updates to external api * bulk uploader changes bulk uploader changes * bulk loader related cleanup bulk loader related cleanup * bulk document loader changes bulk document loader changes * bulk loader updates bulk loader updates * Update main.py * Update main.py Bulk loader changes * Update route_external_group_documents.py External api changes * database seeder changes database seeder changes * database seeder updates database seeder updates * database seeder updates database seeder updates * Update admin_settings.json --------- Co-authored-by: Greg Unger <117244765+gregunger_microsoft@users.noreply.github.com> Co-authored-by: Paul Lizer <paullizer@microsoft.com> * Support using Azure File Share for temp files (#264) Co-authored-by: Eldon Gormsen <Eldon.Gormsen@microsoft.com> * Update test_document.pdf * upate pipeline * init semantic kernel commit * bug fix for fact memory * fix for sk * disable kernel redis saving * trying to trigger a deploy that works (old code still showing after several builds) * add comments for partial deployment * rmv app.run settings * add back * adding imports back * upd get facts * add log analytics plugin base * init of combined plugin logic * add docs for agents/plugins * add always populate addfields and metadata * fix bug with walkthrough * fix copilot found bugs * fix bug in plugin updater * add LAW default global agent * fix LAW global setting * fix for admin settings --------- Co-authored-by: Paul Lizer <paullizer@microsoft.com> Co-authored-by: adu103 <adu103@users.noreply.github.com> Co-authored-by: Alex Unger (Dev Advocate) <alexunger@microsoft.com> Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com> Co-authored-by: paullizer <34814295+paullizer@users.noreply.github.com> Co-authored-by: eldong <eldon@sixarrows.net> Co-authored-by: Eldon Gormsen <Eldon.Gormsen@microsoft.com> Co-authored-by: Aaron Barth <aaronba@users.noreply.github.com> Co-authored-by: Greg <78557883+gregunger-microsoft@users.noreply.github.com> Co-authored-by: Greg Unger <117244765+gregunger_microsoft@users.noreply.github.com> Co-authored-by: Bionic711 <nadoyle@microsoft.com> * fix issue with group user search (#323) Co-authored-by: Bionic711 <nadoyle@microsoft.com> * Added FAQ on external users * Adding support for adding Azure Front Door to SimpleChat (#338) * Update config.py to add Login Redirect URL env setting * Update functions_authentication.py Adding Auth code for redirect * Update docker_image_publish_dev.yml * Adding another environment variable for HOME_REDIRECT_URL * Adding logging for HOME_REDIRECT_URL logic and LOGIN_REDIRECT_URL logic * Update docker_image_publish_dev.yml Updating GH Actions trigger branch * Update config.py to handle the Non- Front Door condition better * Update docker_image_publish_dev.yml * Adding support for /logout * Update docker_image_publish_dev.yml Quick update for the merge * Initial plan * Add admin-configurable HOME_REDIRECT_URL and LOGIN_REDIRECT_URL settings Co-authored-by: aaronba <5930919+aaronba@users.noreply.github.com> * Move Authentication & Redirect Settings to Scale tab as requested Co-authored-by: aaronba <5930919+aaronba@users.noreply.github.com> * Update docker_image_publish_dev.yml Updating GH Actions trigger branch * Update docker_image_publish_dev.yml Updating GH Actions trigger branch to Development --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: aaronba <5930919+aaronba@users.noreply.github.com> * Add agent selector on chat tab (#339) * fix issue with group user search * add test claims * init agent chat selector * adds simple agent mode --------- Co-authored-by: Bionic711 <nadoyle@microsoft.com> * Public workspace (#347) * fixed fetch model using regex and pandas instead of pd * Added public workspace * Update config.py * Update * Pub workspace detail row, edit metadata, and extract metadata * public workspace * public directory * Tied public workspace to chat * Save public workspace visibility to user settings * public workspace chat sends to chat page * create list of visible public workspaces * Updated public directory UI * correct agents_common.js location * init admin fine-grained agents/plugins control (#348) * fix issue with group user search * add test claims * init agent chat selector * adds simple agent mode * fix workspace to use new modal + update modal plugins to select * revert to app auth * init admin fine control over workspaces * Update application/single_app/static/js/admin/admin_settings.js Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update application/single_app/route_backend_plugins.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update application/single_app/route_backend_plugins.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update application/single_app/route_backend_plugins.py fix incorrect logic in validation Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Bionic711 <nadoyle@microsoft.com> Co-authored-by: Paul Lizer <paullizer@microsoft.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * File sharing for personal workspaces (#352) * fixed public workspace file processing and updated index jsons * add extract metadata to process_ functions * removed unused functions that live in functions_documents.py * spacing * updated search_groups function description * added search support for public workspace * cleaned up spacing in function_settings.py * added support for public workspaces * added support for public workspace * added support for file sharing * added file sharing to admin settings * file sharing functional * Update config.py * enable file sharing * Shared files require approval by receiver * Fixes for agents and preperation (#355) * fix issue with group user search * add test claims * init agent chat selector * adds simple agent mode * fix workspace to use new modal + update modal plugins to select * revert to app auth * init admin fine control over workspaces * Update application/single_app/static/js/admin/admin_settings.js Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update application/single_app/route_backend_plugins.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update application/single_app/route_backend_plugins.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update application/single_app/route_backend_plugins.py fix incorrect logic in validation Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * add missing decorator * upd to unified logic and fix global agent bug * fix for errors workspace agents * upd namespace for module * add modal error clear * add logging to loader * rmv forced deployment * add logging for loader * fix loader logging * change alert to toast Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * add missing import calls --------- Co-authored-by: Bionic711 <nadoyle@microsoft.com> Co-authored-by: Paul Lizer <paullizer@microsoft.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * fixed bug with table width shifting in workspace * fixed bug with tabular data not working correctly in chat * Various Bug Fixes (#356) * fix issue with group user search * add test claims * init agent chat selector * adds simple agent mode * fix workspace to use new modal + update modal plugins to select * revert to app auth * init admin fine control over workspaces * Update application/single_app/static/js/admin/admin_settings.js Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update application/single_app/route_backend_plugins.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update application/single_app/route_backend_plugins.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update application/single_app/route_backend_plugins.py fix incorrect logic in validation Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * add missing decorator * upd to unified logic and fix global agent bug * fix for errors workspace agents * upd namespace for module * add modal error clear * add logging to loader * rmv forced deployment * add logging for loader * fix loader logging * change alert to toast Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * add missing import calls * rmc extra "" and fix unintended call into obj * upd alert in showAgentModalError * fix gpt deployment name processing * rmv deprecated plugins_to_load * fix showtoast --------- Co-authored-by: Bionic711 <nadoyle@microsoft.com> Co-authored-by: Paul Lizer <paullizer@microsoft.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Fixes in the loader and resolver (#357) * fix issue with group user search * add test claims * init agent chat selector * adds simple agent mode * fix workspace to use new modal + update modal plugins to select * revert to app auth * init admin fine control over workspaces * Update application/single_app/static/js/admin/admin_settings.js Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update application/single_app/route_backend_plugins.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update application/single_app/route_backend_plugins.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update application/single_app/route_backend_plugins.py fix incorrect logic in validation Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * add missing decorator * upd to unified logic and fix global agent bug * fix for errors workspace agents * upd namespace for module * add modal error clear * add logging to loader * rmv forced deployment * add logging for loader * fix loader logging * change alert to toast Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * add missing import calls * rmc extra "" and fix unintended call into obj * upd alert in showAgentModalError * fix gpt deployment name processing * rmv deprecated plugins_to_load * fix showtoast * fix for loader * fix resolver --------- Co-authored-by: Bionic711 <nadoyle@microsoft.com> Co-authored-by: Paul Lizer <paullizer@microsoft.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update docker_image_publish_dev.yml Updating branches to trigger from Development branch (#361) * File sharing, Left Hand Nav Bar, and Chat Page UI Updates (#362) * fixed public workspace file processing and updated index jsons * add extract metadata to process_ functions * removed unused functions that live in functions_documents.py * spacing * updated search_groups function description * added search support for public workspace * cleaned up spacing in function_settings.py * added support for public workspaces * added support for public workspace * added support for file sharing * added file sharing to admin settings * file sharing functional * Update config.py * enable file sharing * Shared files require approval by receiver * Added ability to deny file share at the approval/deny pop up modal * added group file share * Adding group search for files that are shared * fixed table row alignment bug * Added Go to Group Workspace button in Manage Group page * fixed drop down double chevron bug * Update config.py * public workspaces functional in chats * updated chat api to support modifying the top_n value, defaults to 12 goal is more so to support agents calling the chat model and providing more documents. * replaced manually upload, now area with auto upload * Updated public workspace upload workflow * cleaned up the prompt tab in the workspaces * Simplified UI for action buttons * Support public workspace upload * side nav bar * top and side nav bar * Nav bar work * side bar nav ui issues * side bar and top nav updates * better support for mobile * Updated my account menu * side nav bar supports conversations * side bar nav with conversation management * Updated chat page input and buttons * Added Left Nav to Appearence tab in Admin Settings * Updated Message Input UI, Logo * Light mode and dark mode logo support * Conversations working in both top nav and side bar * Added External Links (#365) 🔗 Feature: External Links Navigation System 📋 Overview Added a comprehensive External Links management system to allow administrators to add custom navigation links to external resources. This feature provides a flexible way to integrate external tools, policies, documentation, and other resources directly into the SimpleChat navigation interface. ✨ Key Features Admin Configuration ✅ Enable/Disable Toggle: Administrators can enable or disable external links in navigation ✅ Custom Menu Name: Configurable menu title (defaults to "External Links") ✅ Force Menu Display: Option to always show as dropdown vs. smart display logic ✅ Dynamic Link Management: Add, edit, and delete external links with validation Smart Navigation Display 🎯 Adaptive UI Logic: 1-2 links + Force Menu OFF: Shows as individual top-level navigation items 3+ links OR Force Menu ON: Shows as dropdown menu with custom name 🔄 Dual Navigation Support: Works in both top navigation and sidebar layouts 🛡️ Security: All external links open in new tabs with rel="noopener noreferrer" * Fixed Banner with new side bar (#366) * Profile image (#368) * profile image * Improve profile image loading speed. * Conversation metadata update (#370) * Conversation metadata * Updated with Human Readable format fields * Adding back dotenv() support (#374) * Message metadata (#379) * Added message metadata * Updated the layout and UI * Resolved group name not showing up bug * Added Conversation Detail button to title * Updated classification color in conversation metadata ui * updated conversation context logic * Message load response * Opening source and info in messages will now stay in place * Fixed bug that was performing duplicative actions on document upload Thank you Joshua! Co-Authored-By: Xeelee33 <7408261+xeelee33@users.noreply.github.com> * Updated default classification to None Co-Authored-By: Xeelee33 <7408261+xeelee33@users.noreply.github.com> --------- Co-authored-by: Xeelee33 <7408261+xeelee33@users.noreply.github.com> * System font (#380) * Updated to use system ui fonts Co-Authored-By: Xeelee33 <7408261+xeelee33@users.noreply.github.com> * Replaced user GUID with user name in feedback and safety Co-Authored-By: Xeelee33 <7408261+xeelee33@users.noreply.github.com> --------- Co-authored-by: Xeelee33 <7408261+xeelee33@users.noreply.github.com> * fixed bug with public workspace access Co-Authored-By: Xeelee33 <7408261+xeelee33@users.noreply.github.com> * Change to CosmosClientConnection and deploy-simplechat.ps1 (#381) * Updated deploy-simplechat script to get it working, added some code to the cosmos api to fix a breaking issue * generalized code, cleanup * file cleanup --------- Co-authored-by: Joe Tindale <joseti@microsoft.com> * fixed image error (#382) Co-authored-by: Xeelee33 <7408261+xeelee33@users.noreply.github.com> * Fix sk crash when enabling agents (#383) * Update .gitignore * Fix bug when deleting personal agent * Public workspace bulk file upload (#389) * deployers update cleaning up code files for commit. * add deployer options readme.md add deployer options readme.md * Notes cleanup Notes cleanup * Support for custom environment (#235) (#240) Co-authored-by: adu103 <adu103@users.noreply.github.com> Co-authored-by: Alex Unger (Dev Advocate) <alexunger@microsoft.com> * Fix code snippet readability in Dark Mode (#239) * Initial plan for issue * Add dark mode styling for code blocks Co-authored-by: paullizer <34814295+paullizer@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: paullizer <34814295+paullizer@users.noreply.github.com> * Fix dark mode file link contrast in chat messages (#241) * Initial plan for issue * Fix dark mode file link contrast by using white text on green background Co-authored-by: paullizer <34814295+paullizer@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: paullizer <34814295+paullizer@users.noreply.github.com> * update version to 0.215.001 * Admin Setting - Use Local File for Document Intelligence Testing (#245) * Initial plan for issue * Update Document Intelligence test to use local file Co-authored-by: paullizer <34814295+paullizer@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: paullizer <34814295+paullizer@users.noreply.github.com> * One Touch Deploy * update to one touch deploy links update to one touch deploy links * OneTouch updates OneTouch updates * One Touch Deploy changes One Touch Deploy changes * Redis (#251) * adding ui to admin page for redis settings * removing APIM from redis * updates so data being saved in cosmos correct and test button working * Session data is correctly being stored in redis * update test redis button * Have the extra fields for redis auth type now working correctly * finished support for managed identities for redis cache * update readme for redis * fixed issue with redis not working with scaled app and managed indentities --------- Co-authored-by: Eldon Gormsen <Eldon.Gormsen@microsoft.com> Co-authored-by: Paul Lizer <paullizer@microsoft.com> * Update README.md * update to json template update to json template * Update README.md * Update README.md * Update README.md * Update README.md * Update OneTouchDeploy.md * Update OneTouchDeploy.md * Changed name of one touch to one click Changed name of one touch to one click * update to bicep * update to registry setting that differs by platform * update to variables to make it compatible with Azure Commercial update to variables to make it compatible with Azure Commercial * Update README.md * document bulk loader first checkin * database seeder first checkin * db seeder updates * Changing Base Image to reduce CVEs (#266) * Update Dockerfile * Update docker_image_publish_dev.yml * Update Dockerfile to harden * Update Dockerfile Changed back to 3.12-slim * Update Dockerfile to remove libaom * Update Dockerfile Changed base to chainguard * Update docker_image_publish_dev.yml Changed image branches to trigger * Update Dockerfile Changed base to latest * Update Dockerfile removing the installs * Update Dockerfile adding latest-dev layer * Update Dockerfile remove flask * Update Dockerfile Changing EntryPoint * Update Dockerfile Using venv * Update app.py Updating app.run to use 0.0.0.0 * Update Dockerfile Giving User write access to image dir * Update Dockerfile Fixing to support chown without distro * Update Dockerfile update EXPOSE comment * updates to external api * bulk uploader changes bulk uploader changes * bulk loader related cleanup bulk loader related cleanup * bulk document loader changes bulk document loader changes * bulk loader updates bulk loader updates * Update main.py * Update main.py Bulk loader changes * Update route_external_group_documents.py External api changes * database seeder changes database seeder changes * database seeder updates database seeder updates * database seeder updates database seeder updates * Update admin_settings.json * Update chats.css (#272) Fix word wrap to move word to next line in chat * Multiple updates and fixes to Azure CLI deployer Multiple updates and fixes to Azure CLI deployer * Update destroy-simplechat.ps1 Updating logic to destroy script. * Update docker_image_publish_dev.yml * Updated deploy-simplechat script to get it working, added some code to the cosmos api to fix a breaking issue * generalized code, cleanup * file cleanup * changes to support public upload * changes to support bulk upload * comment out user_claims code * updates for public doc upload * reverting back to Development files * reverting to Development files * fixed csv public workspace upload * updating readme files * updates to bulk file upload * added support for app insights telemetry --------- Co-authored-by: Greg Unger <117244765+gregunger_microsoft@users.noreply.github.com> Co-authored-by: Paul Lizer <paullizer@microsoft.com> Co-authored-by: adu103 <adu103@users.noreply.github.com> Co-authored-by: Alex Unger (Dev Advocate) <alexunger@microsoft.com> Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com> Co-authored-by: paullizer <34814295+paullizer@users.noreply.github.com> Co-authored-by: eldong <eldon@sixarrows.net> Co-authored-by: Eldon Gormsen <Eldon.Gormsen@microsoft.com> Co-authored-by: Aaron Barth <aaronba@users.noreply.github.com> Co-authored-by: Joe Tindale <joseti@microsoft.com> * Agents and actions (#405) * Plugins -> Actions, added more Actions * Updated modal for OpenAPI * sql plugin idea * Update .gitignore * Added SQL plugin * updated plugin modal * Update to app insights * Actions (aka plugins) are working, added SQL * Added agent citation support * Functional openapi action * Updated OpenAPI model to only support file upload * openai bug fixes * openapi functional * Update update_version.instructions.md * Update config.py * logging * plugin logging working with sql * Update logged_plugin_loader.py * Support for all plugins * Update route_backend_chats.py * Update config.py * Added citation for agents * bug fix * fix bug with document selection in chats * fixed citation bug * Updated logging * updated logging and sk loads when agent enabled * Dynamic function creation for apis * Fixed bug to collect model instead of agent name in convo metadata * updated the stepper function to work in workspaces and admin settings * func tests, global/personal agent reliability, fix citation bugs Provided functional tests, improved reliability between global and personal agents, fixed citation bugs, added conversation id to conversation metadata, added agent model, updated response message naming * Fix metadata loading bug * Documentation: Refactor (#406) * Add new images and documentation for Simple Chat setup and infrastructure - Added various images for UI and functionality demonstrations. - Created 'infrastructure_as_code.md' for infrastructure setup guidance. - Added 'setup_instructions.md' detailing deployment options and instructions. - Introduced 'setup_instructions_special.md' for special deployment scenarios including Azure Government configurations and Managed Identity usage. - Updated documentation to enhance clarity and usability for developers. * Update README setup instructions and remove obsolete infrastructure documentation * Fix TOC anchors: README and application_workflows.md --------- Co-authored-by: Steve Carroll <Stephen.Carroll@microsoft.com> * Improvements to Terraform deployment process (#400) * Delete logfile.log * Removed external these are pending release and will show up in next version. * Update route_external_health.py * Adding health check * Added health check feature * updating app.py, removed external * Updated to v0.215.36 * Update app.py * v0.215.37 * v0.215.37 * Update app.py (#359) * Update app.py Super tactical fix to allow ChainGuard container to start * updated to v0.215.38 --------- Co-authored-by: Paul Lizer <paullizer@microsoft.com> * Update README.md * Refactor devcontainer.json to update feature sources and enhance VS Code customizations * Added powershell script to configure Base dependencies. * remove tfvars files from solution * fix: set authentication requirements for app * fix: redirect to correct auth provider * fix: add alternate auth endpoint * fix: corrected image name in app * fix: use managed identity for image retrevial * fix: upate app docker registry server to dynamic config * Documentation updates for deployment with Terraform * removed unused variable from powershell script. * fix: enable shared access key for Azure Storage Account --------- Co-authored-by: Paul Lizer <paullizer@microsoft.com> Co-authored-by: Paul Lizer <paul.lizer@live.com> Co-authored-by: Aaron Barth <aaronba@users.noreply.github.com> Co-authored-by: Steve Carroll <Stephen.Carroll@microsoft.com> * Bugfix/govcloud document intelligence, ai search, content safety managed identity authentication (#388) * Add support for govt and custom search resource manager, update document intelligence, ai search, and content safety client initialization for govt and custom environments * Fix Azure Document Intelligence operation via managed identity authentication for government and custom environments by adding base64 encoding support for document uploads, which is required by current GA document intelligence API version (2024-11-30) * Fix Azure AI services (content safety, document intelligence, search) managed identity integration for government and custom environments. Consolidated Document Intelligence calls to use same module and API and added base64 document uploads in Document Intelligence API, required by most current API GA version (2024-11-30). * Update README.md to correct Managed Identity role requirements for Azure services * Add support for govt and custom search resource manager, update document intelligence, ai search, and content safety client initialization for govt and custom environments * Fix Azure Document Intelligence operation via managed identity authentication for government and custom environments by adding base64 encoding support for document uploads, which is required by current GA document intelligence API version (2024-11-30) * Fix Azure AI services (content safety, document intelligence, search) managed identity integration for government and custom environments. Consolidated Document Intelligence calls to use same module and API and added base64 document uploads in Document Intelligence API, required by most current API GA version (2024-11-30). * Update README.md to correct Managed Identity role requirements for Azure services * added search_client_public to managed identity auth flow --------- Co-authored-by: Joshua Wilshere <joshua.wilshere@oig.dhs.gov> Co-authored-by: Paul Lizer <paullizer@microsoft.com> * Feature/code highlighting (#363) * Delete logfile.log * Removed external these are pending release and will show up in next version. * Update route_external_health.py * Adding health check * Added health check feature * updating app.py, removed external * Updated to v0.215.36 * Update app.py * v0.215.37 * v0.215.37 * Update app.py (#359) * Update app.py Super tactical fix to allow ChainGuard container to start * updated to v0.215.38 --------- Co-authored-by: Paul Lizer <paullizer@microsoft.com> * Update README.md * Feature - added code highlighting in code blocks returned by the GPT model using Prism (www.prismjs.com) with themes for light and dark mode. Also made adjustments to <pre> and <pre><code> css to try and prevent double scrolls bars when code blocks overflow available space in chat box. --------- Co-authored-by: Paul Lizer <paullizer@microsoft.com> Co-authored-by: Paul Lizer <paul.lizer@live.com> Co-authored-by: Aaron Barth <aaronba@users.noreply.github.com> * Bugfix - MAG Video Indexer API & Tweak to Speech Service Defaults (#344) * Delete logfile.log * Removed external these are pending release and will show up in next version. * Update route_external_health.py * Adding health check * Added health check feature * updating app.py, removed external * Updated to v0.215.36 * Update app.py * v0.215.37 * v0.215.37 * updated so video indexer api default changes based on public/government cloud and is not read-only in the admin settings, removed hardcoded commercial speech_service_endpoint and speech_service_location * added placeholder for speech_service_endpoint to show default endpoint format based on location and cloud type * added reminders to save pending changes before fetching GPT models in admin settings * Added process to delete videos from VI service when deleted from front end/blob/cosmos. Includes adding the file's video indexer ID to the file metadata in cosmos. * Added unmerged files from Development branch --------- Co-authored-by: Paul Lizer <paullizer@microsoft.com> Co-authored-by: Paul Lizer <paul.lizer@live.com> * Agents and actions modal updates (#411) * Development (#409) * Documentation: Refactor (#406) * Add new images and documentation for Simple Chat setup and infrastructure - Added various images for UI and functionality demonstrations. - Created 'infrastructure_as_code.md' for infrastructure setup guidance. - Added 'setup_instructions.md' detailing deployment options and instructions. - Introduced 'setup_instructions_special.md' for special deployment scenarios including Azure Government configurations and Managed Identity usage. - Updated documentation to enhance clarity and usability for developers. * Update README setup instructions and remove obsolete infrastructure documentation * Fix TOC anchors: README and application_workflows.md --------- Co-authored-by: Steve Carroll <Stephen.Carroll@microsoft.com> * Improvements to Terraform deployment process (#400) * Delete logfile.log * Removed external these are pending release and will show up in next version. * Update route_external_health.py * Adding health check * Added health check feature * updating app.py, removed external * Updated to v0.215.36 * Update app.py * v0.215.37 * v0.215.37 * Update app.py (#359) * Update app.py Super tactical fix to allow ChainGuard container to start * updated to v0.215.38 --------- Co-authored-by: Paul Lizer <paullizer@microsoft.com> * Update README.md * Refactor devcontainer.json to update feature sources and enhance VS Code customizations * Added powershell script to configure Base dependencies. * remove tfvars files from solution * fix: set authentication requirements for app * fix: redirect to correct auth provider * fix: add alternate auth endpoint * fix: corrected image name in app * fix: use managed identity for image retrevial * fix: upate app docker registry server to dynamic config * Documentation updates for deployment with Terraform * removed unused variable from powershell script. * fix: enable shared access key for Azure Storage Account --------- Co-authored-by: Paul Lizer <paullizer@microsoft.com> Co-authored-by: Paul Lizer <paul.lizer@live.com> Co-authored-by: Aaron Barth <aaronba@users.noreply.github.com> Co-authored-by: Steve Carroll <Stephen.Carroll@microsoft.com> * Bugfix/govcloud document intelligence, ai search, content safety managed identity authentication (#388) * Add support for govt and custom search resource manager, update document intelligence, ai search, and content safety client initialization for govt and custom environments * Fix Azure Document Intelligence operation via managed identity authentication for government and custom environments by adding base64 encoding support for document uploads, which is required by current GA document intelligence API version (2024-11-30) * Fix Azure AI services (content safety, document intelligence, search) managed identity integration for government and custom environments. Consolidated Document Intelligence calls to use same module and API and added base64 document uploads in Document Intelligence API, required by most current API GA version (2024-11-30). * Update README.md to correct Managed Identity role requirements for Azure services * Add support for govt and custom search resource manager, update document intelligence, ai search, and content safety client initialization for govt and custom environments * Fix Azure Document Intelligence operation via managed identity authentication for government and custom environments by adding base64 encoding support for document uploads, which is required by current GA document intelligence API version (2024-11-30) * Fix Azure AI services (content safety, document intelligence, search) managed identity integration for government and custom environments. Consolidated Document Intelligence calls to use same module and API and added base64 document uploads in Document Intelligence API, required by most current API GA version (2024-11-30). * Update README.md to correct Managed Identity role requirements for Azure services * added search_client_public to managed identity auth flow --------- Co-authored-by: Joshua Wilshere <joshua.wilshere@oig.dhs.gov> Co-authored-by: Paul Lizer <paullizer@microsoft.com> * Feature/code highlighting (#363) * Delete logfile.log * Removed external these are pending release and will show up in next version. * Update route_external_health.py * Adding health check * Added health check feature * updating app.py, removed external * Updated to v0.215.36 * Update app.py * v0.215.37 * v0.215.37 * Update app.py (#359) * Update app.py Super tactical fix to allow ChainGuard container to start * updated to v0.215.38 --------- Co-authored-by: Paul Lizer <paullizer@microsoft.com> * Update README.md * Feature - added code highlighting in code blocks returned by the GPT model using Prism (www.prismjs.com) with themes for light and dark mode. Also made adjustments to <pre> and <pre><code> css to try and prevent double scrolls bars when code blocks overflow available space in chat box. --------- Co-authored-by: Paul Lizer <paullizer@microsoft.com> Co-authored-by: Paul Lizer <paul.lizer@live.com> Co-authored-by: Aaron Barth <aaronba@users.noreply.github.com> * Bugfix - MAG Video Indexer API & Tweak to Speech Service Defaults (#344) * Delete logfile.log * Removed external these are pending release and will show up in next version. * Update route_external_health.py * Adding health check * Added health check feature * updating app.py, removed external * Updated to v0.215.36 * Update app.py * v0.215.37 * v0.215.37 * updated so video indexer api default changes based on public/government cloud and is not read-only in the admin settings, removed hardcoded commercial speech_service_endpoint and speech_service_location * added placeholder for speech_service_endpoint to show default endpoint format based on location and cloud type * added reminders to save pending changes before fetching GPT models in admin settings * Added process to delete videos from VI service when deleted from front end/blob/cosmos. Includes adding the file's video indexer ID to the file metadata in cosmos. * Added unmerged files from Development branch --------- Co-authored-by: Paul Lizer <paullizer@microsoft.com> Co-authored-by: Paul Lizer <paul.lizer@live.com> --------- Co-authored-by: SteveCInVA <37545884+SteveCInVA@users.noreply.github.com> Co-authored-by: Steve Carroll <Stephen.Carroll@microsoft.com> Co-authored-by: Aaron Barth <aaronba@users.noreply.github.com> Co-authored-by: Xeelee33 <Xeelee33@users.noreply.github.com> Co-authored-by: Joshua Wilshere <joshua.wilshere@oig.dhs.gov> * Improved New Action workflow * fixed global agent / action loading bug --------- Co-authored-by: SteveCInVA <37545884+SteveCInVA@users.noreply.github.com> Co-authored-by: Steve Carroll <Stephen.Carroll@microsoft.com> Co-authored-by: Aaron Barth <aaronba@users.noreply.github.com> Co-authored-by: Xeelee33 <Xeelee33@users.noreply.github.com> Co-authored-by: Joshua Wilshere <joshua.wilshere@oig.dhs.gov> * Bugfix - removed references to deleted files from app.py (#410) Co-authored-by: Paul Lizer <paullizer@microsoft.com> * Feature - Added Managed Identity authentication option to Enhanced Citations Storage Account Admin Setting (#412) Bugfix 1 - Removed duplicate logo_version setting Bugfix 2 - Fixed Video Indexer settings in Admin Settings Setup Walkthrough so that API Key is optional since Video Indexer requires ARM authentication now instead of API Key auth * Agents and actions modal updates (#413) * Development (#409) * Documentation: Refactor (#406) * Add new images and documentation for Simple Chat setup and infrastructure - Added various images for UI and functionality demonstrations. - Created 'infrastructure_as_code.md' for infrastructure setup guidance. - Added 'setup_instructions.md' detailing deployment options and instructions. - Introduced 'setup_instructions_special.md' for special deployment scenarios including Azure Government configurations and Managed Identity usage. - Updated documentation to enhance clarity and usability for developers. * Update README setup instructions and remove obsolete infrastructure documentation * Fix TOC anchors: README and application_workflows.md --------- Co-authored-by: Steve Carroll <Stephen.Carroll@microsoft.com> * Improvements to Terraform deployment process (#400) * Delete logfile.log * Removed external these are pending release and will show up in next version. * Update route_external_health.py * Adding health check * Added health check feature * updating app.py, removed external * Updated to v0.215.36 * Update app.py * v0.215.37 * v0.215.37 * Update app.py (#359) * Update app.py Super tactical fix to allow ChainGuard container to start * updated to v0.215.38 --------- Co-authored-by: Paul Lizer <paullizer@microsoft.com> * Update README.md * Refactor devcontainer.json to update feature sources and enhance VS Code customizations * Added powershell script to configure Base dependencies. * remove tfvars files from solution * fix: set authentication requirements for app * fix: redirect to correct auth provider * fix: add alternate auth endpoint * fix: corrected image name in app * fix: use managed identity for image retrevial * fix: upate app docker registry server to dynamic config * Documentation updates for deployment with Terraform * removed unused variable from powershell script. * fix: enable shared access key for Azure Storage Account --------- Co-authored-by: Paul Lizer <paullizer@microsoft.com> Co-authored-by: Paul Lizer <paul.lizer@live.com> Co-authored-by: Aaron Barth <aaronba@users.noreply.github.com> Co-authored-by: Steve Carroll <Stephen.Carroll@microsoft.com> * Bugfix/govcloud document intelligence, ai search, content safety managed identity authentication (#388) * Add support for govt and custom search resource manager, update document intelligence, ai search, and content safety client initialization for govt and custom environments * Fix Azure Document Intelligence operation via managed identity authentication for government and custom environments by adding base64 encoding support for document uploads, which is required by current GA document intelligence API version (2024-11-30) * Fix Azure AI services (content safety, document intelligence, search) managed identity integration for government and custom environments. Consolidated Document Intelligence calls to use same module and API and added base64 document uploads in Document Intelligence API, required by most current API GA version (2024-11-30). * Update README.md to correct Managed Identity role requirements for Azure services * Add support for govt and custom search resource manager, update document intelligence, ai search, and content safety client initialization for govt and custom environments * Fix Azure Document Intelligence operation via managed identity authentication for government and custom environments by adding base64 encoding support for document uploads, which is required by current GA document intelligence API version (2024-11-30) * Fix Azure AI services (content safety, document intelligence, search) managed identity integration for government and custom environments. Consolidated Document Intelligence calls to use same module and API and added base64 document uploads in Document Intelligence API, required by most current API GA version (2024-11-30). * Update README.md to correct Managed Identity role requirements for Azure services * added search_client_public to managed identity auth flow --------- Co-authored-by: Joshua Wilshere <joshua.wilshere@oig.dhs.gov> Co-authored-by: Paul Lizer <paullizer@microsoft.com> * Feature/code highlighting (#363) * Delete logfile.log * Removed external these are pending release and will show up in next version. * Update route_external_health.py * Adding health check * Added health check feature * updating app.py, removed external * Updated to v0.215.36 * Update app.py * v0.215.37 * v0.215.37 * Update app.py (#359) * Update app.py Super tactical fix to allow ChainGuard container to start * updated to v0.215.38 --------- Co-authored-by: Paul Lizer <paullizer@microsoft.com> * Update README.md * Feature - added code highlighting in code blocks returned by the GPT model using Prism (www.prismjs.com) with themes for light and dark mode. Also made adjustments to <pre> and <pre><code> css to try and prevent double scrolls bars when code blocks overflow available space in chat box. --------- Co-authored-by: Paul Lizer <paullizer@microsoft.com> Co-authored-by: Paul Lizer <paul.lizer@live.com> Co-authored-by: Aaron Barth <aaronba@users.noreply.github.com> * Bugfix - MAG Video Indexer API & Tweak to Speech Service Defaults (#344) * Delete logfile.log * Removed external these are pending release and will show up in next version. * Update route_external_health.py * Adding health check * Added health check feature * updating app.py, removed external * Updated to v0.215.36 * Update app.py * v0.215.37 * v0.215.37 * updated so video indexer api default changes based on public/government cloud and is not read-only in the admin settings, removed hardcoded commercial speech_service_endpoint and speech_service_location * added placeholder for speech_service_endpoint to show default endpoint format based on location and cloud type * added reminders to save pending changes before fetching GPT models in admin settings * Added process to delete videos from VI service when deleted from front end/blob/cosmos. Includes adding the file's video indexer ID to the file metadata in cosmos. * Added unmerged files from Development branch --------- Co-authored-by: Paul Lizer <paullizer@microsoft.com> Co-authored-by: Paul Lizer <paul.lizer@live.com> --------- Co-authored-by: SteveCInVA <37545884+SteveCInVA@users.noreply.github.com> Co-authored-by: Steve Carroll <Stephen.Carroll@microsoft.com> Co-authored-by: Aaron Barth <aaronba@users.noreply.github.com> Co-authored-by: Xeelee33 <Xeelee33@users.noreply.github.com> Co-authored-by: Joshua Wilshere <joshua.wilshere@oig.dhs.gov> * Improved New Action workflow * fixed global agent / action loading bug * Fixed upload bug * Fixed file upload bug and tabular data in chat * Adding fix markdowns, functional tests, bug fix for tabular data in convos --------- Co-authored-by: SteveCInVA <37545884+SteveCInVA@users.noreply.github.com> Co-authored-by: Steve Carroll <Stephen.Carroll@microsoft.com> Co-authored-by: Aaron Barth <aaronba@users.noreply.github.com> Co-authored-by: Xeelee33 <Xeelee33@users.noreply.github.com> Co-authored-by: Joshua Wilshere <joshua.wilshere@oig.dhs.gov> * Support gpt 1 image (#415) * initial * GPT-image-1, image gen support! * Agent Fixes (#417) * upd workflow * fix for longest agent name * rmv min-width to fix scaling issues on smaller reslutions * add hiding the custom connection toggle on agents * add bp to prevent overlap of floating submit * chg logic to use class * chg id to prevent multiple agents of same name/user * chg logging * mov init of app back to app.py * fix other_settings not set * fix custom connection not working in workspace * rmv deprecated button * fix for custom connection toggle and population * fix agent id generation * upd import logic * fix global agents init * fix for multiple requests * add func to window * rmv git --------- Co-authored-by: Bionic711 <nadoyle@microsoft.com> * Updates to Terraform deployment (#416) * Fix: Terraform updates to keyvault for deprecated rbac_auth setting, removed shared key access to storage. * Fix: configure semantic search for search service * sync new index structures to terraform deployment * remove unused files * Updated front door integration, included config guide (#418) * Updated front door integration, included config guide * Update _front_door_info.html * -bing, +index creation, +fix when agent disabled, moved func tests (#420) * Better http plugin support, limits content to 75k chas or 37.5k tokens (#421) * enhanced citation for pdf, images, video, and audio (#422) * Plugin Bug Fixes (#423) * upd workflow * fix for longest agent name * rmv min-width to fix scaling issues on smaller reslutions * add hiding the custom connection toggle on agents * add bp to prevent overlap of floating submit * chg logic to use class * chg id to prevent multiple agents of same name/user * chg logging * mov init of app back to app.py * fix other_settings not set * fix custom connection not working in workspace * rmv deprecated button * fix for custom connection toggle and population * fix agent id generation * upd import logic * fix global agents init * fix for multiple requests * add func to window * rmv git * fix loader logic * upd validators * fix UI ops * fix backend failing valid plugins * rmv print from js * rmv window.print intercept --------- Co-authored-by: Bionic711 <nadoyle@microsoft.com> * check file size before upload (#425) * Side bar title fix (#426) * added citation support for smart http plugin (#427) * Fixes to DBX, Queue, and Blob discovery (#429) * upd workflow * fix for longest agent name * rmv min-width to fix scaling issues on smaller reslutions * add hiding the custom connection toggle on agents * add bp to prevent overlap of floating submit * chg logic to use class * chg id to prevent multiple agents of same name/user * chg logging * mov init of app back to app.py * fix other_settings not set * fix custom connection not working in workspace * rmv deprecated button * fix for custom connection toggle and population * fix agent id generation * upd import logic * fix global agents init * fix for multiple requests * add func to window * rmv git * fix loader logic * upd validators * fix UI ops * fix backend failing valid plugins * rmv print from js * rmv window.print intercept * fixes for plugin discovery --------- Co-authored-by: Bionic711 <nadoyle@microsoft.com> * Debug (#430) * added debug support * better support for very large pdfs via urls with agents * Update config.py * Update README.md * Added features and fixes documentation --------- Co-authored-by: Bionic711 <ndoyle001@gmail.com> Co-authored-by: adu103 <adu103@users.noreply.github.com> Co-authored-by: Alex Unger (Dev Advocate) <alexunger@microsoft.com> Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com> Co-authored-by: eldong <eldon@sixarrows.net> Co-authored-by: Eldon Gormsen <Eldon.Gormsen@microsoft.com> Co-authored-by: Aaron Barth <aaronba@users.noreply.github.com> Co-authored-by: Greg <78557883+gregunger-microsoft@users.noreply.github.com> Co-authored-by: Greg Unger <117244765+gregunger_microsoft@users.noreply.github.com> Co-authored-by: Bionic711 <nadoyle@microsoft.com> Co-authored-by: aaronba <5930919+aaronba@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Xeelee33 <7408261+xeelee33@users.noreply.github.com> Co-authored-by: Joe <joe.tindale@microsoft.com> Co-authored-by: Joe Tindale <joseti@microsoft.com> Co-authored-by: SteveCInVA <37545884+SteveCInVA@users.noreply.github.com> Co-authored-by: Steve Carroll <Stephen.Carroll@microsoft.com> Co-authored-by: Xeelee33 <Xeelee33@users.noreply.github.com> Co-authored-by: Joshua Wilshere <joshua.wilshere@oig.dhs.gov>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Updated the Document Intelligence, Content Safety, and AI Search client initialization and usage to authenticate successfully using Managed Identity instead of Key-based authentication in Government and Custom cloud contexts.
Document Intelligence and Content Safety
Credential Scope
Document Intelligence and Content Safety client initialization in Government or other custom clouds requires the use of a custom credential scope that must be specified. Reference: https://learn.microsoft.com/en-us/azure/developer/python/sdk/azure-sdk-sovereign-domain#using-pre-defined-sovereign-cloud-constants.
The Government credential scope for Cognitive Services is
https://cognitiveservices.azure.us/.default
. Reference: https://learn.microsoft.com/en-us/azure/search/retrieval-augmented-generation-overview?tabs=docs#example-code-for-a-rag-workflow.Document Intelligence Module and API Version
In the current code, the document intelligence client is created either the Document Intelligence Client from the azure-ai-documentintelligence package (most current) if using APIM or Managed Identity or the Document Analysis Client from the azure-ai-formrecognizer package, which only supports API versions up to 2023-10-31. When attempting to connect to Document Intelligence via the azure-ai-documentintelligence package (at least in Government cloud) the API version defaults to 2023-07-30-preview and throws an error, as that API version was never available in Gov cloud. Instead, the officially documented generally available API version of 2024-11-30 needs to be specified in the client creation.
Ensuring the client is being consistently created with the correct version leads to another issue - the 2024-11-30 API version of Document Intelligence requires files to be sent in JSON, IO[bytes] or AnalyzeDocumentRequest. Additionally, it does not accept keyword arguments like the earlier versions do. Since I assume the code works as written in commercial for the DocumentIntelligenceClient I changed the key-based auth client to DocumentIntelligence for all clouds so it uses the same package/API regardless of authentication method. It might be worth updating the DI code for commercial to comply with the most current GA version as well, but I don't have access to a Commercial tenant to test changes.
Content Safety RBAC
If the app's managed identity is set to
Cognitive Services Contributor
as currently specified, testing the service throws the errorThe Built-in Role that has the
"Microsoft.CognitiveServices/accounts/ContentSafety/*"
underdataActions
is Azure AI Developer. Testing proved that this role allows the app to authenticate to the service and perform the necessary actions.AI Search
AI Search appears to authenticate via managed identity similarly to Video Indexer in that it acquires a token from a specific resource manager (aka audience) and then sends an API request using the token. The AI Search audience/resource manager for Government cloud is
https://search.azure.us
. Documentation for specifying audience in the client creation: https://learn.microsoft.com/en-us/azure/search/keyless-connections?tabs=python%2Cazure-cli#update-source-code-to-use-defaultazurecredentialAI Search RBAC
Because the app's managed identity needs sufficient access to obtain a token from ARM the app's identity needs the Contributor role on the service. In order for the Search Python SDK to perform actions on the indexes, the app service's identity must also be assigned the
Search Index Data Contributor
role. There may be lesser or custom roles able to do this, but the combination of these two roles is what finally worked in my tests.AI Search Connection Test
The _test_azure_ai_search_connection function had code for creating a ContentSafety client instead of the Search client, so I updated the function with code for to create a Search client instead.
Video Indexer RBAC README
I neglected to update the README with the required role for Managed Identity authentication in my other pull request with the actual code changes to get MI to work in Government cloud, so rectifying that here.
Pictures
Document Intelligence
Before

After

Content Safety
Before

After

AI Search
Before

After
