Skip to content

Refactor Error Message for Config Set#9687

Open
ayush-ms wants to merge 1 commit intoAzure:mainfrom
ayush-ms:ayushpatel/configSetCLIFix
Open

Refactor Error Message for Config Set#9687
ayush-ms wants to merge 1 commit intoAzure:mainfrom
ayush-ms:ayushpatel/configSetCLIFix

Conversation

@ayush-ms
Copy link
Member


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

Related command

General Guidelines

  • Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
  • Have you run python scripts/ci/test_index.py -q locally? (pip install wheel==0.30.0 required)
  • My extension version conforms to the Extension version schema

For new extensions:

About Extension Publish

There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update src/index.json automatically.
You only need to update the version information in file setup.py and historical information in file HISTORY.rst in your PR but do not modify src/index.json.

Copilot AI review requested due to automatic review settings March 16, 2026 04:55
@azure-client-tools-bot-prd
Copy link

Validation for Breaking Change Starting...

Thanks for your contribution!

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

Hi @ayush-ms,
Please write the description of changes which can be perceived by customers into HISTORY.rst.
If you want to release a new extension version, please update the version in setup.py as well.

@yonzhan
Copy link
Collaborator

yonzhan commented Mar 16, 2026

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

@github-actions
Copy link
Contributor

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>

@ayush-ms
Copy link
Member Author

Validated

image

@github-actions
Copy link
Contributor

CodeGen Tools Feedback Collection

Thank you for using our CodeGen tool. We value your feedback, and we would like to know how we can improve our product. Please take a few minutes to fill our codegen survey

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

Refines the user-facing error message raised by ConfigurationHelper.getConfigurationId() when no configuration can be resolved from the provided hierarchy resource ID, aiming to provide more specific guidance for Target vs Site IDs in the workload-orchestration extension.

Changes:

  • Adds Target/Site-specific CLIInternalError messages when configuration lookup fails.
  • Replaces the previous generic “No configuration linked…” message with an ID-type validation message for non-Target/Site hierarchy IDs.

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines +118 to +125
if "microsoft.edge/targets" in hierarchy_id_str.lower():
raise CLIInternalError(
f"Missing target configuration and configuration reference for Target: {hierarchy_id_str}"
)
elif "microsoft.edge/sites" in hierarchy_id_str.lower():
raise CLIInternalError(
f"Missing site configuration and configuration reference for Site: {hierarchy_id_str}"
)
)
else:
raise CLIInternalError(
f"Hierarchy Id can either be of Target or Site Resource. Invalid Id: {hierarchy_id_str}"
@github-actions
Copy link
Contributor

Hi @ayush-ms

Release Suggestions

Module: workload-orchestration

  • Please log updates into to src/workload-orchestration/HISTORY.rst
  • Update VERSION to 5.1.1 in src/workload-orchestration/setup.py

Notes

@yonzhan yonzhan requested a review from necusjz March 16, 2026 05:23
@yonzhan yonzhan requested a review from jsntcy March 16, 2026 05:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants