Partager via


31 Days of Servers in the Cloud - Getting Started

Windows Azure Infrastructure as a Service (IaaS) offerings provide IT Pros with the ability to quickly and easily provision new Virtual Machines ( VMs running both Windows and Linux ) and Virtual Networks in the cloud.  I’ve found that these capabilities can be really useful for a number of scenarios, including:

  • Building virtual lab environments
  • Piloting new software
  • Deploying existing VMs that require elastic “Internet-scale”
  • Implementing hybrid applications that connect on-premises workloads with cloud-based VMs

In January, my fellow IT Pro Technical Evangelists and I collaborated on a new 31 Days of Servers in the Cloud article series that demonstrates the ways in which IT Pros can easily begin leveraging these new Windows Azure IaaS offerings.  As we step through this series together, you’ll have an opportunity to follow along with your own Windows Azure trial account ...

In this article, I’ll provide the steps that you’ll want to complete so that you can follow along with the series …

Getting Started with Windows Azure Virtual Machines

To prepare for exploring Windows Azure IaaS together, complete these 5 tasks to make sure you have access to the necessary resources and tools:

  1. Sign-up for your FREE Windows Azure 90-day Trial Account.
     
    Sign-up for a FREE 90-day trial of Windows Azure so that you can follow along with the steps included in each article in this series. 
     
    Note that during the Free Trial sign-up process, you will be asked for credit card information to confirm that you are a legitimate free trial subscriber.  Your credit card information is only used to confirm your identity and you will NOT be charged for any Windows Azure services unless you explicitly convert your trial subscription to a paid subscription at a later date. 
     

  2. Login to the Windows Azure Management Portal.
     
    Login to the web-based Windows Azure Management Portal with the same logon credentials you used to sign-up for the FREE 90-day Trial above.  Once you’ve logged in, you should see the main Windows Azure Management portal dashboard.
     
    Portal01
    Windows Azure Management Portal dashboard
     
    On the Windows Azure Management Portal, you’ll find the options ( highlighted in the image above ) for managing Virtual Machines, Virtual Networks and Storage in the cloud.  These are the items we’ll be primarily working with in this article series.
     

  3. Define a new Windows Azure Affinity Group.
     
    Affinity Groups in Windows Azure are used to group your cloud-based services together, such as Virtual Machines, Virtual Networks and Storage, in order to achieve optimal performance.  When you use an affinity group, Windows Azure will keep all services that belong to your affinity group running within the same data center as close as possible to each other to reduce latency and increase performance.

    - Create a new Affinity Group by selecting Settings from the side navigation bar in the Windows Azure Management Portal. 
     
    - On the Settings page, select the Affinity Groups tab on the top navigation bar. 
     
    - Click the +ADD button on the bottom navigation bar. 
     

  4. On the Create Affinity Group form, enter the following details:
     
    - Name: Enter a unique name for your new Affinity Group, such as XXXlab01 (where XXX is replaced with your initials)
     
    - Region: Select the closest Windows Azure data center region to your locale.  This is the data center region in which your services will be provisioned.
     

  5. Create a new Windows Azure Storage Account.
     
    Virtual Machines that are provisioned in Windows Azure are stored in the world-wide cloud-based Windows Azure Storage service.  In terms of high availability, the Storage service provides built-in storage replication capability – where every VM is replicated to three separate locations within the Windows Azure data center region you select.  In addition, Windows Azure Storage provides a geo-replication feature for also replicating your VMs to a remote data center region.
     
    Create a new Storage account by clicking the +NEW button on the bottom toolbar in the Windows Azure Management Portal and then select Data Services | Storage | Quick Create.  
     
    Portal03
    Creating a new Storage account in Windows Azure
     
    Complete the following fields for creating your Storage account:

    - URL: Enter a unique name for your new storage account, such as XXXlabstor01 (where XXX is replaced with your initials)
     
    - Region/Affinity Group: Select the Affinity Group you created in Step 3 above.
     
    - Enable Geo-Replication: By default, this option is selected.  Leave the default option in place.
     
    Click the CREATE STORAGE ACCOUNT button to create your new Windows Azure Storage account.
     

  6. Download, Install and Configure the Windows Azure PowerShell Management Tools
     
    In addition to managing Windows Azure via the web-based Management Portal, we also provide a Windows Azure PowerShell module for scripted management of Windows Azure services.  We’ll be using both the Management Portal and PowerShell in this series, so you’ll want to download, install and configure the Windows Azure PowerShell cmdlets to get prepared.
     
    - Download and Install the Windows Azure PowerShell cmdlets. Note that a restart may be required after installing this module.
     
    - Right-click on Windows PowerShell in your Start Menu or Start Screen and choose Run As Administrator.
     
    - Set the PowerShell Execution Policy for scripts by running the following command at the PowerShell command prompt:
     
         PS C:\> Set-ExecutionPolicy RemoteSigned

    -
     Import the Windows Azure PowerShell module and supporting cmdlets by running the following command at the PowerShell command prompt:
     
         PS C:\> Import-Module Azure
     
    - Download and save your Windows Azure Publish Settings file by running the following command at the PowerShell command prompt:
     
         PS C:\> Get-AzurePublishSettingsFile
     
    - Import the saved Windows Azure Publish Settings file by running the following command at the PowerShell command prompt:
     
         PS C:\> Import-AzurePublishSettingsFile
    "full_path_to_saved_file.publishsettings"

     

  7. Subscribe to IT Pros ROCK! or Bookmark this Page
     
    New technical articles on Windows Azure will be released every day this month, so be sure to check the list of articles below regularly for the latest information.
     
    DO IT: Subscribe to "IT Pros ROCK! " for the latest information in your RSS reader.
     
    DO IT: Save this page to your Favorites for easy navigation back to this growing list of articles.

You’re ready to explore the Cloud!

After completing the steps above, you're prepared for leveraging Windows Azure as your cloud-based lab platform! Be sure to check out our other "Cloud Labs" below and join the FREE "Early Experts" Cloud Quest for more deeper study on Windows Azure ...

DO IT: JOIN the "Early Experts" Cloud Quest to learn more about Windows Azure and Windows Server 2012 together!
 
DO IT: COMPLETE the other Cloud Labs online - build Active Directory, SQL 2012, SharePoint 2013 and Linux in the Cloud!

You’re also now prepared to follow along in our 31 Days of Servers in the Cloud article series.  To get started, check out the complete series below …

How will you use Windows Azure IaaS?

Do you have an interesting scenario or example for using Windows Azure Virtual Machines?  Feel free to contribute your ideas in the comments below to share with our IT Pro community!

Keith

Comments

  • Anonymous
    January 01, 2003
    Great article! Just bumped into the following Get-AzurePublishSettingsFile couldn't find the Publish Settings. I Had to download the PublishSetting file via: windows.azure.com/.../publishprofile.aspx Then I could import it using: Import-AzurePublishSettingsFile <PathToFile>

  • Anonymous
    March 05, 2013
    Thanks a ton to you for posting a nice articla.  You are the man :)

  • Anonymous
    June 18, 2013
    Thanks Rutger H - i was able to step through it after using your link to download the publish settings file.

  • Anonymous
    August 08, 2013
    Nice guide. Very easy to get started. Just a quick not for people who got stuck on step 6 like me. The download that is linked installs the Web Platform Installer. After it's installed you run that from the start menu and proceed to download the Windows Azure PowerShell Management Tools . I accepted all the defaults and hit install I'm off to try and get SharePoint 2013 lab up and running now, wish me luck!