Aug 17 2020 03:19 PM
How can I delete all the rows in a table where it is a like a wildcard (*) and a Like? I am using Powershell 7. In Powershell 5, there was a cmdlet where you could use "like" and a "*" on the end. Unfortunately, the Powershell 7 Az model only has "-operator Equal" in it. I would love to put a "*" on the end of $ObjectName and have operator Like instead of Equal.
Aug 18 2020 11:34 AM
SolutionGot a solution from a coworker ...
Get-AzTableRow -table $storageTable.CloudTable | Where-Object -Property “PartitionKey” -CLike $ObjectName "*” | Remove-AzTableRow -table $storageTable.CloudTable
Aug 18 2020 11:34 AM
SolutionGot a solution from a coworker ...
Get-AzTableRow -table $storageTable.CloudTable | Where-Object -Property “PartitionKey” -CLike $ObjectName "*” | Remove-AzTableRow -table $storageTable.CloudTable