Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 7, 2025

The resource_group_tags parameter was already implemented in the Azure platform but undocumented, preventing users from applying tags to resource groups created by LISA.

Changes

Documentation

  • docs/run_test/runbook.rst: Added resource_group_tags to Azure platform parameters list with example
  • docs/run_test/platform.rst: Added documentation with simplified examples using Environment and Project tags

Example Runbook

  • lisa/microsoft/runbook/azure.yml: Added resource_group_tags variable with null default value and multi-line YAML example comment

Usage

platform:
  - type: azure
    azure:
      resource_group_tags:
        Environment: Testing
        Project: LISA

Implementation Note

No code changes required. The parameter is defined in AzurePlatformSchema (platform_.py:296) and properly passed to check_or_create_resource_group() for tag application during resource group creation.

Original prompt

Please add resource_group_tags to azure runbook, and update document.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 4 commits November 7, 2025 16:30
- Updated runbook.rst with resource_group_tags parameter description
- Updated platform.rst with detailed resource_group_tags documentation
- Updated azure.yml example runbook to include resource_group_tags variable
- Added examples showing how to use resource_group_tags for Azure resource organization

Co-authored-by: squirrelsc <[email protected]>
Address code review feedback by adding an example comment showing the expected format for resource_group_tags parameter.

Co-authored-by: squirrelsc <[email protected]>
- Update example comment format to YAML style for consistency
- Add Azure tag naming conventions and constraints to documentation
- Specify maximum lengths and allowed characters for tags

Co-authored-by: squirrelsc <[email protected]>
Use multi-line YAML format for the example comment to match documentation style and improve clarity.

Co-authored-by: squirrelsc <[email protected]>
Copilot AI changed the title [WIP] Add resource_group_tags to Azure runbook Document resource_group_tags parameter for Azure runbook Nov 7, 2025
Copilot finished work on behalf of squirrelsc November 7, 2025 16:41
Copilot AI requested a review from squirrelsc November 7, 2025 16:41
- Remove Azure tag naming conventions section from platform.rst
- Remove CostCenter and Owner tags from examples in platform.rst
- Change resource_group_tags value from empty string to null in azure.yml
- Remove Owner tag from YAML configuration example in platform.rst

Co-authored-by: squirrelsc <[email protected]>
Copilot finished work on behalf of squirrelsc November 7, 2025 16:50
Copilot AI requested a review from squirrelsc November 7, 2025 16:50
@squirrelsc squirrelsc marked this pull request as ready for review November 7, 2025 16:53
@squirrelsc squirrelsc requested a review from LiliDeng as a code owner November 7, 2025 16:53
@squirrelsc
Copy link
Member

@LiliDeng LGTM

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.

2 participants