-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Azure CLI to manage Site resources #9181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Validation for Breaking Change Starting...
Thanks for your contribution! |
|
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.
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 adds a new Azure CLI extension called "site" that provides commands to manage Site resources across different scopes (resource group, subscription, and service group). The extension enables CRUD operations for Azure Edge Sites through a comprehensive command-line interface.
- Implements full CRUD operations (create, read, update, delete, list) for Site resources
- Supports multi-scope operations (resource group, subscription, service group)
- Includes comprehensive test coverage and example usage documentation
Reviewed Changes
Copilot reviewed 23 out of 23 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| src/site/setup.py | Package configuration and metadata for the site extension |
| src/site/azext_site/tests/latest/test_site.py | Comprehensive test suite covering CRUD operations across different scopes |
| src/site/azext_site/aaz/latest/site/_*.py | Auto-generated command implementations for create, delete, list, show, and update operations |
| src/site/README.md | Documentation with usage examples for all supported operations |
| Multiple init.py and configuration files | Extension structure and initialization files |
CodeGen Tools Feedback CollectionThank 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 |
|
Hi @bsomeshekar
|
|
/azp run |
|
Commenter does not have sufficient privileges for PR 9181 in repo Azure/azure-cli-extensions |
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
|
@kairu-ms Could you please approve PR if changes look good |
|
[Release] Update index.json for extension [ site-1.0.0b1 ] : https://dev.azure.com/msazure/One/_build/results?buildId=138696727&view=results |
Azure CLI to manage Site resources scoped to a resource group, subscription, or service group.
AAZ PR: https://github.com/Azure/aaz/pull/859/checks
Related command
az site create -n sitename
az site update -n sitename
az site delete -n sitename
az site show -n sitename
az site list
General Guidelines
azdev style <YOUR_EXT>locally? (pip install azdevrequired)python scripts/ci/test_index.py -qlocally? (pip install wheel==0.30.0required)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.jsonautomatically.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.