In the spirit of moto, it actually looks like quite a bit of the groundwork is available for someone to take a swing at an Azure version:
* the cli uses the python SDK: https://github.com/Azure/azure-cli/blob/azure-cli-2.38.0/src...
* which uses autorest: https://github.com/Azure/azure-sdk-for-python/tree/azure-mgm...
* of what appears to be an OpenAPI-ish spec: https://github.com/Azure/azure-rest-api-specs/tree/fda2db441...
There is a Linux version now but it doesn't cover all the APIs - only the SQL and MongoDB.
It's been frustrating as I've been wanting to develop against the Gremlin API locally, I've resorted to using TinkerGraph but it's not ideal.
Quick edit: there is a cosmosdb emulator out there for windows. Last I looked (6 months ago?) there was not a Linux version (so no docker). If you’re in windows with wsl though not bad. Azure function core tools is also excellent for local dev.