Conversation
️✔️AzureCLI-FullTest
|
️✔️AzureCLI-BreakingChangeTest
|
|
Thank you for your contribution! We will review the pull request and get back to you soon. |
|
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). pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>
|
There was a problem hiding this comment.
Pull Request Overview
This PR fixes an issue where the az sf cluster create command incorrectly assumed the cluster name equals the resource group name when using custom templates. The fix ensures the cluster name is properly read from the parameters file when provided.
- Extracts cluster name from parameters file instead of assuming it equals resource group name
- Improves error message clarity for template deployment requirements
- Updates function call to use explicit keyword arguments for better readability
az sf cluster create: Change behavior to read cluster_name from parameters file if provided to fix issue #5180az sf cluster create: Change behavior to read cluster_name from parameters file if provided
|
Could you please add some test cases for these PR changes? |
|
Please note that Azure CLI will freeze the code on 07/29/2025 07:00 UTC for the upcoming release. If you want to catch this release train, please resolve these comments ASAP, otherwise this PR has to be postponed to next sprint. |
Test coverage for this would rely on the details for an existing certificate and passwords within a parameters file uploaded to the test repo, which seems inadvisable. |
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
Related command
az sf cluster createDescription
Fixes #5180 where at the end of a deployment using a template, the client attempts to poll for the cluster status at end of creation with assumption that
--cluster_name==--resource_group_nameif--cluster-nameis not provided. Changed code to read--cluster_nameparameter from parameter file.History Notes
{Service Fabric}
az sf cluster create: Change behavior to read cluster_name from parameters file if provided to fix issue #5180This checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.