Azure / azure-service-operator

Azure Service Operator allows you to create Azure resources using kubectl
https://azure.github.io/azure-service-operator/
MIT License
741 stars 196 forks source link

Azure service operator for cosmos db collection and index creation or update #3208

Closed vivuu1989 closed 4 months ago

vivuu1989 commented 1 year ago

We were trying to create azure operator for managing our existing azure cosmos db dor managing and administration the collection or index creation or update as a self service for our developers, so that they can create these resourcs on demand using azuredevops. But we couldn't find any solution for this with azure operator.

theunrepentantgeek commented 1 year ago

Reviewing the Azure documentation for SQL Databases and Tables, it doesn't appear that collections and indexes are ARM resources, so we can't use our code generator to do most of the work required for support.

Instead, they seem to require use of the relevant Cosmos SDK.

I'll tag this issue appropriately and we'll do some work to estimate the effort required so that we can prioritize this.

theunrepentantgeek commented 1 year ago

We discussed this issue in today's weekly ASO sync meeting. We're interested in supporting collections and indexes as child resources, but we're not sure where it falls in our current backlog. For the moment, we've added it to our v2.4.0 milestone.

That said, we do accept PRs and we're always happy to work with people who want to contribute to ASO. If you'd like to author these resources yourself, you're most welcome. A good place to start would be to review PostgreSQL users, as we hand wrote those ourselves.

buzzaII commented 1 year ago

I did find this document (they seem to be sub resources ?) here for indexes and containers:

https://learn.microsoft.com/en-us/azure/templates/microsoft.documentdb/databaseaccounts/sqldatabases/containers?pivots=deployment-language-bicep

Woud these be supported by the code generator ?

matthchr commented 4 months ago

This is supported in Container for documentdb I believe.