SlideShare a Scribd company logo
MongoDB on Azure - Tips,
Tricks and Examples
MongoDB world 2014
DavidMakogon,EnterpriseArchitect,Azure
BrianBenz,Sr.TechnicalEvangelist,MicrosoftOpen
Technologies,Inc.
Agenda
• Azure
• MongoDB Options - NoSQL on Azure IaaS,
PaaS, SaaS
• MongoDB on Azure
• Q&A
Azure
Flexible
Your
Datacenter
Web
Sites
Cloud
Services
Virtual
Machines
Microsoft Azure
Web SitesCloud ServicesVirtual Machines
Linux / Windows
VNETs / VPN
Stateful OS
RDP / SSH
External ACL
Hyper-V compatible
Larger Attached
Storage
Multiple TCP / UDP
ports
Startup Scripts
VNETs / VPN
Stateless OS
RDP
External ACL
Staging / Prod
Larger instances
Multiple TCP / UDP
ports
Managed OS
Framework gallery
Git integration
Shared Disks
Instant Deploy
Staging / Prod
Free tier
Web Jobs
Site Backups
Managed OS
Which deployment model to use?
Yes
No
Yes
No Yes
No
Azure Virtual Machines – OS
Options
Windows Server
OpenSUSE and SUSE Enterprise
CentOS
Ubuntu
Oracle Linux
vmdepot.msopentech.com
Docs - azure.microsoft.com/documentation/
SDKs - azure.microsoft.com/downloads
CLIs - azure.microsoft.com/downloads
OSS DevOps - msopentech.com/projects
The Landscape – MongoDB on Azure
MongoDB is easily installable on Linux or
Windows
VMs up to 112GB + 16TB attached storage
Easy to ACL input traffic or just place in VNet
Hosted MongoDB too -
–MongoLab
–MongoDB Inc.
 SupportandAlerts
 CustomAdminTools
 BackupandRecover
 PerformanceAnalysis–SlowQueryAnalyzer
 MonitoringandSupport
MongoDB
Replica set hosted
on Azure
virtual machines
Replica Set
DriverYour
Application
Replica Sets: High Availability
Shards, config servers and mongos (router) hosted
on Azure virtual machines
Key range A-D
Sharding: Scalability
Key range E-G Key range G-Z
Your
Application
Mongos
(router)
Example: Provisioning a Replica Set
azure vm create mongocluster –o "vmdepot-40398-1-
1.vhd" username password -l "West US" -e 22
azure vm create mongocluster -o "vmdepot-40398-1-
1.vhd" username password -l "West US" -e 23 -c
azure vm create mongocluster –o "vmdepot-40398-1-
1.vhd" username password -l "West US" -e 24 -c
azure vm endpoint create mongoc9 27017 27017
azure vm endpoint create mongoc9-2 27018 27018
azure vm endpoint create mongoc9-3 27019 27019
…start mongod, initialize replica set
azure topic verb options
Command Line Syntax Overview
prompt>
account
account location
account affinity-group
vm
vm disk
vm endpoint
vm image
service
service cert
site
config
download
import
list
show
delete
start
restart
shutdown
capture
create
attach
detach
browse
set
username
password
dns-prefix
vm-name
lb-port
target-image-name
source-path
disk-image-name
size-in-gb
thumbprint
value
-v
-vv
Automation Support
•
•
Capabilities
•
•
•
•
•
• Fully Customize VM with Data Disks and Endpoint
Configuration
• Automate Virtual Network Settings
MongoDB on Azure - Tips, Tricks and Examples
MongoDB on Azure - Tips, Tricks and Examples
Where to learn more
Tutorial:Building a multi-tier cloud application onAzure using MongoLab, node.js, and
Socket.IO
http://aka.ms/C72pp8
Tutorial:Using MongoDB, Windows Communication Foundation, OData, and PowerBI
to build a Business Intelligence solution onAzure
http://aka.ms/Di7d4r
MongoDB onAzure VM -
http://aka.ms/Nnjwgu
Install MongoDB on a virtual machine running Windows Server inAzure:
http://aka.ms/Py8c6b
Node.js WebApplication with Storage on MongoDB (Virtual Machine):
Create anAzure web site that connects to MongoDB running on a virtual machine in
Azure:
http://aka.ms/Xyzxgd
Other Resources
Microsoft OpenTechnologies Blog:
http://msopentech.com/blog/
VM Depot:
http://vmdepot.msopentech.com
Azure development:
http://azure.microsoft.com
SDKs and Command Line Tools:
http://azure.microsoft.com/en-us/downloads/
AzureTraining Kit:
http://aka.ms/Mjqnk6
Microsoft Web Platform Installer:
http://www.microsoft.com/web/downloads/platform.aspx
Web Matrix
http://www.microsoft.com/web/webmatrix/
Project Kudu
https://github.com/projectkudu/kudu
Q&A

