Skip to content
Open
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions docs/run_test/platform.rst
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,10 @@ deployment.
use_ipv6: "<true or false>"
enable_vm_nat: "<true or false>"
source_address_prefixes: $(source_address_prefixes)
resource_group_tags:
Environment: Testing
Project: LISA
Owner: YourName
requirement:
...
ignored_capability:
Expand Down Expand Up @@ -266,6 +270,30 @@ deployment.

# List format
lisa -r ./microsoft/runbook/azure.yml -v "source_address_prefixes:['192.168.1.0/24','10.0.0.0/8']"
* **resource_group_tags**. Specify tags to apply to resource groups created by LISA
as key-value pairs. Tags help organize and categorize Azure resources for tracking,
cost management, and governance. If not provided, no tags will be applied to the
resource groups.

Azure tag naming conventions:

- Tag names are case-insensitive
- Maximum key length: 512 characters
- Maximum value length: 256 characters
- Maximum 50 tags per resource group
- Allowed characters: alphanumerics, spaces, and ``+ - = . _ : / @``

Example:

.. code:: yaml

azure:
resource_group_tags:
Environment: Testing
Project: LISA
CostCenter: Engineering
Owner: TeamName

* **ignored_capability**. Specify feature names which will be ignored in
test requirement. You can find the feature name from its name method in source code.
For example, IsolatedResource feature's name defined in ``lisa/features/isolated_resource.py`` as below:
Expand Down
4 changes: 4 additions & 0 deletions docs/run_test/runbook.rst
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ Below section is for running cases on Azure platform, it specifies:
- admin_private_key_file: the private key file to access the Azure VM. (Optional)
- subscription_id: Azure VM is created under this subscription.
- azcopy_path: the installation path of the AzCopy tool on the machine where LISA is installed. It speeds up copying VHDs between Azure storage accounts. (Optional)
- resource_group_tags: tags to apply to created resource groups as key-value pairs. (Optional)

.. code:: yaml

Expand All @@ -137,6 +138,9 @@ Below section is for running cases on Azure platform, it specifies:
azure:
subscription_id: $(subscription_id)
azcopy_path: $(azcopy_path)
resource_group_tags:
Environment: Testing
Project: LISA

Select and set test cases
~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down
7 changes: 7 additions & 0 deletions lisa/microsoft/runbook/azure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ variable:
value: true
- name: create_public_address
value: true
- name: resource_group_tags
value: ""
# Example usage:
# resource_group_tags:
# Environment: Testing
# Project: LISA
concurrency: $(concurrency)
notifier:
- type: html
Expand All @@ -76,6 +82,7 @@ platform:
subnet_prefix: $(subnet_prefix)
use_public_address: $(use_public_address)
create_public_address: $(create_public_address)
resource_group_tags: $(resource_group_tags)
requirement:
core_count:
min: 2
Expand Down