You should use the below command lets to tag the resources.
Set-AzureRmResourceGroup -Name "Azure4you.com" -Tag @{Department="IT"}