[Part-4]Private Cloud: Demo of provisioning VM and SQL DB using Tenant portal   1 comment


This is fourth post in the series of blog posts on how to build own Private Cloud using Windows Azure Pack (WAP). 

Here is a list of topics for the entire series:

 

[Part-1]Private Cloud: Introduction and installation of pre-requisites

[Part-2]Private Cloud: Configure SCVMM and SPF

[Part-3]Private Cloud: Install and Configure WAP

[Part-4]Private Cloud: Demo of provisioning VM and SQL DB using Tenant portal.

[Part-5]Private Cloud: Some common issues and troubleshooting tips.

 

In this blog post, we will create a plan, assign this plan to the user and then provision a Virtual Machine and a Database.

Before we proceed, let me explain what is a plan and why do we need to assign a user to it.

 

2-user_and_plan

The above diagram shows the relationship between Admin and Tenant portal. As you see in the above diagram, the IT admins create the plan and the Customers (Tenants) must subscribe to a plan to start using the services. Once tenants subscribe to a plan, the tenant is able to provision services against a resource cloud based on the quota and add-ons for that cloud defined in the plan.

Alright, let’s proceed with the agenda of this blog post. As I said earlier, in this blog post, we will create a plan, assign this plan to the user and then provision a Virtual Machine and a Database. I have divided all this work in the following two sections:

Section-1: Configure Subscription

  • Create a plan
  • Assign a user to the plan

Section-2: Provisioning

  • Create a VM
  • Provision a SQL Server Database

Let’s configure a subscription first.

Section-1: Configure Subscription

In this section, we will first create a plan, select services for this plan, furnish other details and then we will assign a user to this plan.

I. Create a plan.

To create a new plan,

  • Go to the Admin Portal
  • Click Plans
  • Select Create a New Hosting Plan

3-create_a_plan_1

 

  • On the Plan Services page, select the services you need. I have selected Virtual Machine Clouds and SQL Servers

 

4-create_a_plan_2

 

  • Go to the next page and you will find the plan has been created.

 

5-create_a_plan_3

 

Now that plan is created, we need to define the capacity for the hardware, networking and other resources which this plan can host.

  • Go to the plan we created (Azure, in this case) to find a dashboard similar to the screenshot below.

6-create_a_plan_4

 

  • In the dashboard, click on VM Machine Clouds and you will find the below screen where you need to specify the capacity of each resource.

 

7-create_a_plan_5

Next couple of screenshots are to adjust other settings (e.g. Network and hardware profile, vmtemplate etc.) as defined in your SCVMM.

dashboard

 

8.1-create_a_plan_6

Now, our plan is created and configured successfully.

 

II. Assign a user to the Plan

We will now assign a user to the plan we recently created.

  • Go the Admin Portal > User Accounts and click New
  •  You will see the following screen. Click Quick Create
  • Specify the credentials click Create

 

9-assign_user_1

The user is now created.

Congratulations! Your Admin Portal is now fully configured and ready to provision your cloud services.

 

Section-2: Provisioning

In this section, we will create and configure a VM and provision a SQL Server database.

I. Create a VM

To create a VM,

  • Go to https://localhost:30081 and log into the Tenant portal.
  • Specify the credentials for the user created in the previous section. For me, the user name is azurepack@manishcloud.com

 

10-create_vm_1

  •  In the next screen, you will see the default dashboard.
  • Click + New

11-create_vm_2

 

  • In the next screen, select Standalone Virtual Machine > From Gallery

 

12-create_vm_3

  • On the Virtual Machine configuration page, select the VM template created earlier. My VM template is called Azure_VM_Template

 

1

  • The following screen is to Create Virtual Machine. Specify the credentials, and, proceed to the next screen.

 

2

  • In the next screen, select the network adapter.

 

3

We have supplied all the information to create VM. Click on 10-a-wap

It will start creating the VM.

Monitor the status at the bottom of the page.

 

18-create_vm_9

Behind the scenes, it creates a job in SCVMM. That is another way to monitor the status.

Go to SCVMM console > Job to see the running status.

 

scvmm

Once Virtual Machine is created successfully, it will show up in your Virtual Machines tab.

 

4

 

Hurray!! We have our first VM created. You can double verify this in Hyper-V Manager on your physical host as well.

20-create_vm_11

 

II. Provision a SQL Server Database

Now that our Virtual Machine is successfully created, we will provision a SQL Server database.

  • Go to Tenant Portal > New > SQL Server Databases

 

21-provision_sql_db_1

 

  • Give a database name you want to create.

 

22-provision_sql_db_2

 

  • Specify a user and password for the user which will be created as a part of database creation.

 

23-provision_sql_db_3

  •  Click  10-a-wap and you will see your database created.

 

24-provision_sql_db_4

 

You will find the same database in your SQL Server instance as well.

final

 

Congratulations! You now have a full-fledged Private Cloud working.

In the next and final part of this series, I will cover some potentials issues you may encounter during this whole exercise along with some troubleshooting tips. Stay tuned for the next post on [Part-5]Private Cloud: Some common issues and troubleshooting tips

Hope you are enjoying the series so far. Feel free to drop a line if you have any comments, feedback.

Happy building Private Cloud!

One response to “[Part-4]Private Cloud: Demo of provisioning VM and SQL DB using Tenant portal

Subscribe to comments with RSS.

  1. Pingback: [Part-5]Private Cloud: Some common issues and troubleshooting tips | SQLactions.com

Leave a Comment

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: