ManageTagsOnNetworkCard
1.0
This Powershell script will help you manage TAGS on Azure Network Interface Card Resource.
While it is very easy to add and change tags using console, it is not so easy to delete a specific tag
from a resource. The console also limits the number of resources you can update to 100. So if you need
to change tags on more than 100 resources, then you'll need to rinse and
While it is very easy to add and change tags using console, it is not so easy to delete a specific tag
from a resource. The console also limits the number of resources you can update to 100. So if you need
to change tags on more than 100 resources, then you'll need to rinse and
This Powershell script will help you manage TAGS on Azure Network Interface Card Resource.
While it is very easy to add and change tags using console, it is not so easy to delete a specific tag
from a resource. The console also limits the number of resources you can update to 100. So if you need
to change tags on more than 100 resources, then you'll need to rinse and repeat as often as neccessary
This script will allow you to -Add, -Replace or -Remove a specific tag from any Netowrk Interface Card that
matches a search criteria using parameters ManageThisTag and ManageThisTagValue. The Merge Function will
combine Tags from the Virtual Machine that the Network Interface card is attached to. If a tag exist on
both Network Interface and Virtual Machine, you can specify which of the two values will be kept by using
the switches -Merge VmWins or -Merge NicWins. The Merge function will also allow you to copy tags from the
Virtual Machine that the Network Interface card is attached to. By using -Merge CopyFromVM. The Copy function
will overwrite the existing Tags on the Network Interface card with those from the Virtual Machine.
While running the -merge process, the script will identify and Network Interface Card that is not attached
to any Virtual Machine. You may want to carefully review that list to see if you need that NIC.
This script is part of a set of ManageTagsOn scripts. Please look for
ManageTagsOnVM
ManageTagsOnDisk
ManageTagsOnNetworkCard
ManageTagsOnPublicIP
ManageTagsOnNetworkSecurityGroup
ManageTagsOnAvailabilitySet
ManageTagsOnRouteTable
ManageTagsOnAutomationRunbooks
Show more
While it is very easy to add and change tags using console, it is not so easy to delete a specific tag
from a resource. The console also limits the number of resources you can update to 100. So if you need
to change tags on more than 100 resources, then you'll need to rinse and repeat as often as neccessary
This script will allow you to -Add, -Replace or -Remove a specific tag from any Netowrk Interface Card that
matches a search criteria using parameters ManageThisTag and ManageThisTagValue. The Merge Function will
combine Tags from the Virtual Machine that the Network Interface card is attached to. If a tag exist on
both Network Interface and Virtual Machine, you can specify which of the two values will be kept by using
the switches -Merge VmWins or -Merge NicWins. The Merge function will also allow you to copy tags from the
Virtual Machine that the Network Interface card is attached to. By using -Merge CopyFromVM. The Copy function
will overwrite the existing Tags on the Network Interface card with those from the Virtual Machine.
While running the -merge process, the script will identify and Network Interface Card that is not attached
to any Virtual Machine. You may want to carefully review that list to see if you need that NIC.
This script is part of a set of ManageTagsOn scripts. Please look for
ManageTagsOnVM
ManageTagsOnDisk
ManageTagsOnNetworkCard
ManageTagsOnPublicIP
ManageTagsOnNetworkSecurityGroup
ManageTagsOnAvailabilitySet
ManageTagsOnRouteTable
ManageTagsOnAutomationRunbooks
Installation Options
Owners
Copyright
GooberWorks (c) 2020
Package Details
Author(s)
- AlexG
Tags
Azure AzureRM Automation TAGS Network Interface card NIC replace remove delete copy add ManageTagsOn
Functions
Dependencies
This script has no dependencies.
FileList
- ManageTagsOnNetworkCard.nuspec
- ManageTagsOnNetworkCard.ps1
Version History
Version | Downloads | Last updated |
---|---|---|
1.0 (current version) | 111 | 2/16/2020 |