Forum Discussion

darrenge's avatar
darrenge
Icon for Microsoft rankMicrosoft
Aug 17, 2020
Solved

How to delete rows in Azure using Like (and wildcard) in Az model

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. ...
  • darrenge's avatar
    Aug 18, 2020

    darrenge 

    Got a solution from a coworker ...

    Get-AzTableRow -table $storageTable.CloudTable | Where-Object -Property “PartitionKey” -CLike $ObjectName "*” | Remove-AzTableRow -table $storageTable.CloudTable