More Related Content

What's hot (20)

PDF
MySQL NDB 8.0 clusters in your laptop with dbdeployer
Giuseppe Maxia
 
PPTX
Moving applications to the cloud
Sergejus Barinovas
 
PDF
Enter the Dragon - SQL 2014 on Server Core PASS Summit 2014 Edition
Mark Broadbent
 
PDF
Dbdeployer, the universal installer
Giuseppe Maxia
 
PPTX
High performance WordPress
Mikel King
 
PDF
Test complex database systems in your laptop with dbdeployer
Giuseppe Maxia
 
PDF
Test like a_boss
Giuseppe Maxia
 
PPTX
Meetup - DevCloud and CloudStack 4.2
amoghvk
 
PDF
Globus toolkit4installationguide
Adarsh Patil
 
KEY
Nodejs web,db,hosting
Kenu, GwangNam Heo
 
PDF
Redundancy Rocks. Redundancy Rocks.
AOE
 
PPTX
Ansible
Vladimír Smitka
 
PPTX
How (not) to kill your MySQL infrastructure
Miklos Szel
 
PDF
MySQL High Availability Deep Dive
hastexo
 
PPTX
Building of a redundant management cluster for your Cloud
Cloud IaaS Provider Tucha
 
PDF
2008 MySQL Conference Recap
Chris Barber
 
PDF
MySQL for Large Scale Social Games
Yoshinori Matsunobu
 
PDF
MongoDB + Node.JS + EPAM ROAD
Szilveszter Molnár
 
PDF
Lockless in Seattle - Using In-Memory OLTP for Transaction Processing
Mark Broadbent
 
PPTX
MonkeyMan – a Perl5 framework for Apache CloudStack automation
Cloud IaaS Provider Tucha
 
MySQL NDB 8.0 clusters in your laptop with dbdeployer
Giuseppe Maxia
 
Moving applications to the cloud
Sergejus Barinovas
 
Enter the Dragon - SQL 2014 on Server Core PASS Summit 2014 Edition
Mark Broadbent
 
Dbdeployer, the universal installer
Giuseppe Maxia
 
High performance WordPress
Mikel King
 
Test complex database systems in your laptop with dbdeployer
Giuseppe Maxia
 
Test like a_boss
Giuseppe Maxia
 
Meetup - DevCloud and CloudStack 4.2
amoghvk
 
Globus toolkit4installationguide
Adarsh Patil
 
Nodejs web,db,hosting
Kenu, GwangNam Heo
 
Redundancy Rocks. Redundancy Rocks.
AOE
 
How (not) to kill your MySQL infrastructure
Miklos Szel
 
MySQL High Availability Deep Dive
hastexo
 
Building of a redundant management cluster for your Cloud
Cloud IaaS Provider Tucha
 
2008 MySQL Conference Recap
Chris Barber
 
MySQL for Large Scale Social Games
Yoshinori Matsunobu
 
MongoDB + Node.JS + EPAM ROAD
Szilveszter Molnár
 
Lockless in Seattle - Using In-Memory OLTP for Transaction Processing
Mark Broadbent
 
MonkeyMan – a Perl5 framework for Apache CloudStack automation
Cloud IaaS Provider Tucha
 

Similar to MongoDB on Azure - Tips, Tricks and Examples (20)

PDF
Mongo db world 2014 nyc mongodb on azure - tips tricks and examples
Brian Benz
 
PPTX
The three aaS's of MongoDB in Windows Azure
MongoDB
 
PPTX
MongoDB on Windows Azure
MongoDB
 
PDF
NoSQL on microsoft azure april 2014
Brian Benz
 
PPTX
MongoDB on Windows Azure
MongoDB
 
PPTX
MongoDB in Windows Azure - Evgeniy Maliy - Dnipropetrovsk MUG 140303
Victoria Malaya
 
PDF
2012-03-20 - Getting started with Node.js and MongoDB on MS Azure
Johannes Hoppe
 
PDF
Module 2 Azure Services for Web Developement.pdf
trwdcn
 
PPTX
Azure Fubdamentals (Az-900) presentation.
Puneet Kumar Bhatia (MBA, ITIL V3 Certified)
 
PPTX
Microsoft Azure Fundamentals- Section 2 Azure Compute.pptx
IPSpecialist
 
PDF
MongoDB Milan MUG June 2015 MongoDB + Azure + Siope OpenData
Ivan Fioravanti
 
PDF
MongoDB on Azure
Norberto Leite
 
PPTX
MongoDB for Beginners
Enoch Joshua
 
PPTX
How to migrate your existing MongoDB and Cassandra Apps to Azure Cosmos DB
Microsoft Tech Community
 
PDF
Create and Configure Windows Server 2016 VM in the Azure Step by Step
Ahmed Abdelwahed
 
PDF
MongoDB: Advantages of an Open Source NoSQL Database
FITC
 
PPTX
Tech-Spark: Exploring the Cosmos DB
Ralph Attard
 
PDF
Philadelphia MongoDB User Group - Your First MongoDB Application
Michael Lynn
 
PPTX
Microsoft azure overview
Ali Mkahal
 
PPTX
MongoDB and MongoMK Source Event
Yuval Ararat
 
Mongo db world 2014 nyc mongodb on azure - tips tricks and examples
Brian Benz
 
The three aaS's of MongoDB in Windows Azure
MongoDB
 
MongoDB on Windows Azure
MongoDB
 
NoSQL on microsoft azure april 2014
Brian Benz
 
MongoDB on Windows Azure
MongoDB
 
MongoDB in Windows Azure - Evgeniy Maliy - Dnipropetrovsk MUG 140303
Victoria Malaya
 
2012-03-20 - Getting started with Node.js and MongoDB on MS Azure
Johannes Hoppe
 
Module 2 Azure Services for Web Developement.pdf
trwdcn
 
Azure Fubdamentals (Az-900) presentation.
Puneet Kumar Bhatia (MBA, ITIL V3 Certified)
 
Microsoft Azure Fundamentals- Section 2 Azure Compute.pptx
IPSpecialist
 
MongoDB Milan MUG June 2015 MongoDB + Azure + Siope OpenData
Ivan Fioravanti
 
MongoDB on Azure
Norberto Leite
 
MongoDB for Beginners
Enoch Joshua
 
How to migrate your existing MongoDB and Cassandra Apps to Azure Cosmos DB
Microsoft Tech Community
 
Create and Configure Windows Server 2016 VM in the Azure Step by Step
Ahmed Abdelwahed
 
MongoDB: Advantages of an Open Source NoSQL Database
FITC
 
Tech-Spark: Exploring the Cosmos DB
Ralph Attard
 
Philadelphia MongoDB User Group - Your First MongoDB Application
Michael Lynn
 
Microsoft azure overview
Ali Mkahal
 
MongoDB and MongoMK Source Event
Yuval Ararat
 
Ad

More from MongoDB (20)

PDF
MongoDB SoCal 2020: Migrate Anything* to MongoDB Atlas
MongoDB
 
PDF
MongoDB SoCal 2020: Go on a Data Safari with MongoDB Charts!
MongoDB
 
PDF
MongoDB SoCal 2020: Using MongoDB Services in Kubernetes: Any Platform, Devel...
MongoDB
 
PDF
MongoDB SoCal 2020: A Complete Methodology of Data Modeling for MongoDB
MongoDB
 
PDF
MongoDB SoCal 2020: From Pharmacist to Analyst: Leveraging MongoDB for Real-T...
MongoDB
 
