Skip to content

Fix several live test failures - #3742

Merged
Connie Yau (conniey) merged 15 commits into
mainfrom
conniey/live-test-failures
Oct 20, 2026
Merged

Connie Yau (conniey) merged 15 commits into
mainfrom
conniey/live-test-failures

Conversation

@conniey

@conniey Connie Yau (conniey) commented Sep 21, 2026 •

Copy link
Copy Markdown
Member

What does this PR do?

Improves Azure MCP live-test reliability across multiple toolsets by addressing regional capacity constraints, deployment-template failures, post-deployment script issues, and incorrect test assumptions.

Deployment reliability

  • Dynamically selects subscription-available SKUs for Azure Backup, Compute, Kusto, and Service Fabric test resources.
  • Defaults affected resources to westus2 when the test subscription has no eligible VM SKUs in westus, while preserving explicit location overrides.
  • Keeps Azure Backup vaults and datasources co-located and passes the deployed disk location to Data Protection.
  • Removes the unsupported Managed Lustre availability-zone declaration in westus.
  • Limits Monitor Direct DCR names to the service's 30-character maximum.
  • Removes the redundant generated Compute ARM template so Bicep remains the source of truth.
  • Simplifies the Marketplace test template for compatible Bicep compilation.

Post-deployment setup

  • Fixes Monitor deployment-output lookups for uppercase, case-sensitive OrderedHashtable keys.
  • Updates the IoT Operations post-deployment script to accept the standard test-resource parameters and generate test settings.
  • Improves Marketplace response-deserialization errors by including the target type and response content.

Live-test behavior and coverage

  • Restores AKS resource-group validation and aligns AKS tests with the required parameters.
  • Corrects Function App live-test assertions.
  • Adds negative-path coverage for Azure ISV and Communication commands.
  • Removes unsupported Speech subscription parameters.
  • Migrates Speech live tests to RecordedCommandTestsBase.
  • Verifies that local-only Speech tools are unavailable over HTTP and reports those cases as skipped with an explicit reason instead of failing or silently returning.

GitHub issue number?

Pre-merge Checklist

  • Required for All PRs
    • Read contribution guidelines
    • PR title clearly describes the change
    • Commit history is clean with descriptive messages (cleanup guide)
    • Added comprehensive tests for new/modified functionality
    • Created a changelog entry if the change falls among the following: new feature, bug fix, UI/UX update, breaking change, or updated dependencies. Follow the changelog entry guide
  • For MCP tool changes:
    • One tool per PR: This PR adds or modifies only one MCP tool for faster review cycles
    • Updated servers/Azure.Mcp.Server/README.md and/or servers/Fabric.Mcp.Server/README.md documentation
    • Validate README.md changes running the script ./eng/scripts/Process-PackageReadMe.ps1. See Package README
    • For new or modified tool descriptions, ran ToolDescriptionEvaluator and obtained a score of 0.4 or more and a top 3 ranking for all related test prompts
    • For tools with new names, including new tools or renamed tools, update consolidated-tools.json
    • For renamed tools, follow the Tool Rename Checklist and tag the PR with the breaking-change label
    • For new tools associated with Azure services or publicly available tools/APIs/products, add URL to documentation in the PR description
  • Extra steps for Azure MCP Server tool changes:
    • Updated command list in servers/Azure.Mcp.Server/docs/azmcp-commands.md
    • Ran ./eng/scripts/Update-AzCommandsMetadata.ps1 to update tool metadata in azmcp-commands.md (required for CI)
    • Updated test prompts in servers/Azure.Mcp.Server/docs/e2eTestPrompts.md
    • 👉 For Community (non-Microsoft team member) PRs:
      • Security review: Reviewed code for security vulnerabilities, malicious code, or suspicious activities before running tests (crypto mining, spam, data exfiltration, etc.)
      • Manual tests run: added comment /azp run mcp - pullrequest - live to run Live Test Pipeline

Connie Yau (conniey) added a commit that referenced this pull request Oct 13, 2026
- Kusto test-resources-pre.ps1: Get-AzKustoSku is not a real cmdlet; use
  Get-AzKustoClusterSku (which has no -Location parameter) and filter the
  returned SKUs by the Location list property instead.
- Kusto/AzureBackup/Compute/ServiceFabric test-resources-pre.ps1: bind and
  honor the standard -Location argument (used by New-TestResources.ps1 to
  create the resource group) before falling back to westus2, since it was
  never merged into \.
- AksCommandTests: Should_validate_required_resource_group_parameter (was
  Should_validate_required_subscription_parameter) now passes a cluster
  name without a resource group so it actually reaches AksService's
  resource-group/cluster-name validation, instead of silently taking the
  list branch.
- AzureIsvCommandTests: Should_return_400_when_not_found now queries a
  distinct nonexistent Datadog resource name instead of reusing the
  positive test's real resource, so it actually exercises the not-found
  path.
- FunctionAppCommandTests: Should_handle_empty_subscription_gracefully and
  Should_validate_required_resource_group_parameter (was
  Should_validate_required_subscription_parameter) now pass a function-app
  name without a resource group so they reach FunctionAppService's
  resource-group/function-app-name validation instead of taking the list
  branch.
- Speech: commit the missing assets.json manifest required by
  RecordedCommandTestsBase (content matches the framework's standard
  empty-assets template).
@conniey
Connie Yau (conniey) force-pushed the conniey/live-test-failures branch 2 times, most recently from 2ec5199 to 55d8961 Compare October 13, 2026 18:36
@conniey

Copy link
Copy Markdown
Member Author

/azp run mcp - pullrequest - live

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@conniey
Connie Yau (conniey) force-pushed the conniey/live-test-failures branch 2 times, most recently from dd6d36b to ef00aed Compare October 16, 2026 12:44
Connie Yau (conniey) and others added 15 commits October 20, 2026 11:24
Co-authored-by: Copilot <[email protected]>
Copilot-Session: 176ac409-5580-4f14-befe-11a738a40cd8
…tions

Co-authored-by: Copilot <[email protected]>
Copilot-Session: 176ac409-5580-4f14-befe-11a738a40cd8
Co-authored-by: Copilot <[email protected]>
Copilot-Session: 176ac409-5580-4f14-befe-11a738a40cd8
Co-authored-by: Copilot <[email protected]>
Copilot-Session: 176ac409-5580-4f14-befe-11a738a40cd8
Co-authored-by: Copilot <[email protected]>
Copilot-Session: 176ac409-5580-4f14-befe-11a738a40cd8
Co-authored-by: Copilot <[email protected]>
Copilot-Session: 176ac409-5580-4f14-befe-11a738a40cd8
Co-authored-by: Copilot <[email protected]>
Copilot-Session: 176ac409-5580-4f14-befe-11a738a40cd8
Co-authored-by: Copilot <[email protected]>
Copilot-Session: 176ac409-5580-4f14-befe-11a738a40cd8
Co-authored-by: Copilot <[email protected]>
Copilot-Session: 176ac409-5580-4f14-befe-11a738a40cd8
@conniey
Connie Yau (conniey) enabled auto-merge (squash) October 20, 2026 19:13
@conniey
Connie Yau (conniey) merged commit 351ba4f into main Oct 20, 2026
20 checks passed
@conniey
Connie Yau (conniey) deleted the conniey/live-test-failures branch October 20, 2026 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants