Conversation
️✔️AzureCLI-FullTest
|
️✔️AzureCLI-BreakingChangeTest
|
|
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>
|
|
Thank you for your contribution! We will review the pull request and get back to you soon. |
There was a problem hiding this comment.
Pull request overview
This PR fixes an inconsistency in the az webapp config access-restriction show command where output field names were returned in a mix of camelCase and snake_case formats. The fix ensures all output is consistently in camelCase by using the SDK's .serialize() method instead of manual JSON serialization.
Key changes:
- Replaced manual JSON serialization with proper SDK
.serialize()method calls for access restriction objects - Fixed field name output to consistently use camelCase (e.g.,
ipSecurityRestrictionsDefaultActioninstead of the malformedpSecurityRestrictionsDefaultAction) - Removed unused
jsonimport
Reviewed changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
access_restrictions.py |
Replaced json.dumps()/json.loads() with .serialize() method calls; removed unused json import |
test_webapp_access_restriction_commands.py |
Updated test assertions to check for correct camelCase field name ipSecurityRestrictionsDefaultAction |
recordings/test_webapp_access_restriction_show.yaml |
Updated test recordings to reflect corrected command output with proper camelCase formatting |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@yonzhan - is there a reason this was moved out of the next milestone? |
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
|
@seligj95 thank you for solving this problem! |
Related command
az webapp config access-restriction show
Description
This command returned the output in camel and snake case. Updated to always return in camel case for consistency. Resolves #32474
Testing Guide
az webapp config access-restriction show -g -n
History Notes
[Component Name 1] BREAKING CHANGE:
az command a: Make some customer-facing breaking change[Component Name 2]
az command b: Add some customer-facing featureThis 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.