Skip to content

Add sample for manually dispatched routines and update test references#47403

Open
howieleung wants to merge 46 commits into
feature/azure-ai-projects/2.3.0from
howie/sample-12
Open

Add sample for manually dispatched routines and update test references#47403
howieleung wants to merge 46 commits into
feature/azure-ai-projects/2.3.0from
howie/sample-12

Conversation

@howieleung

Copy link
Copy Markdown
Member

Description

Please add an informative description that covers that changes made by the pull request and link all relevant issues.

If an SDK is being regenerated based on a new API spec, a link to the pull request containing these API spec changes should be included above.

All SDK Contribution checklist:

  • The pull request does not introduce [breaking changes]
  • CHANGELOG is updated for new features, bug fixes or other significant changes.
  • I have read the contribution guidelines.

General Guidelines and Best Practices

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

JennyPng and others added 30 commits June 2, 2026 13:43
* tolerant string match

* add auth to conda sync pipeline

* add metadata to transcription, use simple api via azdo bc no pypi access

* refine

* script improvement

* fix

* update pypi client to get uri

* fix

* black

* add more error output to build bc what is happening

* black
* [Transcription] Document locales support in Enhanced Mode

The service now honors locales in Enhanced Mode, using the first locale as a recognition hint while operating multilingually by default. Updates samples, README, and CHANGELOG to document this; adds enhanced-mode-with-locale samples (sync + async).

* Apply suggestions from code review

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* [Transcription] Use preview version 1.0.1b1 and add conda metadata

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Chidozie Ononiwu <chononiw@microsoft.com>
* Reorganize voicelive tests into unit/ and live/ folders, split live tests by scenario, and add lifecycle live tests

- Move unit tests to tests/unit/ and live tests to tests/live/

- Split monolithic live test file into scenario-based modules with shared _live_helpers

- Add lifecycle live tests: response cancel, conversation item delete, input audio buffer clear

- Fix telemetry test signatures and integration test import paths after move

* Fix sphinx docstring RST, type-check errors, and live test helper annotations

- _models.py: fix malformed RST bullet lists in AudioEchoCancellation and ServerEventConversationItemCreated docstrings (sphinx -W failure)

- aio/_patch.py: cast ws_connect result to Any to satisfy mypy/pyright across aiohttp versions

- tests/live/_live_helpers.py: correct _collect_audio_trans_outputs return type to tuple[int, int] and allow Optional event_type in _collect_event

---------

Co-authored-by: Xiting Zhang <xitzhang@microsoft.com>
#47155)

* Configurations:  'specification/sql/resource-manager/Microsoft.Sql/SQL/tspconfig.yaml', API Version: 2025-01-01, SDK Release Type: beta, and CommitSHA: '52f376ac684569106909a4854a792c6ed89a2c61' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6355484 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release.

* Configurations:  'specification/sql/resource-manager/Microsoft.Sql/SQL/tspconfig.yaml', API Version: 2025-01-01, SDK Release Type: beta, and CommitSHA: 'fdc81c4feb633ebcb9a69123298f1f032da4123a' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6362233 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release.

* Configurations:  'specification/sql/resource-manager/Microsoft.Sql/SQL/tspconfig.yaml', API Version: 2025-01-01, SDK Release Type: beta, and CommitSHA: '465402d314b9a9ce96f122c5b10fdf416e7ef727' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6382537 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release.

* update

* Update CHANGELOG.md

---------

Co-authored-by: Chenxi Jiang (WICRESOFT NORTH AMERICA LTD) <v-chenjiang@microsoft.com>
Co-authored-by: ChenxiJiang333 <119990644+ChenxiJiang333@users.noreply.github.com>
* Fix DT operations: URL path, API version, create URL, endpoint resolution, LRO handling, and Index compatibility

