var response = await _cosmosClient
.GetContainer("dbName", "containerName")
.ReadItemAsync<DerivedClass1>(id.ToString(), new PartitionKey(partitionKey));
for more info: https://learn.microsoft.com/en-us/dotnet/api/microsoft.azure.cosmos.container.readitemasync?view=azure-dotnet