PDF
MongoDB SoCal 2020: Best Practices for Working with IoT and Time-series Data
MongoDB
 
PDF
MongoDB SoCal 2020: MongoDB Atlas Jump Start
MongoDB
 
PDF
MongoDB .local San Francisco 2020: Powering the new age data demands [Infosys]
MongoDB
 
PDF
MongoDB .local San Francisco 2020: Using Client Side Encryption in MongoDB 4.2
MongoDB
 
PDF
MongoDB .local San Francisco 2020: Using MongoDB Services in Kubernetes: any ...
MongoDB
 
PDF
MongoDB .local San Francisco 2020: Go on a Data Safari with MongoDB Charts!
MongoDB
 
PDF
MongoDB .local San Francisco 2020: From SQL to NoSQL -- Changing Your Mindset
MongoDB
 
PDF
MongoDB .local San Francisco 2020: MongoDB Atlas Jumpstart
MongoDB
 
PDF
MongoDB .local San Francisco 2020: Tips and Tricks++ for Querying and Indexin...
MongoDB
 
PDF
MongoDB .local San Francisco 2020: Aggregation Pipeline Power++
MongoDB
 
PDF
MongoDB .local San Francisco 2020: A Complete Methodology of Data Modeling fo...
MongoDB
 
PDF
MongoDB .local San Francisco 2020: MongoDB Atlas Data Lake Technical Deep Dive
MongoDB
 
PDF
MongoDB .local San Francisco 2020: Developing Alexa Skills with MongoDB & Golang
MongoDB
 
PDF
MongoDB .local Paris 2020: Realm : l'ingrédient secret pour de meilleures app...
MongoDB
 
PDF
MongoDB .local Paris 2020: Upply @MongoDB : Upply : Quand le Machine Learning...
MongoDB
 
MongoDB SoCal 2020: Migrate Anything* to MongoDB Atlas
MongoDB
 
MongoDB SoCal 2020: Go on a Data Safari with MongoDB Charts!
MongoDB
 
MongoDB SoCal 2020: Using MongoDB Services in Kubernetes: Any Platform, Devel...
MongoDB
 
MongoDB SoCal 2020: A Complete Methodology of Data Modeling for MongoDB
MongoDB
 
MongoDB SoCal 2020: From Pharmacist to Analyst: Leveraging MongoDB for Real-T...
MongoDB
 
MongoDB SoCal 2020: Best Practices for Working with IoT and Time-series Data
MongoDB
 
MongoDB SoCal 2020: MongoDB Atlas Jump Start
MongoDB
 
MongoDB .local San Francisco 2020: Powering the new age data demands [Infosys]
MongoDB
 
MongoDB .local San Francisco 2020: Using Client Side Encryption in MongoDB 4.2
MongoDB
 
MongoDB .local San Francisco 2020: Using MongoDB Services in Kubernetes: any ...
MongoDB
 
MongoDB .local San Francisco 2020: Go on a Data Safari with MongoDB Charts!
MongoDB
 
MongoDB .local San Francisco 2020: From SQL to NoSQL -- Changing Your Mindset
MongoDB
 
MongoDB .local San Francisco 2020: MongoDB Atlas Jumpstart
MongoDB
 
MongoDB .local San Francisco 2020: Tips and Tricks++ for Querying and Indexin...
MongoDB
 
MongoDB .local San Francisco 2020: Aggregation Pipeline Power++
MongoDB
 
MongoDB .local San Francisco 2020: A Complete Methodology of Data Modeling fo...
MongoDB
 
MongoDB .local San Francisco 2020: MongoDB Atlas Data Lake Technical Deep Dive
MongoDB
 
MongoDB .local San Francisco 2020: Developing Alexa Skills with MongoDB & Golang
MongoDB
 
MongoDB .local Paris 2020: Realm : l'ingrédient secret pour de meilleures app...
MongoDB
 
MongoDB .local Paris 2020: Upply @MongoDB : Upply : Quand le Machine Learning...
MongoDB
 
Ad

Recently uploaded (20)

PDF
UiPath Agentic AI ile Akıllı Otomasyonun Yeni Çağı
UiPathCommunity
 
PPTX
MARTSIA: A Tool for Confidential Data Exchange via Public Blockchain - Poster...
Michele Kryston
 
PDF
The Growing Value and Application of FME & GenAI
Safe Software
 
PDF
Hyderabad MuleSoft In-Person Meetup (June 21, 2025) Slides
Ravi Tamada
 
PPTX
UserCon Belgium: Honey, VMware increased my bill
stijn40
 
PDF
5 Things to Consider When Deploying AI in Your Enterprise
Safe Software
 
PDF
Salesforce Summer '25 Release Frenchgathering.pptx.pdf
yosra Saidani
 
PPTX
01_Approach Cyber- DORA Incident Management.pptx
FinTech Belgium
 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
PDF
“Scaling i.MX Applications Processors’ Native Edge AI with Discrete AI Accele...
Edge AI and Vision Alliance
 
PDF
Enhancing Environmental Monitoring with Real-Time Data Integration: Leveragin...
Safe Software
 
PDF
Plugging AI into everything: Model Context Protocol Simplified.pdf
Abati Adewale
 
PDF
Darley - FIRST Copenhagen Lightning Talk (2025-06-26) Epochalypse 2038 - Time...
treyka
 
PPTX
Enabling the Digital Artisan – keynote at ICOCI 2025
Alan Dix
 
PPTX
𝙳𝚘𝚠𝚗𝚕𝚘𝚊𝚍—Wondershare Filmora Crack 14.0.7 + Key Download 2025
sebastian aliya
 
PDF
Database Benchmarking for Performance Masterclass: Session 2 - Data Modeling ...
ScyllaDB
 
DOCX
Daily Lesson Log MATATAG ICT TEchnology 8
LOIDAALMAZAN3
 
PDF
Python Conference Singapore - 19 Jun 2025
ninefyi
 
PPTX
Smarter Governance with AI: What Every Board Needs to Know
OnBoard
 
PDF
ArcGIS Utility Network Migration - The Hunter Water Story
Safe Software
 
UiPath Agentic AI ile Akıllı Otomasyonun Yeni Çağı
UiPathCommunity
 
MARTSIA: A Tool for Confidential Data Exchange via Public Blockchain - Poster...
Michele Kryston
 
The Growing Value and Application of FME & GenAI
Safe Software
 
Hyderabad MuleSoft In-Person Meetup (June 21, 2025) Slides
Ravi Tamada
 
UserCon Belgium: Honey, VMware increased my bill
stijn40
 
5 Things to Consider When Deploying AI in Your Enterprise
Safe Software
 
Salesforce Summer '25 Release Frenchgathering.pptx.pdf
yosra Saidani
 
01_Approach Cyber- DORA Incident Management.pptx
FinTech Belgium
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
“Scaling i.MX Applications Processors’ Native Edge AI with Discrete AI Accele...
Edge AI and Vision Alliance
 
Enhancing Environmental Monitoring with Real-Time Data Integration: Leveragin...
Safe Software
 
Plugging AI into everything: Model Context Protocol Simplified.pdf
Abati Adewale
 
Darley - FIRST Copenhagen Lightning Talk (2025-06-26) Epochalypse 2038 - Time...
treyka
 
Enabling the Digital Artisan – keynote at ICOCI 2025
Alan Dix
 
𝙳𝚘𝚠𝚗𝚕𝚘𝚊𝚍—Wondershare Filmora Crack 14.0.7 + Key Download 2025
sebastian aliya
 
Database Benchmarking for Performance Masterclass: Session 2 - Data Modeling ...
ScyllaDB
 
Daily Lesson Log MATATAG ICT TEchnology 8
LOIDAALMAZAN3
 
Python Conference Singapore - 19 Jun 2025
ninefyi
 
Smarter Governance with AI: What Every Board Needs to Know
OnBoard
 
ArcGIS Utility Network Migration - The Hunter Water Story
Safe Software
 

