Skip to content

[Search] Add 2026-11-01 support - #34277

Merged
mansoor sarfraz (msarfraz) merged 12 commits into
Azure:devfrom
yangylu91:feature-search-2026-11-01
Nov 24, 2026
Merged

mansoor sarfraz (msarfraz) merged 12 commits into
Azure:devfrom
yangylu91:feature-search-2026-11-01

Conversation

@yangylu91

@yangylu91 Yangyang Lu (yangylu91) commented Oct 26, 2026 •

Copy link
Copy Markdown
Member

🤖 PR Validation — ️✔️ All clear

Breaking Changes Tests Suppressions
️✔️ None ️✔️ 130/130 ️✔️ None

Related command
az search service create/update/show/list/delete/upgrade/wait, az search usage list, and the other az search subgroups that use the management API

Description
Updates az search to the GA Microsoft.Search management API version 2026-11-01.

  • Bumps the generated AAZ commands (service, usage) from 2026-03-01-preview to 2026-11-01.
  • Sets the default api_version in _client_factory.py to 2026-11-01, so the legacy (SDK-based) commands use it.
  • Adds knowledgeRetrieval to the service upgrade and service wait output. It is a response property only, and --knowledge-retrieval on create/update is unchanged.
  • Removes serviceLevelEncryptionKey, which is not in the GA API (intentionally removed by the service team while its shape is reconsidered). It only existed in the preview API.
  • Removes the serviceLevelEncryptionKey test and its recording.
  • az search offering list stays on 2026-03-01-preview because the Offerings API is not in the GA API.
  • Moves the test_service_update* and test_shared_private_link_resource_crud tests to eastus2euap, because Canary only serves 2026-11-01 in EUAP regions until the rollout completes.

AAZ PR: Azure/aaz#1137

Testing Guide
azdev test search. All 23 Search test recordings that run in CI were re-recorded live against 2026-11-01 on the Canary ARM endpoint (https://eastus2euap.management.azure.com), and they replay successfully. Two tests are skipped (admin key and query key).

test_shared_private_link_resource_crud creates a storage account, so it was recorded in a subscription without the Wave3 storage policies (Azure Search Test Public EUAP). Subscription IDs are scrubbed from the recording.

azdev linter search and azdev style search pass.

History Notes
[Search] az search service create/update: Add support for API version 2026-11-01
[Search] BREAKING CHANGE: az search service create/update: Remove the serviceLevelEncryptionKey option of --encryption-with-cmk, which is not part of the GA API


This PR checklist:

  • The PR title and History Notes follow the guidelines
  • I adhere to the Command Guidelines and Error Handling Guidelines
  • Test recordings re-recorded against a live 2026-11-01 endpoint (all tests that run in CI)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@a0x1ab

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

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

Re-recorded live on Canary (eastus2euap). Moved update/SPL tests to eastus2euap, as westus/westcentralus do not yet serve 2026-11-01. test_shared_private_link_resource_crud not re-recorded: storage Wave3 policy blocks the test storage account.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@a0x1ab

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

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

@yangylu91
Yangyang Lu (yangylu91) marked this pull request as ready for review November 2, 2026 18:30
Copilot AI balanced review requested due to automatic review settings November 2, 2026 18:30
@yangylu91

Yangyang Lu (yangylu91) commented Nov 2, 2026 •

Copy link
Copy Markdown
Member Author

Update: resolved. The previously failing test_shared_private_link_resource_crud (which caused the 3 failing Full Test jobs) is fixed in d9c7ae7, and CI is now fully green.

Cause (for the record): the test creates a throwaway storage account, which our original test subscription's Wave3 policies (StorageAccountsRestrictNetworkAccess and StorageAccountsDisablePublicNetworkAccess) deny, so it could not be re-recorded there. This was not a code regression.

Fix: I re-recorded the test live on 2026-11-01 against the Canary ARM endpoint, in a subscription that doesn't enforce those two policies. No policy exemption was needed, and the recording is real, not hand-patched or skipped. Subscription IDs are scrubbed, and all Search tests replay successfully.

All Search recordings that run in CI are now on 2026-11-01. The only exception is search offering list, which stays on 2026-03-01-preview on purpose. The admin key and query key tests are skipped as before.

Ready for review. The aaz PR is Azure/aaz#1137.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Service compatibility across generated and legacy SDK-backed commands still requires live endpoint validation, refreshed scenario recordings, and passing playback tests.

No open issues 🎉

What changed in this PR

Updates Azure CLI’s az search management commands to the 2026-11-01 GA API, while keeping az search offering list on the preview API.

Changes:

  • Updates generated command API versions and the legacy SDK client’s default version.
  • Aligns service schemas with GA: removes the preview-only serviceLevelEncryptionKey option and adds knowledgeRetrieval to upgrade and wait responses.
  • Moves selected scenarios to eastus2euap and removes the retired encryption-key test and recording.

Live re-recording remains pending service rollout, as documented in the draft PR.

Paths are relative to src/azure-cli/azure/cli/command_modules/search/.

File Description
tests/​latest/​test_shared_private_link_resource.py Moves the shared private-link scenario to eastus2euap.
tests/​latest/​test_service.py Updates test regions and removes the retired encryption-key scenario.
tests/​latest/​recordings/​test_service_update_service_level_encryption_key.yaml Deletes the retired scenario’s recording.
aaz/​latest/​search/​usage/​_show.py Uses the GA API for usage details.
aaz/​latest/​search/​usage/​_list.py Uses the GA API for usage listing.
aaz/​latest/​search/​service/​shared_private_link_resource/​_wait.py Uses the GA API for shared private-link polling.
aaz/​latest/​search/​service/​shared_private_link_resource/​_update.py Uses the GA API for shared private-link updates.
aaz/​latest/​search/​service/​shared_private_link_resource/​_show.py Uses the GA API for shared private-link details.
aaz/​latest/​search/​service/​shared_private_link_resource/​_list.py Uses the GA API for shared private-link listing.
aaz/​latest/​search/​service/​shared_private_link_resource/​_delete.py Uses the GA API for shared private-link deletion.
aaz/​latest/​search/​service/​shared_private_link_resource/​_create.py Uses the GA API for shared private-link creation.
aaz/​latest/​search/​service/​query_key/​_list.py Uses the GA API for query-key listing.
aaz/​latest/​search/​service/​query_key/​_delete.py Uses the GA API for query-key deletion.
aaz/​latest/​search/​service/​query_key/​_create.py Uses the GA API for query-key creation.
aaz/​latest/​search/​service/​private_link_resource/​_list.py Uses the GA API for private-link resource listing.
aaz/​latest/​search/​service/​private_endpoint_connection/​_update.py Uses the GA API for private endpoint connection updates.
aaz/​latest/​search/​service/​private_endpoint_connection/​_show.py Uses the GA API for private endpoint connection details.
aaz/​latest/​search/​service/​private_endpoint_connection/​_list.py Uses the GA API for private endpoint connection listing.
aaz/​latest/​search/​service/​private_endpoint_connection/​_delete.py Uses the GA API for private endpoint connection deletion.
aaz/​latest/​search/​service/​network_security_perimeter_configuration/​_show.py Uses the GA API for perimeter configuration details.
aaz/​latest/​search/​service/​network_security_perimeter_configuration/​_reconcile.py Uses the GA API for perimeter reconciliation.
aaz/​latest/​search/​service/​network_security_perimeter_configuration/​_list.py Uses the GA API for perimeter configuration listing.
aaz/​latest/​search/​service/​admin_key/​_regenerate.py Uses the GA API for admin-key regeneration.
aaz/​latest/​search/​service/​admin_key/​_list.py Uses the GA API for admin-key listing.
aaz/​latest/​search/​service/​_wait.py Updates API and response schema, including knowledgeRetrieval.
aaz/​latest/​search/​service/​_upgrade.py Updates API and response schema, including knowledgeRetrieval.
aaz/​latest/​search/​service/​_update.py Updates API and removes preview-only encryption-key handling.
aaz/​latest/​search/​service/​_show.py Updates API and removes the preview-only encryption-key response field.
aaz/​latest/​search/​service/​_list.py Updates both listing scopes and removes the preview-only response field.
aaz/​latest/​search/​service/​_delete.py Uses the GA API for service deletion.
aaz/​latest/​search/​service/​_create.py Updates API and removes preview-only encryption-key handling.
aaz/​latest/​search/​service/​_check_name_availability.py Uses the GA API for name availability checks.
_client_factory.py Sets the legacy SDK client’s default API to 2026-11-01.

Review effort: Balanced

@yonzhan

Copy link
Copy Markdown
Collaborator

Please fix CI issues

…11-01

# Conflicts:
#	src/azure-cli/azure/cli/command_modules/search/tests/latest/recordings/test_service_update_service_level_encryption_key.yaml
@a0x1ab

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

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

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@a0x1ab

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

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

@yangylu91

Copy link
Copy Markdown
Member Author

Please fix CI issues

Hi Yong Zhang (@yonzhan) , thanks for the comment. CI failures have been fixed and all checks now pass. Could you please take another look? Thanks for your time and support!

@naga-nandyala Naga Nandyala (naga-nandyala) added the Request X Engineering Agent Ask the agent to triage this issue or review this PR label Nov 3, 2026
@x-engineering-agent

x-engineering-agent Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

X Engineering Agent Pull request review: Comments

Yangyang Lu (@yangylu91) CI passed, but regression coverage for the 2026-11-01 migration is not verified. The inspected source explicitly rejects the removed service-level encryption-key input and adds knowledge-retrieval response mappings; no semantic defect was confirmed in this bounded inspection.

Check Status Detail
Upstream CI Passed 3/3 checks passed in the supplied snapshot.
Agent live tests Not run This is a review-only PR.
Regression coverage Unverified For search: 3 focused test file(s) and 22 recording file(s) changed.
Risk Risk 71/100 High High; owner review required
Review details

Upstream CI

3/3 checks passed in the supplied snapshot.

Test validation

  • Agent live test: Not run; this is a review-only PR. Check author-provided test evidence and upstream CI separately.
  • Regression coverage: For search: 3 focused test file(s) and 22 recording file(s) changed. Scenario coverage is unverified; review the issue's required conditions, test setup, and assertions before approval. No linked issue was found in the PR timeline; inspect the source issue and its required scenario manually.

Changed API-version requests and knowledgeRetrieval response deserialization make recording fidelity important. In src/azure-cli/azure/cli/command_modules/search/tests/latest/test_service.py, test_service_knowledge_retrieval asserts the free-to-standard transition and waits on properties.knowledgeRetrieval. Its corresponding recording is src/azure-cli/azure/cli/command_modules/search/tests/latest/recordings/test_service_knowledge_retrieval.yaml; replay that focused scenario to verify request/response correspondence.

The new upgrade response mapping is not exercised by the three changed test files. Suggested focused verification: run az search service upgrade against an upgrade-eligible service with knowledge retrieval configured and assert that the returned knowledgeRetrieval field survives deserialization. If covered by a replayed ScenarioTest, capture and replay its recording. The rejection unit tests in src/azure-cli/azure/cli/command_modules/search/tests/latest/test_service_level_encryption_key.py are separate from service-backed recording evidence.

Inspection limits

The Reviewer read all 34 non-recording changed files, including generated diffs, but did not exhaustively inspect the 22 recording changes under src/azure-cli/azure/cli/command_modules/search/tests/latest/recordings/. Durable AAZ generation inputs, matching REST specifications, minimum SDK/profile compatibility and complete deprecation evidence remain unverified. The contract pass returned no confirmed findings; the runtime pass did not complete on either attempt. This is not a full compatibility sign-off.

Risk assessment

71/100 · High

The High rating is driven by security-sensitive behavior, public CLI behavior, generated output.

  • Change scope: 56 changed files, 43948 changed lines (+34351 / -9597), including 31 production files.
  • Affected components: search
  • Risk drivers: security-sensitive behavior (+28); public CLI behavior (+18); generated output (+12)
  • Regression evidence: Changed regression tests are included, reducing risk.
  • Confidence: High because changed-line patches were available for every production file.
  • Required review: Owning-squad review is required for search before merge.

Ask the Agent

Tick a box to queue an action. Requires write access to this repository.

  • Re-review this PR
  • Run Agent live tests on this PR

X Engineering Agent · Reviewer · React with +1 or -1 to train the agent

x-engineering-agent[bot]

This comment was marked as outdated.

@x-engineering-agent x-engineering-agent Bot added the X Engineering Agent Reviewed Agent reviewed this PR label Nov 3, 2026
@yangylu91

Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Commenter does not have sufficient privileges for PR 34277 in repo Azure/azure-cli

@a0x1ab

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

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

@yonzhan

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

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

@msarfraz

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

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

@yangylu91

Copy link
Copy Markdown
Member Author

Synced offline with the Azure CLI reviewers -- Mansoor Sarfraz and Ethan Yang:

Next steps:

  1. Record the production deployment and the ARM manifest rollout confirmation before merging.
  2. Merge this CLI PR [Search] Add 2026-11-01 support #34277 and its aaz PR Aaz files for Search 2026-11-01 support aaz#1137 together before 11/24 (next code-complete due).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@naga-nandyala

Copy link
Copy Markdown
Contributor

Moving this out of Ignite (Nov 16th release)

@a0x1ab

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

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

@x-engineering-agent x-engineering-agent Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review comments are inline on the changed lines. See the X Engineering Agent Report.

@yangylu91

Copy link
Copy Markdown
Member Author

ARM manifest rollout has completed globally for Search mgmt-plane 2026-11-01 GA.

az search service wait returns the unflattened resource, so the JMESPath condition must target properties.knowledgeRetrieval. Trim the recording to the single wait poll that now satisfies the condition.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: dec98ff9-d134-4d6c-a0c6-2e48a04b07e2
@yangylu91

Copy link
Copy Markdown
Member Author

Hi mansoor sarfraz (@msarfraz) , ARM manifest of Search RP 2026-11-01 has been rolled out. Could you pls take another look at this PR and approve it if everything looks good?
We are targeting the December milestone with code-complete due on 11/24. Thank you very much!

@a0x1ab

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

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

@yonzhan
Yong Zhang (yonzhan) requested a review from a team November 23, 2026 22:02

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-approving at 6303b67. Tests pass and the merge with dev is clean.

Yangyang Lu (yangylu91) added a commit to yangylu91/aaz that referenced this pull request Nov 24, 2026
The identity assign/remove/show subcommands were added automatically by the generator and are not exposed by the companion azure-cli PR (Azure/azure-cli#34277). The searchServices identity schema is unchanged from 2025-05-01, which has no identity subgroup.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: dec98ff9-d134-4d6c-a0c6-2e48a04b07e2
mansoor sarfraz (msarfraz) pushed a commit to Azure/aaz that referenced this pull request Nov 24, 2026
* Aaz files for Search 2026-11-01 support

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Keep 2025-05-01 version entries in Search command docs

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Remove search service identity command group

The identity assign/remove/show subcommands were added automatically by the generator and are not exposed by the companion azure-cli PR (Azure/azure-cli#34277). The searchServices identity schema is unchanged from 2025-05-01, which has no identity subgroup.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: dec98ff9-d134-4d6c-a0c6-2e48a04b07e2

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: dec98ff9-d134-4d6c-a0c6-2e48a04b07e2
@msarfraz
mansoor sarfraz (msarfraz) merged commit ae9fe77 into Azure:dev Nov 24, 2026
55 checks passed
xuming-ms added a commit to azclibot/azure-cli that referenced this pull request Nov 24, 2026
The Azure#34277 change keeps --service-level-encryption-key on az search
service create/update but raises a clear error for API version
2026-11-01 instead of removing the argument. The breaking-change bot
confirmed no breaking change, so drop the [BREAKING CHANGE] tag and
reword the note to describe the actual behavior.
xuming-ms added a commit to azclibot/azure-cli that referenced this pull request Nov 24, 2026
The Azure#34277 change keeps --service-level-encryption-key on az search
service create/update but raises a clear error for API version
2026-11-01 instead of removing the argument. The breaking-change bot
confirmed no breaking change, so drop the [BREAKING CHANGE] tag and
reword the note to describe the actual behavior.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Request X Engineering Agent Ask the agent to triage this issue or review this PR X Engineering Agent Reviewed Agent reviewed this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants