Skip to content

[AutoPR azure-mgmt-fabric]-generated-from-SDK Generation - Python-6671798 - #48489

Open
azure-sdk-automation[bot] wants to merge 4 commits into
mainfrom
sdkauto/azure-mgmt-fabric-6670686
Open

[AutoPR azure-mgmt-fabric]-generated-from-SDK Generation - Python-6671798#48489
azure-sdk-automation[bot] wants to merge 4 commits into
mainfrom
sdkauto/azure-mgmt-fabric-6670686

Conversation

@azure-sdk-automation

@azure-sdk-automation azure-sdk-automation Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Configurations: 'specification/fabric/resource-manager/Microsoft.Fabric/Fabric/tspconfig.yaml', SDK Release Type: beta, and CommitSHA: '2c275e5b4f834495b2dc99c0ed162436f38686bd' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6671798 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. Release plan link: https://azsdk-releaseplan-dashboard-hveph5aqhhcfhtgu.westus-01.azurewebsites.net/?releaseplan=35264 Submitted by: samarths@microsoft.com

Copilot AI balanced review requested due to automatic review settings August 7, 2026 00:24
@azure-sdk-automation azure-sdk-automation Bot added the auto-release When merged to main, release pipelines for this PR's changed packages trigger automatically. label Aug 7, 2026
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
10 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

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.

Pull request overview

Note

Copilot could not run the full agentic suite for this review because it was automatically requested on a bot-authored pull request. Request a review from Copilot under Reviewers to retry with the full agentic suite. Improved support for bot-authored pull requests is coming soon.

Updates the azure-mgmt-fabric Python management SDK generation to a newer Fabric ARM spec (2026-08-01-preview), including packaging modernization and new API surface (e.g., usages listing).

Changes:

  • Switches packaging from setup.py/sdk_packaging.toml to pyproject.toml (PEP 517/621 style) and updates Python support metadata.
  • Regenerates client/operations/models for API version 2026-08-01-preview, adding capacity overage + quota/usages support.
  • Updates generated samples/tests and embedded metadata (api.md, apiview properties, generator metadata).

Reviewed changes

Copilot reviewed 53 out of 53 changed files in this pull request and generated 9 comments.

Show a summary per file
File Description
sdk/fabric/azure-mgmt-fabric/tsp-location.yaml Points codegen to new spec directory + commit.
sdk/fabric/azure-mgmt-fabric/setup.py Removes legacy setuptools setup.py packaging entrypoint.
sdk/fabric/azure-mgmt-fabric/sdk_packaging.toml Removes standalone packaging metadata (moved into pyproject.toml).
sdk/fabric/azure-mgmt-fabric/pyproject.toml Introduces PEP 517 build config + project metadata + packaging table.
sdk/fabric/azure-mgmt-fabric/generated_tests/test_fabric_mgmt_fabric_capacities_operations_async.py Updates request payload shape (overage) + adds list usages test.
sdk/fabric/azure-mgmt-fabric/generated_tests/test_fabric_mgmt_fabric_capacities_operations.py Updates request payload shape (overage) + adds list usages test.
sdk/fabric/azure-mgmt-fabric/generated_samples/operations_list.py Updates x-ms-original-file reference to new API version.
sdk/fabric/azure-mgmt-fabric/generated_samples/fabric_capacities_update.py Updates sample payload for overage + x-ms-original-file reference.
sdk/fabric/azure-mgmt-fabric/generated_samples/fabric_capacities_suspend.py Updates x-ms-original-file reference to new API version.
sdk/fabric/azure-mgmt-fabric/generated_samples/fabric_capacities_resume.py Updates x-ms-original-file reference to new API version.
sdk/fabric/azure-mgmt-fabric/generated_samples/fabric_capacities_list_usages_by_subscription.py Adds new sample for list_usages.
sdk/fabric/azure-mgmt-fabric/generated_samples/fabric_capacities_list_skus_for_capacity.py Updates x-ms-original-file reference to new API version.
sdk/fabric/azure-mgmt-fabric/generated_samples/fabric_capacities_list_skus.py Updates x-ms-original-file reference to new API version.
sdk/fabric/azure-mgmt-fabric/generated_samples/fabric_capacities_list_by_subscription.py Updates x-ms-original-file reference to new API version.
sdk/fabric/azure-mgmt-fabric/generated_samples/fabric_capacities_list_by_resource_group.py Updates x-ms-original-file reference to new API version.
sdk/fabric/azure-mgmt-fabric/generated_samples/fabric_capacities_get.py Updates x-ms-original-file reference to new API version.
sdk/fabric/azure-mgmt-fabric/generated_samples/fabric_capacities_delete.py Updates x-ms-original-file reference to new API version.
sdk/fabric/azure-mgmt-fabric/generated_samples/fabric_capacities_create_or_update.py Updates sample payload for overage + x-ms-original-file reference.
sdk/fabric/azure-mgmt-fabric/generated_samples/fabric_capacities_check_name_availability.py Updates x-ms-original-file reference to new API version.
sdk/fabric/azure-mgmt-fabric/azure/mgmt/fabric/types.py Adds TypedDict request/response type definitions (overage, quota, etc.).
sdk/fabric/azure-mgmt-fabric/azure/mgmt/fabric/operations/_patch.py Updates boilerplate + typing style for patch exports.
sdk/fabric/azure-mgmt-fabric/azure/mgmt/fabric/operations/_operations.py Regenerates sync operations for new API version + adds list_usages.
sdk/fabric/azure-mgmt-fabric/azure/mgmt/fabric/operations/init.py Adjusts import order/type-checking around patch exports.
sdk/fabric/azure-mgmt-fabric/azure/mgmt/fabric/models/_patch.py Updates boilerplate + typing style for patch exports.
sdk/fabric/azure-mgmt-fabric/azure/mgmt/fabric/models/_models.py Regenerates models, adding overage and quota models and updating base model usage.
sdk/fabric/azure-mgmt-fabric/azure/mgmt/fabric/models/_enums.py Adds CapacityOverageState enum and punctuation fixes.
sdk/fabric/azure-mgmt-fabric/azure/mgmt/fabric/models/init.py Updates exported models/enums including new overage/quota types.
sdk/fabric/azure-mgmt-fabric/azure/mgmt/fabric/aio/operations/_patch.py Updates boilerplate + typing style for async patch exports.
sdk/fabric/azure-mgmt-fabric/azure/mgmt/fabric/aio/operations/_operations.py Regenerates async operations for new API version + adds list_usages.
sdk/fabric/azure-mgmt-fabric/azure/mgmt/fabric/aio/operations/init.py Adjusts async operations imports/type-checking around patch exports.
sdk/fabric/azure-mgmt-fabric/azure/mgmt/fabric/aio/_patch.py Updates boilerplate + typing style for async package patch exports.
sdk/fabric/azure-mgmt-fabric/azure/mgmt/fabric/aio/_configuration.py Updates configuration for new API version + introduces cloud setting plumbing.
sdk/fabric/azure-mgmt-fabric/azure/mgmt/fabric/aio/_client.py Updates async client to derive ARM endpoints from cloud settings.
sdk/fabric/azure-mgmt-fabric/azure/mgmt/fabric/aio/init.py Adjusts import order/type-checking around patch exports.
sdk/fabric/azure-mgmt-fabric/azure/mgmt/fabric/_version.py Bumps package version to 1.1.0.
sdk/fabric/azure-mgmt-fabric/azure/mgmt/fabric/_validation.py Adds API-version gating decorator used by newly introduced methods.
sdk/fabric/azure-mgmt-fabric/azure/mgmt/fabric/_utils/init.py Introduces utils package placeholder for regenerated helpers.
sdk/fabric/azure-mgmt-fabric/azure/mgmt/fabric/_serialization.py Refactors serialization/deserialization internals and typing.
sdk/fabric/azure-mgmt-fabric/azure/mgmt/fabric/_patch.py Updates boilerplate + typing style for package patch exports.
sdk/fabric/azure-mgmt-fabric/azure/mgmt/fabric/_model_base.py Significant model base refactor (serialization/deserialization, XML helpers, failsafe deserialization).
sdk/fabric/azure-mgmt-fabric/azure/mgmt/fabric/_configuration.py Updates configuration for new API version + introduces cloud setting plumbing.
sdk/fabric/azure-mgmt-fabric/azure/mgmt/fabric/_client.py Updates sync client to derive ARM endpoints from cloud settings.
sdk/fabric/azure-mgmt-fabric/azure/mgmt/fabric/init.py Adjusts import order/type-checking around patch exports.
sdk/fabric/azure-mgmt-fabric/azure/mgmt/init.py Adds # type: ignore to pkgutil namespace extension.
sdk/fabric/azure-mgmt-fabric/azure/init.py Adds # type: ignore to pkgutil namespace extension.
sdk/fabric/azure-mgmt-fabric/apiview-properties.json Adds cross-language APIView mapping metadata.
sdk/fabric/azure-mgmt-fabric/api.metadata.yml Adds API parser/generator metadata.
sdk/fabric/azure-mgmt-fabric/api.md Adds generated public API surface description.
sdk/fabric/azure-mgmt-fabric/_metadata.json Adds codegen metadata for spec, versions, and emitter.
sdk/fabric/azure-mgmt-fabric/_meta.json Removes legacy codegen metadata file.
sdk/fabric/azure-mgmt-fabric/README.md Updates minimum supported Python version and auth wording.
sdk/fabric/azure-mgmt-fabric/MANIFEST.in Updates sdist include rules (tests/samples + typing marker).
sdk/fabric/azure-mgmt-fabric/CHANGELOG.md Adds 1.1.0 release entry with placeholders/warnings.
Suppressed comments (1)