- Restclient: use /genericasset/v2.0/ path and 2026-05-01-preview API version (required by DT service)
- Fix create URL: add missing 'deploymenttemplates' segment in request builder
- Fix _get_registry_endpoint: remove recursive self._service_client call, use self._credential directly
- Fix create_or_update: use polling=False to avoid LRO hang, fetch result via get()
- Index operations: override base URL to /genericasset/ and pin api_version=2024-04-01-preview (Index service doesn't support v2.0 path)

* Fix DT type field: always use 'deploymenttemplates' in REST body to match service route validation

* Fix pylint: line-too-long and unused-variable in _deployment_template_operations.py

* Fix black formatting in _index_operations.py
…on-6355472 (#47152)

* Configurations:  'specification/subscription/resource-manager/Microsoft.Subscription/Subscription/tspconfig.yaml', API Version: 2025-11-01-preview, SDK Release Type: beta, and CommitSHA: '54c486c43633d31d1766b3eaf2c2213e15052ce7' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6355472 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release.

* Configurations:  'specification/subscription/resource-manager/Microsoft.Subscription/Subscription/tspconfig.yaml', API Version: 2025-11-01-preview, SDK Release Type: beta, and CommitSHA: '8966e4942153329571a093034f4808cc06b4c9df' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6364183 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release.

* Update dev_requirements.txt

* update

* update

* Redo live tests: only list methods, add async versions

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

* Update and rename test_mgmt_subscription.py to disable_test_mgmt_subscription.py

* Update CHANGELOG.md

---------

Co-authored-by: ChenxiJiang333 <119990644+ChenxiJiang333@users.noreply.github.com>
Co-authored-by: Chenxi Jiang (WICRESOFT NORTH AMERICA LTD) <v-chenjiang@microsoft.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…4185 (#47199)

* Configurations:  'specification/developerhub/resource-manager/Microsoft.DevHub/DeveloperHub/tspconfig.yaml', API Version: 2025-03-01-preview, SDK Release Type: beta, and CommitSHA: '8966e4942153329571a093034f4808cc06b4c9df' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6364185 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release.

* Configurations:  'specification/developerhub/resource-manager/Microsoft.DevHub/DeveloperHub/tspconfig.yaml', API Version: 2025-03-01-preview, SDK Release Type: beta, and CommitSHA: 'a427dd4d108b1fb93340dfeca3994de1c695b53b' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6383205 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release.

* update

* Configurations:  'specification/developerhub/resource-manager/Microsoft.DevHub/DeveloperHub/tspconfig.yaml', API Version: 2025-03-01-preview, SDK Release Type: beta, and CommitSHA: '3b6931791059d206fa05e2244475ed88799c615d' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6388258 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release.

* Update CHANGELOG.md

* Update dev_requirements.txt

---------

Co-authored-by: Chenxi Jiang (WICRESOFT NORTH AMERICA LTD) <v-chenjiang@microsoft.com>
Co-authored-by: ChenxiJiang333 <119990644+ChenxiJiang333@users.noreply.github.com>
…hon-6388462 (#47314)

* Configurations:  'specification/hybridcompute/resource-manager/Microsoft.HybridCompute/HybridCompute/tspconfig.yaml', API Version: 2025-09-16-preview, SDK Release Type: beta, and CommitSHA: 'ecd420c9534d0dab69be38027c1723031504b081' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6388462 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release.

* update

* Update CHANGELOG.md

---------

Co-authored-by: Chenxi Jiang (WICRESOFT NORTH AMERICA LTD) <v-chenjiang@microsoft.com>
Co-authored-by: ChenxiJiang333 <119990644+ChenxiJiang333@users.noreply.github.com>
* Configurations:  'specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsight/tspconfig.yaml', API Version: 2025-01-15-preview, SDK Release Type: beta, and CommitSHA: 'ecd420c9534d0dab69be38027c1723031504b081' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6388310 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release.

* Optimize changelog for azure-mgmt-hdinsight

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

* Add live tests for azure-mgmt-hdinsight

* Update CHANGELOG.md

---------

Co-authored-by: Yuchao Yan <yuchaoyan@microsoft.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Change Analysis deprecation

* Updated wording

* Added required section
* [Storage] Add _version.py for azure-storage-extensions

After PR #47092 added 'packages=[...]' to setup.py, azure-storage-extensions is no longer treated as a metapackage by the version-update tooling (eng/tools/azure-sdk-tools/ci_tools/parsing). The dev-build CI step `sdk_set_dev_version` then walks into it, calls `set_version_py`, fails to locate a `_version.py` / `version.py`, and calls `sys.exit(1)` -- failing the 'Update package versions for dev build' task in the storage-tests pipeline.

Add a conventional `_version.py` under the `azure.storage.extensions.checksums` package and have `setup.py` parse the version from it (matching the pattern used by azure-storage-blob and the other storage SDKs). This keeps the source of truth in one place and lets the dev-version tooling update the version normally.

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

* Update CHANGELOG.md

---------

Co-authored-by: l0lawrence <l0lawrence@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add a top-level 'directory:' key to sdk/discovery/azure-ai-discovery/tsp-location.yaml so eng/common/scripts/Package-Properties.ps1 (Get-PkgProperties) can parse it
Add 18 preview samples covering the 2026-05-01-preview knowledge base and knowledge source scenarios, including sync and async variants for configuration, retrieval response options, service stats, and file, freshness, MCP server, WorkIQ, Fabric ontology, and Fabric data agent sources.

Use visible SDK flows with AzureKeyCredential, SDK model classes for request and resource bodies, snippet tags, docstring usage blocks, shared setup data, and cleanup. Update samples README with the preview sample list.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Updated the release date for version 1.17.0 and clarified breaking changes related to metric reporting.
* Update conda files for 2026.06.01 release

* update recipe maintainers

* fix new pkg names

* storage maintainers update

* version fixes

* conda-forge channel for planetarycomputer deps

* cspell

* cspell again

---------

Co-authored-by: azure-sdk <azuresdk@microsoft.com>
* update doc

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* update

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
* Update App Config To Type Spec Gen

* Fix Patch and updated tests assets

* Code review items

* fixing pylint issue

* review items
…Python-6315044 (#46957)

* Configurations:  'specification/keyvault/data-plane/Certificates/tspconfig.yaml', API Version: 2026-03-01-preview, SDK Release Type: beta, and CommitSHA: '44729a46b902922d8f50a383573f9c6641ce8e74' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6315044 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release.

* Restore handwritten files, add PlatformManaged tests and changelog

* Clean up tests

* Plumb PlatformManaged through CertificatePolicy and bump default API version to 2026-03-01-preview

- Re-export the generated PlatformManaged model from the public package surface.
- Add a platform_managed keyword and property on the handwritten CertificatePolicy
  wrapper and wire it through _to_certificate_policy_bundle and
  _from_certificate_policy_bundle so the value round-trips with the service.
- Skip the SAN-or-subject precondition in begin_create_certificate (sync and async)
  when policy.platform_managed is set: a PlatformManaged policy carries its own
  subject and SAN information in metadata, mirroring the Java and .NET SDKs.
- Bump DEFAULT_VERSION to 2026-03-01-preview, where PlatformManaged is available.
- Update CHANGELOG and add wrapper unit tests plus a sync recorded E2E test for
  the new property.

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

* Update test recordings for 2026-03-01-preview API version

Recordings re-captured against the new default API version and uploaded under
the new asset tag python/keyvault/azure-keyvault-certificates_e9794f1e9b.

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

* Set CHANGELOG release date to 2026-06-04

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

---------

Co-authored-by: Nicholas Noboa <nnoboa@microsoft.com>
Co-authored-by: nnoboa <90611593+nnoboa@users.noreply.github.com>
Co-authored-by: ROHIT SINGHAL <rohitsinghal4u@gmail.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Add live telemetry tests for connect and session.updated tracing

* update

---------

Co-authored-by: Xiting Zhang <xitzhang@microsoft.com>
…Python-6387708 (#47306)

* Configurations:  'specification/containerservice/resource-manager/Microsoft.ContainerService/aks/tspconfig.yaml', API Version: 2026-04-01, SDK Release Type: stable, and CommitSHA: '532545feb236d55064e4fa922f3fa38517857ba8' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6387708 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release.

* update

---------

Co-authored-by: Chenxi Jiang (WICRESOFT NORTH AMERICA LTD) <v-chenjiang@microsoft.com>
* add dep

* update

* bump typespec-python 0.63.0
Renamed to azure-mgmt-artifactsigning. Mark package inactive and release 1.0.1 as the deprecation release.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Deprecate azure-mgmt-deploymentmanager

Azure Deployment Manager is being decommissioned and its REST API specs were deleted (Azure/azure-rest-api-specs#26818). Deprecating the package per the Python SDK deprecation process: no replacement package exists (service retirement, EOL 07-31-2023).

- README.md: replace contents with deprecation disclaimer
- CHANGELOG.md: add 2.0.0b1.post1 deprecation entry
- _version.py: 2.0.0b1 -> 2.0.0b1.post1 (metadata-only post-release)
- sdk_packaging.toml: auto_update = false
- setup.py: Development Status :: 7 - Inactive

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

* Update _version.py

* Update CHANGELOG.md

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Configurations:  'specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/HealthcareApis/tspconfig.yaml', API Version: 2025-04-01-preview, SDK Release Type: beta, and CommitSHA: 'ecd420c9534d0dab69be38027c1723031504b081' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6388311 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release.

* Optimize changelog for azure-mgmt-healthcareapis

* Add live tests for azure-mgmt-healthcareapis

---------

Co-authored-by: Yuchao Yan <yuchaoyan@microsoft.com>
…on-6392701 (#47335)

* Configurations:  'specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/tspconfig.yaml', API Version: 2025-07-01, SDK Release Type: beta, and CommitSHA: '8a445c8e94982f9e959ef242e34e43a20d7488f0' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6392701 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release.

* update

* Configurations:  'specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/tspconfig.yaml', API Version: 2025-07-01, SDK Release Type: beta, and CommitSHA: '7e11f1d3a9faa5218d13de6fa2e8362e763aceb5' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6393543 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release.

* Configurations:  'specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/tspconfig.yaml', API Version: 2025-07-01, SDK Release Type: beta, and CommitSHA: 'efcac4df1ba355ac1f695aeb65378eacf052357c' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6393697 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release.

* Fix CHANGELOG optimization: correct Rule 9 format and consolidate deleted models

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

* Update CHANGELOG.md

---------

Co-authored-by: Chenxi Jiang (WICRESOFT NORTH AMERICA LTD) <v-chenjiang@microsoft.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: ChenxiJiang333 <119990644+ChenxiJiang333@users.noreply.github.com>
* ci: Use tracking issue with PR compare link in regenerate workflow

The default GITHUB_TOKEN cannot create pull requests in this repository, so the regenerate workflow's gh pr create step fails. Instead, after pushing the regen/typespec-python branch, create or update a tracking issue containing a pre-filled compare link (base: typespec-python-generated-tests) that a maintainer clicks to open the PR manually. Mirrors the approach from #46623.

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

* new source branch name

* update

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* ci: professionalize do-not-merge note and update sentence in regenerate workflow

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

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
The deprecated azure-mgmt-deploymentmanager package was released as 2.0.0b1.post1/2.0.0b2 (release tag azure-mgmt-deploymentmanager_2.0.0b2). Per the Python SDK deprecation process (Step 5), remove the package source and ci.yml from main, keeping only the package README.md with a note pointing to the release tag and PyPI.

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

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.

Copilot wasn't able to review this pull request because it exceeds the maximum number of files (300). Try reducing the number of changed files and requesting a review from Copilot again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI Projects App Configuration Azure.ApplicationModel.Configuration Communication - Phone Numbers Confidential Ledger Cosmos Evaluation Issues related to the client library for Azure AI Evaluation Event Hubs Hosted Agents sdk/agentserver/* KeyVault Machine Learning Monitor - Distro Monitor OpenTelemetry Distro Monitor - Exporter Monitor OpenTelemetry Exporter Schema Registry Search Service Bus

Projects

Status: Untriaged
Status: Untriaged
Status: No status

Development

Successfully merging this pull request may close these issues.