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-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.
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
- 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
- On the Plan Services page, select the services you need. I have selected Virtual Machine Clouds and SQL Servers
- Go to the next page and you will find the plan has been created.
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.
- 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.
Next couple of screenshots are to adjust other settings (e.g. Network and hardware profile, vmtemplate etc.) as defined in your SCVMM.
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
The user is now created.
Congratulations! Your Admin Portal is now fully configured and ready to provision your cloud services.
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 firstname.lastname@example.org
- In the next screen, you will see the default dashboard.
- Click + New
- In the next screen, select Standalone Virtual Machine > From Gallery
- On the Virtual Machine configuration page, select the VM template created earlier. My VM template is called Azure_VM_Template
- The following screen is to Create Virtual Machine. Specify the credentials, and, proceed to the next screen.
- In the next screen, select the network adapter.
It will start creating the VM.
Monitor the status at the bottom of the page.
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.
Once Virtual Machine is created successfully, it will show up in your Virtual Machines tab.
Hurray!! We have our first VM created. You can double verify this in Hyper-V Manager on your physical host as well.
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
- Give a database name you want to create.
- Specify a user and password for the user which will be created as a part of database creation.
You will find the same database in your SQL Server instance as well.
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!