{"id":23582779,"url":"https://github.com/agazoth/axcosmosdb","last_synced_at":"2025-10-10T23:40:09.391Z","repository":{"id":132359402,"uuid":"103848821","full_name":"Agazoth/AxCosmosDB","owner":"Agazoth","description":"A Powershell module that utilizes Azure CosmosDB","archived":false,"fork":false,"pushed_at":"2018-01-25T05:57:50.000Z","size":333,"stargazers_count":3,"open_issues_count":2,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-21T11:06:57.674Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PowerShell","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/Agazoth.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-09-17T17:40:32.000Z","updated_at":"2024-08-30T17:26:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"9122aeef-8bab-42ee-a21f-57104357bb7b","html_url":"https://github.com/Agazoth/AxCosmosDB","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Agazoth/AxCosmosDB","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Agazoth%2FAxCosmosDB","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Agazoth%2FAxCosmosDB/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Agazoth%2FAxCosmosDB/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Agazoth%2FAxCosmosDB/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Agazoth","download_url":"https://codeload.github.com/Agazoth/AxCosmosDB/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Agazoth%2FAxCosmosDB/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279005577,"owners_count":26083920,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-12-27T01:13:36.049Z","updated_at":"2025-10-10T23:40:09.386Z","avatar_url":"https://github.com/Agazoth.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AxCosmosDB\n\nThis module lets you create, modify and delete CosmosDB databases, Collections and Documents. I created this module, because I'm a stubborn old geezer. I wanted to prove, that Powershell can reach and manipulate the Cosmos without wrapping C#.\n\nThe trick was to find a way to substitute the huma readable Id with the inhuman _rid, when building the url and authorization string. The intriguing thing is, that the documentation clearly states, that you should use the human readable id NOT the _rid, but all the examples clearly use the _rid.\n\n![alt NOT the _rid](https://github.com/Agazoth/AxCosmosDB/blob/master/NotTheRid.PNG)\n\n![alt But the link says otherwise](https://github.com/Agazoth/AxCosmosDB/blob/master/OrMaybeAnyway.PNG)\n\nFunctionality:\nCreate a CosmosDB, note the URI and the Key and you are good to go.\n\nConverts any hashtable to a JSON document and stores it in a Collection.\n\n#Instructions\n\n```powershell\n# One time setup\n    # Download the repository\n    # Unblock the zip\n    # Extract the AxCosmosDB folder to a module path (e.g. $env:USERPROFILE\\Documents\\WindowsPowerShell\\Modules\\)\n\n    #Simple alternative, if you have PowerShell 5, or the PowerShellGet module:\n        Install-Module AxCosmosDB\n\n# Import the module.\n    Import-Module AxCosmosDB \n\n# Get commands in the module\n    Get-Command -Module AxCosmosDB\n\n# Get help for a command\n    Get-Help New-CosmosDocument -Full\n\n\n\n```\n\n# Caveats\nThere is some kind of bug in the New-CosmosDocumentQuery. Only a general query returns anything. If additional parameters are added, nothing is returned.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagazoth%2Faxcosmosdb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagazoth%2Faxcosmosdb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagazoth%2Faxcosmosdb/lists"}