Current¶
SYNOPSIS¶
The member a count is at, inside Count -Where: Current name for a named value count, or Current for the innermost count.
SYNTAX¶
Current [[-Name] <String>] [<CommonParameters>]
DESCRIPTION¶
Current is a value: compare it with Must, or pass it to ResourceGroupTag. It can't name a Tag, because Azure rejects a field named with current() (BYL1059).
USED IN¶
Count -Where, as a value
EXAMPLES¶
Example 1¶
Count -Value (Param NamePatterns) -Name pattern -Where { Field name | Must -BeLike (Current pattern) } | Must -BeGreaterThan 0
Example 2¶
Count -Value @('Inbound', 'Outbound') -Where { Current | Must -Be 'Inbound' } | Must -Be 1
PARAMETERS¶
-Name¶
The -Name of the value count, or nothing for the innermost count.
Type: String
Required: false
Position: 1
Accept pipeline input: false