Skip to content

Conversation

@iliu816
Copy link
Member

@iliu816 iliu816 commented Aug 14, 2025

Related command

az sf managed-application-type version update

Description

Bump the backing azure.mgmt.servicefabricmanagedclusters package version from 2.1.0.1b to 2.1.0.3b and modified backing logic of commands to accommodate.

Testing Guide

N/A, reran scenario tests.

History Notes

{ServiceFabric} Bump azure.mgmt.servicefabricmanagedclusters package version from 2.1.0.1b to 2.1.0.3b


This checklist is used to make sure that common guidelines for a pull request are followed.

Copilot AI review requested due to automatic review settings August 14, 2025 18:26
@azure-client-tools-bot-prd
Copy link

azure-client-tools-bot-prd bot commented Aug 14, 2025

️✔️AzureCLI-FullTest
️✔️acr
️✔️latest
️✔️3.12
️✔️3.13
️✔️acs
️✔️latest
️✔️3.12
️✔️3.13
️✔️advisor
️✔️latest
️✔️3.12
️✔️3.13
️✔️ams
️✔️latest
️✔️3.12
️✔️3.13
️✔️apim
️✔️latest
️✔️3.12
️✔️3.13
️✔️appconfig
️✔️latest
️✔️3.12
️✔️3.13
️✔️appservice
️✔️latest
️✔️3.12
️✔️3.13
️✔️aro
️✔️latest
️✔️3.12
️✔️3.13
️✔️backup
️✔️latest
️✔️3.12
️✔️3.13
️✔️batch
️✔️latest
️✔️3.12
️✔️3.13
️✔️batchai
️✔️latest
️✔️3.12
️✔️3.13
️✔️billing
️✔️latest
️✔️3.12
️✔️3.13
️✔️botservice
️✔️latest
️✔️3.12
️✔️3.13
️✔️cdn
️✔️latest
️✔️3.12
️✔️3.13
️✔️cloud
️✔️latest
️✔️3.12
️✔️3.13
️✔️cognitiveservices
️✔️latest
️✔️3.12
️✔️3.13
️✔️compute_recommender
️✔️latest
️✔️3.12
️✔️3.13
️✔️computefleet
️✔️latest
️✔️3.12
️✔️3.13
️✔️config
️✔️latest
️✔️3.12
️✔️3.13
️✔️configure
️✔️latest
️✔️3.12
️✔️3.13
️✔️consumption
️✔️latest
️✔️3.12
️✔️3.13
️✔️container
️✔️latest
️✔️3.12
️✔️3.13
️✔️containerapp
️✔️latest
️✔️3.12
️✔️3.13
️✔️core
️✔️latest
️✔️3.12
️✔️3.13
️✔️cosmosdb
️✔️latest
️✔️3.12
️✔️3.13
️✔️databoxedge
️✔️latest
️✔️3.12
️✔️3.13
️✔️dls
️✔️latest
️✔️3.12
️✔️3.13
️✔️dms
️✔️latest
️✔️3.12
️✔️3.13
️✔️eventgrid
️✔️latest
️✔️3.12
️✔️3.13
️✔️eventhubs
️✔️latest
️✔️3.12
️✔️3.13
️✔️feedback
️✔️latest
️✔️3.12
️✔️3.13
️✔️find
️✔️latest
️✔️3.12
️✔️3.13
️✔️hdinsight
️✔️latest
️✔️3.12
️✔️3.13
️✔️identity
️✔️latest
️✔️3.12
️✔️3.13
️✔️iot
️✔️latest
️✔️3.12
️✔️3.13
️✔️keyvault
️✔️latest
️✔️3.12
️✔️3.13
️✔️lab
️✔️latest
️✔️3.12
️✔️3.13
️✔️managedservices
️✔️latest
️✔️3.12
️✔️3.13
️✔️maps
️✔️latest
️✔️3.12
️✔️3.13
️✔️marketplaceordering
️✔️latest
️✔️3.12
️✔️3.13
️✔️monitor
️✔️latest
️✔️3.12
️✔️3.13
️✔️mysql
️✔️latest
️✔️3.12
️✔️3.13
️✔️netappfiles
️✔️latest
️✔️3.12
️✔️3.13
️✔️network
️✔️latest
️✔️3.12
️✔️3.13
️✔️policyinsights
️✔️latest
️✔️3.12
️✔️3.13
️✔️privatedns
️✔️latest
️✔️3.12
️✔️3.13
️✔️profile
️✔️latest
️✔️3.12
️✔️3.13
️✔️rdbms
️✔️latest
️✔️3.12
️✔️3.13
️✔️redis
️✔️latest
️✔️3.12
️✔️3.13
️✔️relay
️✔️latest
️✔️3.12
️✔️3.13
️✔️resource
️✔️latest
️✔️3.12
️✔️3.13
️✔️role
️✔️latest
️✔️3.12
️✔️3.13
️✔️search
️✔️latest
️✔️3.12
️✔️3.13
️✔️security
️✔️latest
️✔️3.12
️✔️3.13
️✔️servicebus
️✔️latest
️✔️3.12
️✔️3.13
️✔️serviceconnector
️✔️latest
️✔️3.12
️✔️3.13
️✔️servicefabric
️✔️latest
️✔️3.12
️✔️3.13
️✔️signalr
️✔️latest
️✔️3.12
️✔️3.13
️✔️sql
️✔️latest
️✔️3.12
️✔️3.13
️✔️sqlvm
️✔️latest
️✔️3.12
️✔️3.13
️✔️storage
️✔️latest
️✔️3.12
️✔️3.13
️✔️synapse
️✔️latest
️✔️3.12
️✔️3.13
️✔️telemetry
️✔️latest
️✔️3.12
️✔️3.13
️✔️util
️✔️latest
️✔️3.12
️✔️3.13
️✔️vm
️✔️latest
️✔️3.12
️✔️3.13

