What You Need and Want With Windows Azure Part II

One of the most useful tools to use in Windows Azure Development is the Windows Azure MMC.  The Microsoft Management Console, or MMC, is the management console that many of the Windows Server Management interfaces can plug into.  The Windows Azure Team has put together the Windows Azure specific MMC Console Plugin that is available for download on Microsoft MSDN Code Site at http://code.msdn.microsoft.com/windowsazuremmc.

 

Windows Azure MMC Code Site
Windows Azure MMC Code Site

 

When you navigate to the page, click on the tab for downloads and you will find three different files;

  • WindowsAzureMMC.exe
  • PerfMon-Friendly Log Viewer Plugin
  • PerfMon-Friendly Log Viewer Plugin (Source Only)

The main file you’ll need to download is the WindowsAzureMMC.exe file.  Once this file is downloaded, run the executable.  An installation wizard will appear, just click next and step through each of the steps accepting any defaults.

 

Windows Azure Management Tool Installation
Windows Azure Management Tool Installation

 

Once the executable runs it should pop up a Windows Explorer Window, if not navigate to where the files where just installed (unzipped) to.  By default the installer places them in C:\WindowsAzureMMC\.  Find the file StartHere.cmd located in the installation directory and fun the file.

 

StartHere.cmd
StartHere.cmd

 

When the file is executed a DOS prompt will flicker, and another configuration wizard titled Windows Azure Management Tools will appear.

 

Configuration Wizard for the Windows Azure Management Tools
Configuration Wizard for the Windows Azure Management Tools

 

Click next and the installation will start, checking each of the dependencies required to execute the MMC.

 

Detecting Required Software
Detecting Required Software

 

Continue to click any next prompts, and then you will have the Windows Azure MMC Console open once the StartHere.cmd finishes executing.  Click close on the configuration wizard.

 

Installation Completed
Installation Completed

 

The MMC will now be displayed on screen as shown below.

 

Windows Azure Management Tool (MMC)
Windows Azure Management Tool (MMC)

 

Open the Windows Azure Management section by clicking on the small tree view arrow on the left hand side.  The tree view will open up to a Service Management Node with a Hosted Services, Storage Services, and Affinity Groups listed underneath the node.  Select the actual Service Management Node so that the middle window shows the connection form shown here.

 

Windows Azure MMC Services Management Node Connection
Windows Azure MMC Services Management Node Connection

 

