@simon-roberts
I would use one of the client libraries to manage these. Which one? Would recommend whatever your application is built in, if available. If not, please let us know as we try to support popular languages.
We have folks managing 1000s of tenants using the client libraries, which is not exactly what you are trying to do, but similar.
Hope that helps.