Tag¶
SYNOPSIS¶
A tag field reference: tags['name'] (ADR-0020). Pipe it to Must, or inside Modify to an operation.
SYNTAX¶
Tag [-Name] <Object> [<CommonParameters>]
USED IN¶
When, Require, Each, AnyOf, AllOf, Count -Where, Modify, Append
EXAMPLES¶
Example 1¶
Tag CostCenter | Must -Exist
Example 2¶
Tag (Param TagName) | Must -Be (ResourceGroupTag (Param TagName))
PARAMETERS¶
-Name¶
The tag name, or (Param Name) for a parameter that holds it.
Type: Object
Required: true
Position: 1
Accept pipeline input: false