1

I have some json files which i want to upload on Azure DocumentDB. How can do this using ARM powershell.

Even i would like to write DocumentDB queries using ARM Powershell.

2 Answers 2

1

I've written a blog post which answers this question, Managing DocumentDB with Powershell and includes a script and a walkthrough of what the script does and how it works. I wrote this to be consumed by a VSTS Build/Release task, which I'm just writing up and should be publishing in the next few days. (This lets you choose "Publish document to DocumentDB" in your release management process.)

Sign up to request clarification or add additional context in comments.

3 Comments

Your SSL is outdated, and the site is down. Tag me when its up :)
Will do. Thanks - been meaning to do that for a week or two! You should be able to get to the site if you ignore the warning.
Except plugin error: "Fatal error: Uncaught Error: Class 'ApplicationInsights\WordPress\Server_Instrumentation' not found".
0

There are no built-in Azure PowerShell cmdlets for CRUD operations with DocumentDB. You'd need to write your own. Alternatively, you can use the REST API directly, or work with one of the language SDK's.

4 Comments

Thanks. Could you please provide some references for the REST API.
Is there any plan in future to handle DocumentDB using powershell
DocumentDB REST API: A google search should suffice. Future plans / roadmap can't be discussed here.
@Amit Here is the MSDN link for documentdb rest apis msdn.microsoft.com/en-us/library/azure/mt622086.aspx SideNote: Wanted to shared this link of Powershell cmdlets for DocDB GitHub project (This is not officially supported), hope this helps to get you started github.com/savjani/Azure-DocumentDB-Powershell-Cmdlets

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.