Dynamic Deploy Blog
RSS Feed Go to Dynamic Deploy
  • Home
  • About Us
  • Release Notes
  • App Categories
  • Roadmap

Follow @opensourceazure

Point-Click Deploy PostgreSQL on Windows Azure

PostgreSQL is the most stable Open Source database out there. Arguably, it is more enterprise quality than other Open Source databases out there. In this article, I will show you how to deploy PostgreSQL on Windows Azure using Dynamic Deploy. I will also show you how to create a tablespace on an external drive and create a database on that tablespace.

 

Windows Azure Platform

 

Table of Contents

  • 1 Disclaimer
  • 2 Pre-requisites
  • 3 Deployment Procedure
          • 3.0.0.0.1
  • 4 Post-Deployment
  • 5 Creating a Sample Database
      • 5.0.1 Happy Deploying!

Disclaimer

Please read the Disclaimer and Terms & Conditions before making any deployment decisions

Pre-requisites

Create a Windows Azure Subscription if you don’t have one already

Deployment Procedure

1) Navigate to Dynamic Deploy PostgreSQL Page

    Sign-In/Sign-Up

image

2) Click on Deploy

image

 

3) Select a supported Datacenter

Each application has a database affinity in Dynamic Deploy. This is to avoid any outbound data transfer costs.

image

4) Upload your .publishsettings file (You can click this link to download your .publishsettings file)

We encrypt all the subscription information using certificates.

image

5) Select a subscription

If you have multiple subscriptions, a dropdown list will pop-up giving you a choice of subscription for deployment.

6) Storage and Compute

Select an existing Storage Account and a Hosted Service or create new ones if required

image

Here we conduct some tests for accessing your storage account. It may take a couple of minutes.

image

7) Select VM Size

Be careful when selecting VM sizes as this will affect your cost and performance too.

NOTE: Extra Small VMs are very slow for software like this. So, your experience will be deteriorated.

image

Note down username and create a password for the administrator account

8 ) Accept the Terms & Conditions to start the deployment

image

Once the deployment is complete, you will see the Deployment Status green, the deployment time specified, and the list of virtual machine instances. In the figure below we have only one instance deployed.

image

 

Post-Deployment

1) RDP into the Virtual Machine from the Windows Azure Portal

2) Navigate to

C:\Program Files\PostgreSQL\9.2\bin

 

3) Open pgAdmin3.exe

image

4) Right-Click Connect to PostgreSQL

image

Password: postgres

image

 

Once connected, you can play around with the database

image

5) Attach an external Disk

Then, I attached, formatted and mounted an external empty hard-disk to the VM. Procedure is well documented here.

Next, I created a new tablespace (ftb_space) on F:\pgsql\data (F: is the newly mounted drive)

( I had to give Everyone write permissions to the external folder)

image

 

image

 

Creating a Sample Database

Finally, I followed the procedure for creating a new sample database (dvdrental) from here.

http://www.postgresqltutorial.com/load-postgresql-sample-database/

When you create a new database, make sure you select the new tablespace to store the data on the external disk.

image

 

 

image

 

You can also connect to the database remotely over port 5432. You will need to create a new TCP endpoint on the VM from Windows Azure portal

Happy Deploying!

Dynamic Deploy

admin on June 5, 2013 | Filed Under Database

  • Eko Suprapto Wibowo

    Detailed post!

    Thanks!



Categories

  • AAMP (Azure Apache MySQL PHP) (2)
  • Announcements (5)
  • appsforazure (3)
  • Article (1)
  • CloudVHD (1)
  • Collaboration (1)
  • CRM (1)
  • Database (2)
  • Developers (2)
  • IaaS (1)
  • Launch (3)
  • NoSQL (3)
  • Patterns (1)
  • Search (3)
  • Storage (2)
  • Tomcat (2)
  • Uncategorized (2)
  • Walkthroughs (3)
  • Web Servers (1)

Recent Posts

  • What is a Web Site Capability Model?
  • Deploy Neo4j on Windows Azure in minutes
  • Deploy ElasticSearch 1.0 on Azure in minutes
  • Apps for Azure – New Windows 8.1 Store App Released
  • What is Windows Azure Web Sites All About?

Tag Cloud

Cassandra Alfresco Collaboration postgresql AMPPS CRM SOLR S3 couchdb windows store graph websites Storage Object Distribution mongodb workspaces SugarCRM Tour Open source AAMP File Projection JBoss PHP Azure Tomcat Neo4j Search Blobs ElasticSearch MySQL Apache NoSQL Java

Archives

  • February 2014
  • January 2014
  • October 2013
  • July 2013
  • June 2013
  • May 2013
  • February 2013
  • January 2013
  • May 2012
  • January 2012

Pages

  • About Us
    • Contact Us
  • Release Notes
  • Roadmap
  • App Categories
    • Quick Product Tour




Copyright Dynamic Deploy – The cloud deployment platform. .