addTagToResource#

Add a tag to a resource

Format#

udclient [\[global-args...\]](../../com.udeploy.reference.doc/topics/cli_command_format.md) [\[global-flags...\]](../../com.udeploy.reference.doc/topics/cli_command_format.md)
  addTagToResource [parameters]

Parameters#

Parameter Type Required Description
resource string true Path to the resource, such as /ResourceGroup/Agents/Agent1
template string false Name or ID of the resource template (Optional)
blueprintId string false Name or ID of the blueprint (Optional)
application string false Name or ID of the application (Required to look up blueprint by name)
tag string true Name of the tag
color string false Hex representation of the color for the tag, such as FF0000. This parameter is used only if the tag is being created.
description string false Description of the tag. This parameter is used only if the tag is being created.

Example#

udclient -username jsmith -password passwd 
  -weburl https://myserver.example.com:8443
  addTagToResource
  -resource /Resource1/Subresource1
  -tag Tag1

Related REST command: Add a tag to a resource.

Parent topic: CLI Commands