sdk/fabric/azure-mgmt-fabric/pyproject.toml:1

  • [project].license as a plain string is not PEP 621 compliant for many build backends/tooling (it is generally expected to be a table like license = { text = \"MIT\" } or license = { file = \"LICENSE\" }). This can cause build/metadata validation failures with stricter tooling; consider switching to the table form.

Comment thread sdk/fabric/azure-mgmt-fabric/azure/mgmt/fabric/_configuration.py
Comment thread sdk/fabric/azure-mgmt-fabric/azure/mgmt/fabric/_configuration.py
Comment thread sdk/fabric/azure-mgmt-fabric/azure/mgmt/fabric/_validation.py
Comment thread sdk/fabric/azure-mgmt-fabric/azure/mgmt/fabric/_validation.py
Comment thread sdk/fabric/azure-mgmt-fabric/azure/mgmt/fabric/_validation.py
Comment thread sdk/fabric/azure-mgmt-fabric/azure/mgmt/fabric/_validation.py
Comment thread sdk/fabric/azure-mgmt-fabric/CHANGELOG.md Outdated
Comment thread sdk/fabric/azure-mgmt-fabric/azure/mgmt/fabric/_version.py Outdated
Comment thread sdk/fabric/azure-mgmt-fabric/MANIFEST.in
@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor
[Pilot] PR Pipeline Failure Analysis

A CI pipeline failed on this pull request. Here is an automated analysis of what went wrong and how to get the build green.

What failed

The Verify Changelog task in the public CI pipeline failed for azure-mgmt-fabric. The changelog entry for version 1.1.0 in sdk/fabric/azure-mgmt-fabric/CHANGELOG.md does not contain any of the required sections (Features Added, Breaking Changes, Bugs Fixed, or Other Changes). Additionally, a warning was raised that stable SDK version 1.1.0 is paired with a preview API version (2026-08-01-preview), and the tool could not auto-generate the changelog.

Recommended next steps

  • Update sdk/fabric/azure-mgmt-fabric/CHANGELOG.md to add at least one of the required sections (Features Added, Breaking Changes, Bugs Fixed, or Other Changes) under the ## 1.1.0 (2026-08-07) entry. See https://aka.ms/azsdk/guideline/changelogs for format guidance.
  • Review whether a stable version (1.1.0) is appropriate when the underlying API version is a preview (2026-08-01-preview). If this is intentional, remove the warning line from the changelog. Otherwise, consider releasing as a beta version instead.
  • See the CI troubleshooting guide: https://aka.ms/ci-fix
  • Push new commits to address the failures; this comment updates automatically on the next failing run.
Raw pipeline analysis (azsdk ci analyze)
Analyzing pipeline https://github.com/Azure/azure-sdk-for-python/pull/48489...
--------------------------------------------------------------------------------
Failed Tasks
--------------------------------------------------------------------------------
### Errors:
--> /tmp/log-analysis-af8ba49db0f34fef8ac6ccd884171803.txt:112
2026-08-07T00:43:37.2053898Z Task         : PowerShell
2026-08-07T00:43:38.2336958Z Verifying changelog for azure-mgmt-fabric
2026-08-07T00:43:38.2869257Z Found the following change log entry for version '1.1.0' in [sdk/fabric/azure-mgmt-fabric/CHANGELOG.md].
2026-08-07T00:43:38.2894504Z ## 1.1.0 (2026-08-07)
2026-08-07T00:43:38.2895595Z WARNING: Stable SDK version 1.1.0 is used with preview API version 2026-08-01-preview. If this is expected, delete this line; otherwise, check this PR.
2026-08-07T00:43:38.2896707Z tool can't generate changelog for this release, please update manually.
2026-08-07T00:43:38.2996070Z [debug]Verifying as a release build because the changelog entry has a valid date.
2026-08-07T00:43:38.3488561Z ##[error]The changelog entry did not contain any of the recommended sections (Features Added, Breaking Changes, Bugs Fixed, Other Changes), please add at least one. See https://aka.ms/azsdk/guideline/changelogs for more info.
2026-08-07T00:43:38.4103078Z ##[error]PowerShell exited with code '1'.

### Pipeline: https://dev.azure.com/azure-sdk/public/_build/results?buildId=6670690

Copilot detected the failing pipeline and generated the analysis above. To have it attempt a fix automatically, reply with @copilot please fix the failing pipeline on this PR.

Generated by Pipeline Analysis - Next Steps · 19.1 AIC · ⌖ 6.22 AIC · ⊞ 6.6K ·

@ChenxiJiang333

ChenxiJiang333 commented Aug 7, 2026

Copy link
Copy Markdown
Member

Hi @samarths-msft, the package is configured as stable (version 1.1.0 with is_stable = true), but the target API version is 2026-08-01-preview. Stable packages should target a non-preview API version. Could you provide context on whether this mismatch is intentional?

@samarths-msft

Samarth Shah (samarths-msft) commented Aug 7, 2026

Copy link
Copy Markdown
Member

Hi @samarths-msft, the package is configured as stable (version 1.1.0 with is_stable = true), but the target API version is 2026-08-01-preview. Stable packages should target a non-preview API version. Could you provide context on whether this mismatch is intentional?

ChenxiJiang333 this may be an error on my part in the release plan? Currently Fabric has a stable API version (2023-11-01), and we are trying to spin up a new preview version (2026-08-01-preview). Do I need to change release plan? Or any change needed in the azure-rest-api-specs PR? Please advise on next steps.

Not sure how to change this SDK Release Type: stable value in the release plan:
image

@ChenxiJiang333

ChenxiJiang333 commented Aug 7, 2026

Copy link
Copy Markdown
Member

Hi @samarths-msft, the package is configured as stable (version 1.1.0 with is_stable = true), but the target API version is 2026-08-01-preview. Stable packages should target a non-preview API version. Could you provide context on whether this mismatch is intentional?

ChenxiJiang333 this may be an error on my part in the release plan? Currently Fabric has a stable API version (2023-11-01), and we are trying to spin up a new preview version (2026-08-01-preview). Do I need to change release plan? Or any change needed in the azure-rest-api-specs PR? Please advise on next steps.

Not sure how to change this SDK Release Type: stable value in the release plan: image

It's not a big deal. Since you confirmed the target api version is preview. I'll just regenerate the code with release type beta.

Copilot AI review requested due to automatic review settings August 7, 2026 06:14
@azure-sdk-automation azure-sdk-automation Bot changed the title [AutoPR azure-mgmt-fabric]-generated-from-SDK Generation - Python-6670686 [AutoPR azure-mgmt-fabric]-generated-from-SDK Generation - Python-6671798 Aug 7, 2026

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.

Pull request overview

Copilot reviewed 53 out of 53 changed files in this pull request and generated 3 comments.

Suppressed comments (7)

sdk/fabric/azure-mgmt-fabric/azure/mgmt/fabric/operations/init.py:1

  • This wildcard import no longer suppresses pylint: disable=unused-wildcard-import (it was present before). If pylint is part of CI, this will reintroduce lint failures. Add the pylint suppression back on the runtime wildcard import (and apply the same fix to the similar __init__.py files under models/, aio/, and aio/operations/).
    sdk/fabric/azure-mgmt-fabric/generated_tests/test_fabric_mgmt_fabric_capacities_operations.py:1
  • The new list_usages test uses location=\"str\", which is not a valid Azure region and is likely to fail in live/record mode. Use a real location (e.g., AZURE_LOCATION or the preparer-provided resource_group.location) so the test can run reliably. (Make the corresponding change in the async test as well.)
    sdk/fabric/azure-mgmt-fabric/generated_tests/test_fabric_mgmt_fabric_capacities_operations.py:1
  • The new list_usages test is a pure smoke test with no assertions. Since this is newly added behavior, add minimal validations (e.g., assert the pager yields items, or that yielded items have expected keys like current_value/limit/unit) to ensure regressions are caught rather than only exercising the call path.
    sdk/fabric/azure-mgmt-fabric/CHANGELOG.md:3
  • The changelog currently includes both 1.1.0b1 and 1.1.0 sections for the same date, but the package version is set to 1.1.0b1 in _version.py. This is confusing for consumers and release tooling. Please remove the 1.1.0 section (or update it to match the actual released version), and replace the tool warning lines with real release notes under the correct version heading.
## 1.1.0b1 (2026-08-07)

sdk/fabric/azure-mgmt-fabric/CHANGELOG.md:20

  • The changelog currently includes both 1.1.0b1 and 1.1.0 sections for the same date, but the package version is set to 1.1.0b1 in _version.py. This is confusing for consumers and release tooling. Please remove the 1.1.0 section (or update it to match the actual released version), and replace the tool warning lines with real release notes under the correct version heading.
## 1.1.0 (2026-08-07)

WARNING: Stable SDK version 1.1.0 is used with preview API version 2026-08-01-preview. If this is expected, delete this line; otherwise, check this PR.

tool can't generate changelog for this release, please update manually.

sdk/fabric/azure-mgmt-fabric/azure/mgmt/fabric/_configuration.py:40

  • The docstring advertises api_version=None semantics ('use the operation default'), but the implementation always defaults api_version to a concrete string and stores it as a str. If callers pass api_version=None, it will be propagated into request builders and the version validator, which can lead to incorrect behavior. Either (mandatory) update the docs to match the implementation, or (preferred) change api_version to Optional[str] and normalize None to the intended default behavior before requests are built. (Same issue exists in the async configuration.)
    :keyword api_version: The API version to use for this operation. Known values are
     "2026-08-01-preview" and None. Default value is None. If not set, the operation's default API
     version will be used. Note that overriding this default value may result in unsupported
     behavior.

sdk/fabric/azure-mgmt-fabric/azure/mgmt/fabric/_configuration.py:52

  • The docstring advertises api_version=None semantics ('use the operation default'), but the implementation always defaults api_version to a concrete string and stores it as a str. If callers pass api_version=None, it will be propagated into request builders and the version validator, which can lead to incorrect behavior. Either (mandatory) update the docs to match the implementation, or (preferred) change api_version to Optional[str] and normalize None to the intended default behavior before requests are built. (Same issue exists in the async configuration.)
        api_version: str = kwargs.pop("api_version", "2026-08-01-preview")

Comment thread sdk/fabric/azure-mgmt-fabric/azure/mgmt/fabric/_validation.py
Comment thread sdk/fabric/azure-mgmt-fabric/azure/mgmt/fabric/_validation.py
Comment thread sdk/fabric/azure-mgmt-fabric/azure/mgmt/fabric/_validation.py
Copilot AI review requested due to automatic review settings August 7, 2026 06:30

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.

Pull request overview

Copilot reviewed 53 out of 53 changed files in this pull request and generated no new comments.

Suppressed comments (1)

sdk/fabric/azure-mgmt-fabric/CHANGELOG.md:14

  • This release raises the package requirement from Python 3.8+ to 3.10+, but the release notes do not disclose that Python 3.8 and 3.9 are no longer supported. Please call out this user-impacting compatibility change explicitly, as other packages do when increasing their minimum Python version.
## 1.1.0b1 (2026-08-07)

@ChenxiJiang333

Copy link
Copy Markdown
Member

Hi, the new api version 2026-08-01-preview seems not deployed on portal yet, we recommend making sure the api version to be deployed before releasing the SDK, though we won't block the release in self-serve release flow.

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

Copilot-Session: f5806c81-9a1b-477a-9f9e-9c9b04f329cf
Copilot AI review requested due to automatic review settings August 7, 2026 06:36

@ChenxiJiang333 ChenxiJiang333 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hi @Samarth Shah (@samarths-msft), we have approved the PR. You can move on to merge and release though the action suggestion in Release Plan.

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.

Pull request overview

Copilot reviewed 53 out of 53 changed files in this pull request and generated no new comments.

Suppressed comments (1)

sdk/fabric/azure-mgmt-fabric/CHANGELOG.md:5

  • This release raises requires-python from 3.8 to 3.10 and updates the README accordingly, but the release notes do not disclose that Python 3.8 and 3.9 support is being dropped. Please record this compatibility change so users see it during upgrade; current packages consistently call out minimum-Python increases in their changelogs (for example, sdk/core/azure-core/CHANGELOG.md:125-127).
## 1.1.0b1 (2026-08-07)

### Features Added

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

Labels

auto-release When merged to main, release pipelines for this PR's changed packages trigger automatically.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants