Repository navigation
test: correct PremiumV2 test subnet delegation - #7608
Merged
Andy Jordan (andyleejordan) merged 1 commit intoNov 24, 2026
Merged
Andy Jordan (andyleejordan) merged 1 commit into
Andy Jordan (andyleejordan) merged 1 commit into
Conversation
azure-verified-modules
Bot
requested review from
Abhishek Arya (abhishekaryams) and
Tony Box (tony-box)
November 11, 2026 17:55
Andy Jordan (andyleejordan)
temporarily deployed
to
avm-validation
November 11, 2026 19:02 — with
GitHub Actions
Inactive
Andy Jordan (andyleejordan)
temporarily deployed
to
avm-validation
November 11, 2026 19:07 — with
GitHub Actions
Inactive
Andy Jordan (andyleejordan)
temporarily deployed
to
avm-validation
November 11, 2026 19:07 — with
GitHub Actions
Inactive
Andy Jordan (andyleejordan)
temporarily deployed
to
avm-validation
November 11, 2026 19:07 — with
GitHub Actions
Inactive
Andy Jordan (andyleejordan)
temporarily deployed
to
avm-validation
November 11, 2026 19:07 — with
GitHub Actions
Inactive
Andy Jordan (andyleejordan)
had a problem deploying
to
avm-validation
November 11, 2026 19:23 — with
GitHub Actions
Failure
Andy Jordan (andyleejordan)
temporarily deployed
to
avm-validation
November 11, 2026 19:50 — with
GitHub Actions
Inactive
Andy Jordan (andyleejordan)
had a problem deploying
to
avm-validation
November 11, 2026 19:51 — with
GitHub Actions
Failure
Andy Jordan (andyleejordan)
enabled auto-merge (squash)
November 11, 2026 21:37
6 of 9 tasks
Andy Jordan (andyleejordan)
marked this pull request as draft
November 12, 2026 00:17
auto-merge was automatically disabled
November 12, 2026 00:17
Pull request was converted to draft
Andy Jordan (andyleejordan)
temporarily deployed
to
avm-validation
November 12, 2026 19:50 — with
GitHub Actions
Inactive
Andy Jordan (andyleejordan)
temporarily deployed
to
avm-validation
November 12, 2026 19:51 — with
GitHub Actions
Inactive
Andy Jordan (andyleejordan)
temporarily deployed
to
avm-validation
November 12, 2026 19:51 — with
GitHub Actions
Inactive
Andy Jordan (andyleejordan)
temporarily deployed
to
avm-validation
November 12, 2026 19:51 — with
GitHub Actions
Inactive
Andy Jordan (andyleejordan)
temporarily deployed
to
avm-validation
November 12, 2026 19:51 — with
GitHub Actions
Inactive
Andy Jordan (andyleejordan)
temporarily deployed
to
avm-validation
November 12, 2026 20:00 — with
GitHub Actions
Inactive
Andy Jordan (andyleejordan)
temporarily deployed
to
avm-validation
November 12, 2026 20:26 — with
GitHub Actions
Inactive
Andy Jordan (andyleejordan)
temporarily deployed
to
avm-validation
November 12, 2026 20:27 — with
GitHub Actions
Inactive
Andy Jordan (andyleejordan)
marked this pull request as ready for review
November 12, 2026 23:43
Alexander Sehr (AlexanderSehr)
approved these changes
Nov 22, 2026
Contributor
|
Hey Andy Jordan (@andyleejordan), please note that one of the require checks is failing. |
Contributor
E2E label requirement satisfiedNo E2E label action is needed for this run. This does not mean validation has passed. |
Delegate both regional v2max subnets to API Management rather than App Service. PremiumV2 outbound integration requires this delegation; Standard v2 still uses Microsoft.Web/serverFarms. Add compiled-template checks for each regional subnet. Both assertions fail on the original fixture and pass with the correction. Production modules and the existing deployment scenarios are unchanged. Drafted by Copilot with GPT-6 Astra. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Andy Jordan (andyleejordan)
force-pushed
the
andyleejordan/api-management-v2-test-subnet
branch
from
November 23, 2026 17:10
50d0cdb to
3a43c77
Compare
Andy Jordan (andyleejordan)
temporarily deployed
to
avm-validation
November 23, 2026 20:40 — with
GitHub Actions
Inactive
Andy Jordan (andyleejordan)
temporarily deployed
to
avm-validation
November 23, 2026 20:41 — with
GitHub Actions
Inactive
Andy Jordan (andyleejordan)
temporarily deployed
to
avm-validation
November 23, 2026 20:41 — with
GitHub Actions
Inactive
Andy Jordan (andyleejordan)
deleted the
andyleejordan/api-management-v2-test-subnet
branch
November 24, 2026 00:02
Andy Jordan (andyleejordan)
added a commit
that referenced
this pull request
Nov 24, 2026
Incorporate #7608, #7644, and #7527 so the kubernetes-configuration extension and API Management PremiumV2 E2E fixtures use allowed SKUs, regions, release trains, and subnet delegations. Drafted by Copilot with Gemini 4 Carbon. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This branch was previously deployed
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.
Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
50d0cdb2e357099a608feb560d0050fe1fe80fc8Description
Fixes #7605.
The
v2maxfixture deploysPremiumV2with external virtual network integration, but both regional subnets were delegated toMicrosoft.Web/serverFarms. The reported deployment failure rejects that delegation and requestsMicrosoft.ApiManagement/service.I corrected the delegation name and
properties.serviceNamein both regional definitions. This is deliberately specific to Premium v2: Microsoft Learn still requiresMicrosoft.Web/serverFarmsfor Standard v2. The new Pester regression compiles the actual dependency fixture and checks each region's default subnet, so fixing only one region cannot pass.Production module behavior, resource names, network rules, and deployment scenarios are unchanged. This does not address #7472's separate portal delegation validation-key failure or #7449's naming work. No module version, generated documentation, or changelog changes are needed for this fixture-only correction.
Pipeline Reference
avm.bicep.json-staleon eight unchanged production templates. Hosted E2E attempt 1 repeats this with Avm.Authoring 0.42.0. The comparator defect is tracked in Azure/azure-verified-modules-tools#353, with fix Azure/azure-verified-modules-tools#354. Both original suites now pass on attempt 2.deploymentValidation=false; both E2E jobs skipped. Nojson-stalefindings remain in either static job.Current PR-linked verification: attempt 2
The full E2E rerun refreshed initialization and loaded Gallery Avm.Authoring 0.44.0 rather than reusing the old prepared runtime. PR-check and unit jobs passed with no
json-staleerrors. Unit artifact13977753289reportsstatus=pass, 12,515 passed cases and 62 warning-only compliance findings (61 near expiry, one outdated). Its archive digest was verified.unitFiles=0means this is not evidence that hosted CI executed the authored regression; the fail-before/pass-after evidence below is local.All seven deployments succeeded, all seven cleanup artifacts uploaded successfully, and all seven archive digests were verified. WAF succeeded after the existing in-place retry handled an Azure
InternalServerError; no additional workflow rerun was needed. Every scenario reportedNo post-deployment tests found, so deployment success is not independent post-deployment assertion coverage.consumptionSku,defaults,developerSku,v2minComplete, 2/2 removed flags truemaxComplete, 72/72 removed flags true13994183202waf-alignedComplete, 31/31 removed flags true13990940781v2maxCleanupPending, 37 removed flags true and 4 false: resource group, VNet, NSG and route table retained because of provider-side network references13983958009The 152 journal flags total 148 true and four false. PremiumV2's remaining cleanup warning did not fail its CI job; I am not describing it as complete cleanup. Purge requests were accepted, not independently observed to finish. No manual Azure recovery was performed or is proposed as a prerequisite to this fixture fix. Historical residuals are deferred to the BAMI-managed test tenant lifecycle, not claimed deleted.
The live PR rollup now contains 30 successful checks and three intentional skips, with zero failed or pending checks. I refreshed the initial title run
43072072397and initial static run43072075256once each, including initialization, to replace their stale failure results. The static initializer loaded Gallery 0.44.0 and explicitly reportedPR_LABELS=[]andDEPLOYMENT=falsefrom its original opened-event payload; both E2E jobs skipped. Its PR-check passed with nojson-staleerrors, and verified unit artifact13995049815reports the same 12,515 passed cases, 62 warning-only findings andunitFiles=0. These two refreshes started no Azure deployment and did not rerun the successful E2E suite. Review approval remains required; no merge was performed.Historical verification and cleanup caveats
The 0.43.0 static-only recheck passed metadata, format, transform, lint, policy, convention, validate, and docs; Terraform-only sync was skipped. Its unit artifact
13948503274reportsstatus=pass, with 12,515 passed cases and 62 warning-level API-version compliance failures (61 near expiry, one outdated), and no error issues. It also reportsunitFiles=0: that run does not prove the authored regression executed. The downloaded archive SHA-256 matches the upload digestfa53ac28e16ae9ce9d4b28b0f158ea901aa60b34caefd9dc7717783243c142ef. That static-only pass neither fixed nor reverified the historical cleanup failures below; it performed no new deployment or Azure recovery.Correction: Earlier status reports overstated post-deployment assertion and cleanup success. A green combined completion step can still log
Cleanup did not complete. The subnet correction has hosted deployment-success evidence, not post-deployment assertion or complete cleanup-success evidence. The PR was placed in draft during that reconciliation; current attempt-2 CI now passes as recorded above. The cleanup-driven E2E, gate-approval, and triggering-push hold was lifted on November 12. This does not resolve historical cleanup failures. No Azure recovery was performed.The following table concerns attempt 1 only; its artifacts must not be confused with the current attempt's evidence.
consumptionSkuComplete; 2/2 removed flags true13885844904defaultsComplete; 2/2 removed flags true13887794883developerSkuComplete; 2/2 removed flags true13888347278v2minComplete; 2/2 removed flags true13889107940maxCleanupPending, 57 removed flags true and 15 false13903171191v2maxwaf-alignedInternalServerError, then APIMServiceLockedCleanupPending, 24 removed flags true and 6 false13891027481All six attempt-1 downloaded archive SHA-256 digests match GitHub metadata. Every available journal removed flag was checked: 89 true and 21 false. The four
Completejournals record resource-group/APIM deletion; their logs show purge accepted with HTTP 202, not observed purge completion. None of the seven scenarios provides evidence of executed passing post-deployment assertions. No live Azure verification was performed.Attempt-1
maxcleanup logs show lock-read HTTP 400, unsupported child-resource DELETE operations, product subscriptions, retained-child guards, and networks still in use.v2maxlogs show lock-read HTTP 400, a logger still attached to diagnostics, parent guards, and network dependencies still in use. Its missing journal is not replaced with a synthesized state file. WAF's final attempt-1 journal has six retained entries; its private endpoint is not among those final false flags. Exact residual scopes, original logs, journals, and digest evidence are retained privately as historical evidence, not an active manual recovery assignment.An earlier automatic module run skipped the module matrix and did not resolve static failures. The explicit static-only recheck cleared the comparator blocker without regenerating production templates; both original PR-linked suites now confirm it with 0.44.0. The corrected title, metadata, Prettier, CodeQL, labels, and CLA checks passed.
Local validation:
bicep format avm/res/api-management/service/tests/e2e/v2max/dependencies.bicepand PowerShellInvoke-Formatter -Settings CodeFormattingOTBSon the new test file; subsequent formatting checks andgit diff --checkpassed.Microsoft.Web/serverFarmsvalue, then passed with the correction. I also removed the fix, verified the fixture matched HEAD, reproduced both failures, restored it, and reran successfully.main.test.bicepscenarios compiled withbicep buildusing Bicep 0.48.1. Existing API-age warnings remain.Set-ModuleReadMeparity test was excluded; no README changes are part of this fix.BicepWorkflowCaller, one historical approval-list check inBicepWorkflowConfiguration, and five nested-Pester empty-ForEach failures inMetadataWorkflow. They are outside this change and were not modified.Type of Change
version.json:version.json.version.json.Checklist
Set-AVMModulelocally to generate the supporting module files.Set-AVMModuleand a changelog entry are not applicable here: no productionmain.bicepor generated module files changed. The warning-free checkbox remains unchecked despite the successful current CI run: PremiumV2 cleanup and API-compliance warnings remain, alongside historical cleanup caveats and unrelated local baseline failures.Drafted by Copilot with GPT-6 Astra.