Skip to content

Commit

Permalink
Merge pull request #51 from corey-hammerton/issue-47
Browse files Browse the repository at this point in the history
[Feature Request] - fix for issue 47 - Set Virtual Machine Tags via S…
  • Loading branch information
nicholasmhughes authored Apr 23, 2024
2 parents 9a47180 + 0a7f0bd commit ea01bf7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog/47.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Set Virtual Machine Tags via Salt Cloud
3 changes: 3 additions & 0 deletions src/saltext/azurerm/clouds/azurerm.py
Original file line number Diff line number Diff line change
Expand Up @@ -1118,6 +1118,9 @@ def request_instance(vm_, kwargs=None):
network_interfaces=[NetworkInterfaceReference(id=vm_["iface_id"])],
),
availability_set=availability_set,
tags=config.get_cloud_config_value(
"tags", vm_, __opts__, search_global=False, default=None
),
)

salt.utils.cloud.fire_event(
Expand Down

0 comments on commit ea01bf7

Please sign in to comment.