private static async Task <Shape> getShape(ComputeClient client, string compartmentId, AvailabilityDomain availabilityDomain) { ListShapesRequest listShapesRequest = new ListShapesRequest { CompartmentId = compartmentId, AvailabilityDomain = availabilityDomain.Name }; ListShapesResponse listShapesResponse = await client.ListShapes(listShapesRequest); Shape shape = listShapesResponse.Items.Find(x => x.ShapeProp.StartsWith("VM")); return(shape); }