@azure-client-tools-bot-prd
Copy link

azure-client-tools-bot-prd bot commented Aug 14, 2025

❌AzureCLI-BreakingChangeTest
❌acs
rule cmd_name rule_message suggest_message
1007 - ParaRemove aks nodepool add cmd aks nodepool add removed parameter localdns_config please add back parameter localdns_config for cmd aks nodepool add
1010 - ParaPropUpdate aks nodepool add cmd aks nodepool add update parameter spot_max_price: updated property default from nan to nan please change property default from nan to nan for parameter spot_max_price of cmd aks nodepool add
1007 - ParaRemove aks nodepool update cmd aks nodepool update removed parameter localdns_config please add back parameter localdns_config for cmd aks nodepool update
⚠️servicefabric
rule cmd_name rule_message suggest_message
⚠️ 1010 - ParaPropUpdate sf managed-node-type create cmd sf managed-node-type create update parameter disk_type: updated property choices from ['Premium_LRS', 'StandardSSD_LRS', 'Standard_LRS'] to ['PremiumV2_LRS', 'Premium_LRS', 'Premium_ZRS', 'StandardSSD_LRS', 'StandardSSD_ZRS', 'Standard_LRS']

Please submit your Breaking Change Pre-announcement ASAP if you haven't already. Please note:

  • Breaking changes can only be merged during the designated breaking change window
  • A pre-announcement must be released at least one month in advance

For more details on how to introduce breaking changes, refer to the documentation: azure-cli/doc/how_to_introduce_breaking_changes.md

@yonzhan
Copy link
Collaborator

yonzhan commented Aug 14, 2025

Thank you for your contribution! We will review the pull request and get back to you soon.

@github-actions
Copy link

The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR.

Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions).
After that please run the following commands to enable git hooks:

pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR bumps the azure.mgmt.servicefabricmanagedclusters package version from 2.1.0b1 to 2.1.0b3 and updates the related code to accommodate changes in the SDK structure. The primary change involves wrapping model properties in a properties object, requiring updates to test assertions and operational code.

Key changes include:

  • Package version bump in dependency files
  • Adaptation of test files to use the new properties wrapper structure
  • Updates to operations code to work with the new SDK model structure

Reviewed Changes

Copilot reviewed 12 out of 25 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
setup.py, requirements files Updates package version from 2.1.0b1 to 2.1.0b3
test_util.py Updates helper functions to use properties wrapper in assertions
test_sf_managed_cluster.py Converts test assertions to use properties structure
test_sf_managed_application.py Updates application test assertions for new SDK structure
test_sf_application.py Sanitizes sensitive data in test URLs
test_application_related.yaml Sanitizes sensitive data in recorded test responses
managed_node_types.py Updates node type operations to use properties wrapper
managed_clusters.py Updates cluster operations to use properties wrapper
managed_applications.py Updates application operations to use properties wrapper

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@iliu816 iliu816 changed the title {ServiceFabric} Bump azure.mgmt.servicefabricmanagedclusters package version from 2.1.0.1b to 2.1.0.3b {ServiceFabric} Bump azure.mgmt.servicefabricmanagedclusters package version from 2.1.0.1b (2024-06-01-preview) to 2.1.0.3b (2025-03-01-preview) Aug 14, 2025
@yanzhudd
Copy link
Contributor

since this PR introduces a breaking change, it has to wait for the breaking change window to be released. Alternatively, you could seperate the changes into one PRs: one containing a breaking change and one without.

@iliu816
Copy link
Member Author

iliu816 commented Aug 25, 2025

since this PR introduces a breaking change, it has to wait for the breaking change window to be released. Alternatively, you could separate the changes into one PRs: one containing a breaking change and one without.

I don't think it is possible to actually separate out the change, the breaking change for the parameter requirement is already active on the service side due to pushes from security KPIs. If I don't mark the --package-url as required in the command, the customer requests will just fail at the service level instead.

@yanzhudd
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@iliu816
Copy link
Member Author

iliu816 commented Aug 26, 2025

since this PR introduces a breaking change, it has to wait for the breaking change window to be released. Alternatively, you could seperate the changes into one PRs: one containing a breaking change and one without.

@yanzhudd I reverted marking the parameter as required, so there is no breaking change indicated for the cli anymore. However, it seems some checks are still failing on build. Could you please advise on what needs to be done to pass those checks? I don't think I touch the mentioned files. This change being merged is a blocker for other features that we want to add, so would appreciate a resolution.

@yanzhudd
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@yonzhan
Copy link
Collaborator

yonzhan commented Aug 29, 2025

Please fix CI issues

@iliu816
Copy link
Member Author

iliu816 commented Sep 2, 2025

Please fix CI issues

Hi @yonzhan, the cause of the build error was not clear to me.

https://dev.azure.com/azclitools/public/_build/results?buildId=268147&view=logs&j=cc450d3b-3730-5e93-ae49-fca8cec7e4c0&t=e3ad0dc2-9d14-566a-c09a-35a697f3cf41&l=3469

I gave merging the latest changes from dev a shot to see if it would resolve the error. Otherwise, I need more guidance on how to resolve the error.

@yanzhudd
Copy link
Contributor

yanzhudd commented Sep 9, 2025

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@iliu816
Copy link
Member Author

iliu816 commented Sep 22, 2025

@yanzhudd @yonzhan Hi, it seems the build error is still present. Would you be able to please help provide guidance on what I can do to resolve the error?

@yanzhudd
Copy link
Contributor

please resolve the code conflict

@yanzhudd
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines will not run the associated pipelines, because the pull request was updated after the run command was issued. Review the pull request again and issue a new run command.

@iliu816
Copy link
Member Author

iliu816 commented Sep 29, 2025

please resolve the code conflict

@yanzhudd Should be resolved now

@zhoxing-ms
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@zhoxing-ms
Copy link
Contributor

image

It seems that this issue may be caused by the introduction of a bool object in the models from version 2.1.0b3 of the Python SDK azure-mgmt-servicefabricmanagedclusters
But after I browsing through all the new models added in this version model files , I couldn't find any relevant models. I'm not sure if it's because I'm not familiar with Python SDK models

image

https://pypi.org/project/azure-mgmt-servicefabricmanagedclusters/2.1.0b3/

@msyyc Could you please help take a look if is an issue caused by importing the bool type model into the new version SDK?

@msyyc
Copy link
Member

msyyc commented Sep 29, 2025

2.1.0b3 introduces new hybrid model after servicefabricmanagedclusters migrated from swagger to typespec and here is migration guide https://github.com/Azure/azure-sdk-for-python/blob/49e6e88abd34ce79f8b6eb9acf140fcdcd7e4222/doc/dev/mgmt/hybrid_model_migration.md. But the log shows error happens in CLI script patch_models_v2.py. I am not sure the script detail but it may need update to be compatible with new model.

@zhoxing-ms
Copy link
Contributor

I am not sure the script detail but it may need update to be compatible with new model.

@jiasli @bebound May I ask could you help to take a look at the breaking changes in the build script patch_models_v2.py caused by the introduction of hybrid models after the SDK was migrated from swagger to typespec ?

@yanzhudd
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

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

Labels

Auto-Assign Auto assign by bot Service Fabric az sf

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants