{"id":21036936,"url":"https://github.com/azurecosmosdb/management-sdk-samples","last_synced_at":"2026-02-16T20:34:40.036Z","repository":{"id":262329631,"uuid":"864197543","full_name":"AzureCosmosDB/management-sdk-samples","owner":"AzureCosmosDB","description":"Repository of Azure Management SDK samples for creating and updating Azure Cosmos DB resources in C#, Python, JavaScript and Java","archived":false,"fork":false,"pushed_at":"2026-01-11T13:50:00.000Z","size":78,"stargazers_count":0,"open_issues_count":0,"forks_count":6,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-01-11T17:29:21.828Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AzureCosmosDB.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":"SUPPORT.md","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-09-27T17:15:56.000Z","updated_at":"2026-01-11T13:50:04.000Z","dependencies_parsed_at":"2024-11-11T21:33:00.097Z","dependency_job_id":"75a96ae6-d793-4309-b966-cf0666d4c02b","html_url":"https://github.com/AzureCosmosDB/management-sdk-samples","commit_stats":null,"previous_names":["azurecosmosdb/management-sdk-samples"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AzureCosmosDB/management-sdk-samples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AzureCosmosDB%2Fmanagement-sdk-samples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AzureCosmosDB%2Fmanagement-sdk-samples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AzureCosmosDB%2Fmanagement-sdk-samples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AzureCosmosDB%2Fmanagement-sdk-samples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AzureCosmosDB","download_url":"https://codeload.github.com/AzureCosmosDB/management-sdk-samples/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AzureCosmosDB%2Fmanagement-sdk-samples/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29517613,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T18:37:19.720Z","status":"ssl_error","status_checked_at":"2026-02-16T18:36:46.920Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-19T13:23:17.122Z","updated_at":"2026-02-16T20:34:40.027Z","avatar_url":"https://github.com/AzureCosmosDB.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Azure Management SDK Samples for Azure Cosmos DB\n\nThis repository contains Azure Management SDK samples for Azure Cosmos DB to create and update Azure Cosmos DB resources through its resource provider (control plane). Azure resource providers are used to provision and manage resources in Azure.\n\nThe samples can be used to support users who are adopting Microsoft Entra ID and disabling key-based access to their data, and want to manage their Cosmos resources using an SDK rather than using Bicep templates, PowerShell, or Azure CLI.\n\n## Resource Operations\n\nThese samples demonstrate create or update operations on the following Cosmos DB resources, including:\n\n- Accounts:\n  - Serverless, IP firewall rules, and disabling local auth (key-based data plane access) to force Entra ID for Auth-N and role-based access control (RBAC) for Auth-Z\n- Databases\n- Containers:\n  - Hierarchical partition keys, index policies, unique keys, TTL, conflict resolution policies, autoscale throughput\n- Throughput\n  - Update autoscale or manual throughput\n- RBAC definitions:\n  - Creating a built-in definition, creating a custom RBAC definition\n- RBAC assignments\n\nThe samples also include some other handy conveniences for developers working with Cosmos resources including:\n\n- Getting your IP address to add to a Firewall Rule, add Portal Access and Azure data center access\n- Getting your principal id for RBAC assignments\n\n## Languages available\n\nThe samples are available in 5 languages including:\n\n- [C#](/Csharp/README.md)\n- [Python](/Python/README.md)\n- [Go](/Go/README.md)\n- [Java](/Java/readme.md)\n- [JavaScript](/JavaScript/README.md)\n\n## VS Code debugging (recommended)\n\nThis repo contains samples in multiple languages/frameworks. Use the `*.code-workspace` files at the repo root to open and debug a single language sample at a time.\n\nEach workspace file opens only that language's folder (for example, `Python.code-workspace` opens `Python/`). This keeps debug configuration, settings, and environment-file handling isolated per sample.\n\nTo avoid VS Code debug adapter errors when you don't have every language extension installed, open the workspace file for the language you're working on:\n\n- [Python.code-workspace](Python.code-workspace)\n- [Csharp.code-workspace](Csharp.code-workspace)\n- [Go.code-workspace](Go.code-workspace)\n- [Java.code-workspace](Java.code-workspace)\n- [JavaScript.code-workspace](JavaScript.code-workspace)\n\n### How to open a workspace file\n\nIn VS Code:\n\n1. Use **File → Open Workspace from File…**\n2. Pick the `*.code-workspace` file you want (for example, `Python.code-workspace`).\n\nThen use **Run and Debug** (or press **F5**) to start that sample.\n\nNotes:\n\n- Opening the repo as a normal folder is fine for browsing, but the run/debug configurations are intentionally isolated per language workspace file.\n- If you switch between languages, just open the other workspace file.\n\n## Azure Management SDK source code repositories\n\nAll Azure Management SDKs are open source. For more information and the source for the underlying Azure Management SDKs, visit their GitHub repositories.\n\n- [C#](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/cosmosdb/Azure.ResourceManager.CosmosDB)\n- [Python](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/cosmos/azure-mgmt-cosmosdb)\n- [Go](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/cosmos/armcosmos)\n- [Java](https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/resourcemanager/azure-resourcemanager-cosmos)\n- [JavaScript](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/cosmosdb/arm-cosmosdb)\n\n## How to file issues and get help  \n\nAzure Management SDKs are fully supported by Microsoft. For issues related to them, please open a support ticket. GitHub issues in this repository are not the correct channel for support.\n\nFor questions, feature requests or issues related to just the samples themselves, please use GitHub Issues.\nPlease search the existing issues before filing new ones to avoid duplicates.\n\n## Contributing\n\nThis project welcomes contributions and suggestions.  Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit [https://cla.opensource.microsoft.com](https://cla.opensource.microsoft.com).\n\nWhen you submit a pull request, a CLA bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\n## Trademarks\n\nThis project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow [Microsoft's Trademark \u0026 Brand Guidelines](https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks/usage/general).\n\nUse of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship.\nAny use of third-party trademarks or logos are subject to those third-party's policies.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazurecosmosdb%2Fmanagement-sdk-samples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fazurecosmosdb%2Fmanagement-sdk-samples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazurecosmosdb%2Fmanagement-sdk-samples/lists"}