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
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

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Script -Name ManageTagsOnNetworkCard

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Author(s)

AlexG

Copyright

GooberWorks (c) 2020

Owners

Tags

Azure AzureRM Automation TAGS Network Interface card NIC replace remove delete copy add ManageTagsOn

Functions

Merge-HashTable

Dependencies

This script has no dependencies.

Version History

Version Downloads Last updated
1.0 (current version) 31 2/16/2020