To query Azure Digital Twins by model, you can use the Azure Digital Twins query language. The query language allows you to filter based on the twin’s model, including inheritance and model versioning. Here is an examples of how to get all digital twins that are based on the Room model. Enter the following query in the Query field and click the Run Query button in Azure Digital Twins Explorer:
SELECT * FROM DIGITALTWINS WHERE IS_OF_MODEL ('dtmi:com:smartbuilding:Room;1')