I am using the Azure CLI task in Azure Devops to run a resource lock deletion command against Azure.
The following command is getting the list of locks that i have in my resource group
az lock list -g "RG_Name" --query "[?type=='"Microsoft.Authorization/locks"'].id"
However, I am not able to further use | xargs, to delete each of the found locks by the previous command. Any suggestion to write it in the correct syntax ?