Enhance Azure Government support and live test configurations#2573
Draft
Enhance Azure Government support and live test configurations#2573
Conversation
…onsumption plan for gov cloud compatibility Flex Consumption (FC1) is not available in Azure US Government subscriptions. Replace with a standard Y1/Dynamic consumption plan with reserved=true for Linux, using conventional appSettings including WEBSITE_CONTENTAZUREFILECONNECTIONSTRING, WEBSITE_CONTENTSHARE, FUNCTIONS_WORKER_RUNTIME, WEBSITE_RUN_FROM_PACKAGE, and linuxFxVersion instead of the Flex-specific functionAppConfig block. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…om DeploymentOutputs
…g model names and endpoint suffixes
… endpoint suffix handling and provisioner OID parameter
…2374) * Add Environment to live-test.yml * Clean up AzureCloudConfiguration parsing. * Pass Environment to test * Update Aks VM image * Add Environment to test-resources-post * Fix test code parameter name * Add Environment parameter. * Remove Dogfood type * Fix casing * Remove Azure.Mcp.Server.LiveTests -> They've been consolidated into Azure.Mcp.Core.LiveTests
- Introduced AzureCloud enum to identify target cloud environments in LiveTestSettings. - Updated various tests to skip or adapt based on the Azure cloud type, particularly for US Government and China clouds. - Modified service endpoints and API versions in AppServiceService and other services to ensure compatibility across different Azure clouds. - Refactored location handling in ComputeCommandTests and StorageCommandTests to use dynamic location retrieval. - Added outputs for location in Bicep files for EventHubs and Storage resources.
fed21e2 to
27e6e4d
Compare
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
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.
This pull request introduces significant improvements to the test infrastructure, enabling support for running tests in sovereign Azure clouds (such as AzureUSGovernment) and providing more flexible test selection in CI pipelines. The changes include new pipeline parameters, environment propagation throughout test scripts, and configuration updates to support government cloud testing.
Pipeline and Test Infrastructure Enhancements
GovTestandRunAllLiveTestsboolean parameters to pipeline templates (common.yml,build.yml) and ensured these propagate as variables, enabling selective execution of government cloud tests and all live tests. [1] [2] [3] [4] [5] [6]live-test.yml) to use the correct Azure service connection, set theEnvironmentvariable (AzureCloudorAzureUSGovernment), and pass this through to resource deployment and test scripts. [1] [2] [3] [4] [5]Test Script and Resource Deployment Updates
Deploy-TestResources.ps1,Test-Code.ps1, test resource post scripts) to accept and propagate theEnvironmentparameter, ensuring deployed resources and tests run in the correct cloud context. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12]New-BuildInfo.ps1to respect the new pipeline parameters and adjust which tests run on pull requests. [1] [2]Configuration and Cloud Environment Support
AzureCloudConfiguration.csto prioritize configuration keys and environment variables in a case-insensitive manner.dataLocationproperty to theAzureUSGovernment.jsontest resource configuration file for better environment targeting.Project and Solution File Maintenance
Azure.Mcp.Server.slnxto correctly reference both unit and live test projects.These changes collectively enable robust, environment-aware test execution across multiple Azure clouds, with enhanced control for CI/CD scenarios.