Hi there Nagarjun kondapalli
I think cosmos DB for MongoDB vCore currently doesn’t support creating custom roles through the Azure CLI — that feature is only available in the NoSQL API. In vCore, role management is handled natively by the MongoDB engine, so you’ll need to connect directly to the cluster and use MongoDB commands like db.createRole() to define custom roles scoped to a specific database. The CLI command you tried works for the API for MongoDB (serverless/provisioned throughput), not for vCore. So the path forward is to create roles directly inside MongoDB shell or driver.
If this helps kindly accept the answer thanks much.