I verified this internally and seems like we haven’t updated REST APIs after Entra ID support was added to Azure Cosmos DB for PostgreSQL. It means that REST APIs, CLI, Azure SDKs, Terraform don’t have Entra ID support.
ARM templates and Bicep don’t depend on the published REST APIs update though. Customers can use it by referring to 2023-03-02-preview version. Customers would need to figure out desired properties and their values though as all of the updated functionality is usually documented in the REST APIs update. They can do it by downloading ARM templates on a cluster where Entra ID authentication is enabled and some Entra ID accounts are added.
resource resourceName 'Microsoft.DBforPostgreSQL/serverGroupsv2@2023-03-02-preview' = { name: clusterName
location: location
tags: {}
properties: {
..
}