Your GCP filter query can be transformed to this Azure query
az vm list --query '[?contains(name,'wkn')]|[?tags.wknhscale=='active'].{Name:name, RG:resourceGroup}' -o table
You can get more examples here: How to query Azure CLI command output using a JMESPath query