MongoDB on Azure - Tips, Tricks and Examples

  • 1. MongoDB on Azure - Tips, Tricks and Examples MongoDB world 2014 DavidMakogon,EnterpriseArchitect,Azure BrianBenz,Sr.TechnicalEvangelist,MicrosoftOpen Technologies,Inc.
  • 2. Agenda • Azure • MongoDB Options - NoSQL on Azure IaaS, PaaS, SaaS • MongoDB on Azure • Q&A
  • 5. Web SitesCloud ServicesVirtual Machines Linux / Windows VNETs / VPN Stateful OS RDP / SSH External ACL Hyper-V compatible Larger Attached Storage Multiple TCP / UDP ports Startup Scripts VNETs / VPN Stateless OS RDP External ACL Staging / Prod Larger instances Multiple TCP / UDP ports Managed OS Framework gallery Git integration Shared Disks Instant Deploy Staging / Prod Free tier Web Jobs Site Backups Managed OS
  • 6. Which deployment model to use? Yes No Yes No Yes No
  • 7. Azure Virtual Machines – OS Options Windows Server OpenSUSE and SUSE Enterprise CentOS Ubuntu Oracle Linux
  • 12. OSS DevOps - msopentech.com/projects
  • 13. The Landscape – MongoDB on Azure MongoDB is easily installable on Linux or Windows VMs up to 112GB + 16TB attached storage Easy to ACL input traffic or just place in VNet Hosted MongoDB too - –MongoLab –MongoDB Inc.
  • 14.  SupportandAlerts  CustomAdminTools  BackupandRecover  PerformanceAnalysis–SlowQueryAnalyzer  MonitoringandSupport
  • 16. Replica set hosted on Azure virtual machines Replica Set DriverYour Application Replica Sets: High Availability
  • 17. Shards, config servers and mongos (router) hosted on Azure virtual machines Key range A-D Sharding: Scalability Key range E-G Key range G-Z Your Application Mongos (router)
  • 18. Example: Provisioning a Replica Set azure vm create mongocluster –o "vmdepot-40398-1- 1.vhd" username password -l "West US" -e 22 azure vm create mongocluster -o "vmdepot-40398-1- 1.vhd" username password -l "West US" -e 23 -c azure vm create mongocluster –o "vmdepot-40398-1- 1.vhd" username password -l "West US" -e 24 -c azure vm endpoint create mongoc9 27017 27017 azure vm endpoint create mongoc9-2 27018 27018 azure vm endpoint create mongoc9-3 27019 27019 …start mongod, initialize replica set
  • 19. azure topic verb options Command Line Syntax Overview prompt> account account location account affinity-group vm vm disk vm endpoint vm image service service cert site config download import list show delete start restart shutdown capture create attach detach browse set username password dns-prefix vm-name lb-port target-image-name source-path disk-image-name size-in-gb thumbprint value -v -vv
  • 20. Automation Support • • Capabilities • • • • • • Fully Customize VM with Data Disks and Endpoint Configuration • Automate Virtual Network Settings
  • 23. Where to learn more Tutorial:Building a multi-tier cloud application onAzure using MongoLab, node.js, and Socket.IO http://aka.ms/C72pp8 Tutorial:Using MongoDB, Windows Communication Foundation, OData, and PowerBI to build a Business Intelligence solution onAzure http://aka.ms/Di7d4r MongoDB onAzure VM - http://aka.ms/Nnjwgu Install MongoDB on a virtual machine running Windows Server inAzure: http://aka.ms/Py8c6b Node.js WebApplication with Storage on MongoDB (Virtual Machine): Create anAzure web site that connects to MongoDB running on a virtual machine in Azure: http://aka.ms/Xyzxgd
  • 24. Other Resources Microsoft OpenTechnologies Blog: http://msopentech.com/blog/ VM Depot: http://vmdepot.msopentech.com Azure development: http://azure.microsoft.com SDKs and Command Line Tools: http://azure.microsoft.com/en-us/downloads/ AzureTraining Kit: http://aka.ms/Mjqnk6 Microsoft Web Platform Installer: http://www.microsoft.com/web/downloads/platform.aspx Web Matrix http://www.microsoft.com/web/webmatrix/ Project Kudu https://github.com/projectkudu/kudu
  • 25. Q&A