How do I add tags in a name=value format to Service Principals in Azure

Windows Server

Active Members
Joined
Dec 10, 2024
Messages
4,200
I'm having trouble determining a clear answer on tagging Service Principals as the documentation seems to say you can't do it (Tag support for resources - Azure Resource Manager) while several github and other resources have a command for it like so:az ad sp update --id <service_principal_id> --add tags "<tag_key>=<tag_value>" To confirm, I created a Service Principal in my private portal instance for test purposes. I played with it a bit and believe this code should be correct:$sp = Get-AzADServicePrincipal -DisplayName "tempdelete" $tags

Continue reading...
 
Back
Top