I am looking to filter out vms. This Powershell worked but i want to use az cli.
Get-AzComputeResourceSku | Where-Object {$_.Locations.Contains("northeurope") -and $_.Restrictions.ReasonCode -ne 'NotAvailableForSubscription'}
My az cli script can be found below:
az vm list-skus -l westeurope --resource-type virtualMachines --query "[?restrictions == []]|[?contains(name, 'D') || contains(name, 'F')]"
How can I make it work?