Now navigate back to Windows Azure Platform Web Interface (http://windows.azure.com).  Click on the project displayed on the main screen to select it.

 

Windows Azure Portland Interface
Windows Azure Portland Interface

 

When the follow page displays, click on the Account tab at the center top of the page.

 

Windows Azure Project
Windows Azure Project

 

When the Account Page finishes rendering look at the very bottom to locate the subscription ID.

 

Windows Azure Project Account Properties
Windows Azure Project Account Properties

 

Enter the subscription ID into the form.  Now click on the ellipsis button on the form so the certificates that are available are displayed.

 

API Certificate
API Certificate

 

Click on the underlined link on the certificate you want to use (sometimes there are a few options, depending on what is installed on the machine already).  A properties dialog should appear when you click on the underlined link button.

 

Certificate Details
Certificate Details

 

Click on the Details Tab on the top of the properties dialog window.

 

Certificate Details, Details Tab
Certificate Details, Details Tab

 

Now click on the Copy to File Button.  An export process will start for the certificate.  Click on next.  On the next screen make sure No, do not export the private key is selected.  The next screen selects the DER encoded binary X.509 (.CER) option.  Verify this setting and then click next.

 

Certificate Export Wizard
Certificate Export Wizard

 

Click on next and then enter the path and filename where you want to save the certificate.

 

Save As File Name for Certificate
Save As File Name for Certificate

 

Now that you have the certificate, return to the Windows Azure Platform Web Interface (http://windows.azure.com).  Navigate to the Account Tab section of the site again.  On that page click on the Manage My API Certificates.  This is the same page as shown above in the image captioned “Windows Azure Project Account Properties“.  Once the page displays click on the Choose File button on the page.  Find the location the certificate was saved and select the certificate.  Now click the upload button to upload the file to the Windows Azure Account.

 

API Certificates Upload
API Certificates Upload

 

When the file is done uploading the page will update and show something similar to what is shown in the next screenshot.

 

API Certificates, Finished Uploading
API Certificates, Finished Uploading

 

Now you can click on the OK button, if you haven’t already, to confirm the API Certificate in the Windows Azure MMC.  Click on the Connect button in the far right window area of the MMC.  It should take a second but the connection should occur.  You can tell by the Default storage account form drop down becomes enabled.  At this time though, since we haven’t placed anything in storage or started any storage services there will be nothing displayed in the drop down.

At this point the MMC is functional; there just isn’t much to look at in the Windows Azure Account yet.  So let’s change that and setup some sample services.  First head back over to the Windows Azure Platform Web Interface (http://windows.azure.com).  Once you’re in click on the project as we did before so that it is the focus point.  Click on the +New Service link in the top right of the main page window section.

 

Starting a Windows Azure Service
Starting a Windows Azure Service

 

The next screen will display the options to create a Windows Azure Storage Account or a Hosted Services Role.  Click on the Windows Azure Storage Account option.

 

Windows Azure Create a Service
Windows Azure Create a Service

 

On the screen that renders fill out the service label and description.  Both of these fields are mostly free text, allowing spaces and special characters.  Click next when you have filled out the label and description.

 

Services Properties
Services Properties

 

The next form that comes up has the public storage account name.  This field must be compliant with URI naming conventions.  The idea also is that these storage services use a RESTful API, it is best to follow the REST Architecture ideals and name the location something easy to read and to remember.  You can click the check availability button to verify if the name is used or not.  If it is available move down and select Anywhere US for the region.

 

First Storage Sample
First Storage Sample

 

Once you are finished click the create button at the bottom of the form.  The next window will render the results of creating the Windows Azure Storage Account.  This page has all the information you’ll need to fill out the Windows Azure MMC connection information.

 

Windows Azure Storage Account Properties
Windows Azure Storage Account Properties

 

If you still have the Windows Azure MMC open, bring focus to it again.  If not open it back up and open the Windows Azure Management tree view back to the Service Management Node and verify or enter the information for the subscription ID and API Certificate.  Now click on the Connect link button on the right hand window pane.  The MMC will then connect and will populate the Default storage account drop down.  Click on the drop down and you will see your Windows Azure Storage Account that we just created.

 

Service Management Node Connected with Default Storage Account
Service Management Node Connected with Default Storage Account

 

Now that we have a Windows Azure Storage Account, let’s get a Windows Azure Services Role running also.  Navigate back to the Windows Azure Platform Web Interface (http://windows.azure.com).  Once the page has rendered click on your specific project, wait for that page to render and  then on the +New Service link. This time select the Windows Azure Services Role to create.  On the next page fill out the service label and description the same as with the Windows Azure Storage Account creation.

 

Create a Service (Role)
Create a Service (Role)

 

Click next when complete.  On the next page that renders you’ll again pick a public URI subdomain path, which I’ve used firstservicesample as mine, and select Anywhere US from the drop down for the region.  Click on the create button when complete.  The following page will display with a single cube image in the center of the screen, label Production.  For now, the instance role is available, but nothing is deployed and nothing is being charged at this time.  However this is perfect for checking out the Windows Azure MMC display of the services.

 

Service Role
Service Role

 

Return to the Windows Azure MMC and click on the Hosted Services node.  Click on Connect in the right hand window pane under actions.  The firstservicesample node, or whatever you may have named the service, will display with the staging, production, and certificates nodes appearing below.  From here you can deploy, upgrade, run, delete, suspend, swap, or even save the configuration of your roles.  This is extremely helpful so that one doesn’t always need to return to the site and can maintain multiple hosted services, storage services, affinity groups, and more from the MMC.

 

Windows Azure Staging
Windows Azure Staging

 

Next let’s click on the Storage Explorer Node just below the Service Management Node.  Click on New Connection and enter the Account Name as shown below.

 

New Account Form
New Account Form

 

Now that the account name and URIs are filled out.  Return to the storage services properties page in the Windows Azure Platform Web Interface (http://windows.azure.com).

 

Windows Azure Storage Account Properties
Windows Azure Storage Account Properties

 

On this page you’ll find the key you need to finish off the form in the Windows Azure MMC.  Once you’ve completed the form click on OK.  The MMC should now populate out the cloud storage account area with a node for BLOB Containers.

 

Storage Account Services
Storage Account Services

 

Click on the BLOG Containers so and click on Add Container in the right hand side window pane under actions.  Enter a name, in this case I entered musicmanager, and click OK.  Now you should have a BLOB Storage Container in your Windows Azure Storage Account.

 

Windows Azure BLOB Container
Windows Azure BLOB Container

 

Click on the musicmanager BLOB Container, or whatever you named yours, and then click on Upload BLOB under the actions window on the right hand side.  Select a file, I’ve chosen a music MP3 I have on my local machine.

 

Uploading a BLOG File (A Music MP3)
Uploading a BLOG File (A Music MP3)

 

Click OK and you’ll see the Operations queue node on the lower left hand side of the Console Root tree view populate with the upload activity task.

 

The Upload in the Operations Queue
The Upload in the Operations Queue

 

After the upload is complete the BLOB Container will then show the BLOBs just below it when selected in the Windows Azure MMC.

One thought on “What You Need and Want With Windows Azure Part II

  1. Pingback: DotNetShoutout

Comments are closed.