Good Morning Wireless! SSID: MSFTOPEN No Username or Password Required 2
Today s Agenda - 9:00-10:30 - Windows Azure Infrastructure Services - 10:30-10:45 - Break - 10:45-12:00 - Windows Azure Infrastructure Demonstrations - 12:00-1:00 - Lunch - 1:00-2:30 HOL - Windows Azure Infrastructure walk-through 3
Open Office Hours - Monday June 3 rd at 10am -11:00am EST http://aka.ms/itofficehours Monday June 10 th at Noon 1pm EST http://aka.ms/deprovision
Windows Azure
Cloud Models
If deploying an application requires a developer s involvement, it s not IaaS
Microsoft approach: hybrid cloud Broad & deep array of solutions enables customers to use cloud in their own way, at their own pace
90-Day Free Trial contains - compute / 750 small compute hours per month web sites / 10 web sites mobile services / 10 mobile services relational database / 1 SQL database SQL reporting / 100 hours per month storage / 35GB with 50,000,000 storage transactions data transfer / unlimited inbound & 25GB outbound media services encoding / 50 GB (input & output combined) cdn / 20GB outbound with 500,000 transactions cache / 128MB service bus / 1,500 relay hours and 500,000 messages
Windows Server 2012 Datacenter Windows Server 2008 R2 SP1 SQL Server 2012 SP1 (Std or DC) SharePoint Server 2013 Trial BizTalk Server 2013 and more! opensuse 12.3 CentOS 6.3 Ubuntu 12.04 Ubuntu 12.10 SUSE Linux Enterprise Server SP2 and more!
Virtual Machine Sizes VM Size CPU Cores RAM Bandwidth # Data Disks Extra Small (A0) Shared 768 MB 1 Small (A1) 1 1.75 GB 100 2 Medium (A2) 2 3.5 GB 200 4 Large (A3) 4 7 GB 400 8 Extra Large (A4) 8 14 GB 800 16 A6 4 28 GB 1,000 8 A7 8 56 GB 2,000 16 Price Per Hour (GA Price Starting Jun 1st) $0.02 (~$15/month) $0.09 (~$67/month) $0.18 (~$134/month) $0.36 (~$268/month) $0.72 (~$536/month) $1.02 (~$759/month) $2.04 (~$1,518/month) Price Per Hour (Promotional Price Until May 31st) $0.0133 (~$10/month) $0.08 (~$60/month) $0.16 (~$119/month) $0.32 (~$238/month) $0.64 (~$476/month) N/A N/A
Active Directory SharePoint DC DNS Persistent VM Role Persistent VM Role SQL Persistent VM Role Active Directory DC DNS
SharePoint PaaS Roles File Servers Local AD SQL VMs
www.windowsazure.com
When you first login to Windows Azure you have a blank slate to work from. For today s lab we will be utilizing the Virtual Machines and Network sections of Azure. Overview of the Portal
Building the Storage Account Now we need to create a storage account so that all of our new VMs will share the same container. This makes matters much easier for moving, deprovisioning, and such. Click on Storage, then select New. Click on Quick Create, provide a name for your storage. Geo-Replication has the ability to mirror data to other regions of the U.S. However this costs additional money so for this lab we will uncheck the box, click on the checkmark to finish:
Registering the DNS Server First we need to register a DNS Server that our lab will utilize. Register the internal IP address that our domain controller VM will be using for Active Directory-integrated Dynamic DNS services.
Registering the DNS Server Provide a name for the DNS server and for this exercise we will use the I.P. address of 10.0.0.4. Be sure that the proper subscription is selected, then click Register DNS Server.
Building the Virtual Network Now we will create a virtual network. This virtual network will serve as a subnet that all of our virtual machines will connect to.
Building the Virtual Network Provide a name for the virtual network, and also the affinity group unless you have already created one in previous labs. Be sure to select the appropriate region as this impacts where your workloads will run geographically. Click on the arrow to proceed.
Building the Virtual Network Select the DNS Server registered in the previous steps. Click on the arrow to proceed.
Building the Virtual Network We need to select a proper subnet scheme, for this lab we will be choosing 4096 possible addresses. The CIDR equivalent is 20. Click on the check mark to proceed.
Operations Status Notice that during any action sequences in the Azure Portal the operations will show up at the bottom of the screen explaining the progress. When each process is complete you can clear the operation by clicking on the OK checkmark. Minimize this panel and it can be recalled at any time by clicking on the icon at the bottom of the screen.
Notice there are three sub sections to the Virtual Machines area of the portal. Instances, Images, and Disks. We will select Create a Virtual Machine to proceed Building the First Virtual Machine
Building the First Virtual Machine Select Virtual Machine, and use the From Gallery option. Consider the From Gallery option as the more advanced or custom option for deploying VMs. Click on the Create A Virtual Machine checkmark to proceed.
Building the AD Virtual Machine Select Windows Server 2012 Datacenter Click on the Arrow to proceed.
Building the AD Virtual Machine The Version Release Date is a great feature in that you can deploy Windows Server 2012 based on update rollups. So the April 24 th selection would include all updates to that point. Choose the most recent version. Provide a machine name, set the Size of the VM to Small, add an admin user account, and password. Note the password must have 8 characters and is utilizing a more secure password(special characters, upper and lower case, numeric) is suggested. Click on the arrow to proceed.
Building the AD Virtual Machine Provide a DNS name, this name will be checked to see if it already exists in the DNS database for cloudapp.net. In the event the name of the VM is already in user append a character or modify the DNS name. Select the previously created Storage Account. Select the Virtual Network we previously set up. Check that the subnet looks accurate. Click on the arrow to proceed.
Building the AD Virtual Machine We will not be creating an Availability Set in this session so as to keep costs down. Availability Sets are in place to insure that VMs are available in other regions geographically in the event of an outage. Ensure the ENABLE POWERSHELL REMOTING box is checked. Click on the Check to complete the creation of the VM.
Building the AD Virtual Machine Scroll down on the Status screen for the newly created VM. Check to make sure the IP address is 10.0.0.4(this was automatically assigned to the VM.) Notice that the Size is set to Small granting us 1.75 GB of Memory.
Adding a Virtual Disk to the AD Machine We need to add a disk to the VMs now, so we will start with the AD controller. Why? Because Azure OS disks have write cache enabled, so in the event of an outage some data might get lost. By adding a new empty data disk, these disks are safe from data loss as the data is written directly to the virtual disk. From the summary page, click on Attach and then select Attach Empty Disk
Adding a Virtual Disk to the AD Machine Rename the virtual disk by appending data01 in place of the random characters which are normally auto-generated. Make the disk 10GB in size. Select None for the Host Cache Preference Click the Check to complete the disk addition.
Connecting to the AD server via RDP Now we need to connect to the AD server via RDP to complete the disk addition and kick off the Active Directory role installation. Click on the virtual machine and then click on Connect
Connecting to the AD server via RDP A RDP file will display at the bottom of the screen. This RDP connection comes preconfigured with the randomized TCPIP port which is now required for security purposes. Click on Open
Connecting to the AD server via RDP Select the checkbox to disable this warning if desired. Click Connect : Enter the admin credentials which were supplied during the VM creation process and then click OK: Disable the warning if so desired and click Yes :
Creating the Data Volume on the AD server Once inside Server Manager, go to Tools then select Computer Management. Inside Computer Management select Disk Management. An Initialize Disk window will pop up, make sure the new disk is selected and click OK.
Creating the Data Volume on the AD server Right click Disk 2 and select New Simple Volume Click Next:
Click Next: Creating the Data Volume on the AD server Change the Volume Label to DATA and click Next: The drive letter should be preconfigured to F, click Next: Click Finish:
Installing Active Directory on the AD Server Jump back into the RDP Session for the AD Server, click on Manage then select Add Roles and Features : Click Next: Click Next:
Installing Active Directory on the AD Server Notice that the only server displayed is the local server. Later on we will add other servers to manage in this same Server Manager console. Make sure the server is selected and click Next. Select Active Directory Domain Services, the subsequent pop-up window tells us that the management tools will also be installed, click Add Features then click Next :
Installing Active Directory on the AD Server Since no other features are required for this server we will select Next to continue: Now we click on Next to continue through the Active Directory Domain Services configuration:
Installing Active Directory on the AD Server Server Manager will reboot the server automatically if desired selected the checkbox, and click on Yes to the pop-up window. Next click on Install: Be sure that the installation completes then click on Close:
Installing Active Directory on the AD Server Server Manager will notify you that there are tasks left to be completed or if errors have occurred via the Flag at the top of the screen. Click on the flag then notice it is prompting us to promote the server to a domain controller. Since DCPromo has been deprecated in Server 2012 we will use this option to move forward:
Installing Active Directory on the AD Server Select Add a New Forest, enter in a Domain name, for this exercise I use contoso.com. Click Next: Enter a Password and then click Next:
Installing Active Directory on the AD Server Ignore the DNS error message and click Next: Verify the NETBIOS name and click Next:
Installing Active Directory on the AD Server Change the drive path to the F drive for all 3 entries leaving the subfolders path intact. Click Next: Notice that you can view the PowerShell script for this installation by clicking View script, otherwise click Next:
Installing Active Directory on the AD Server The prerequisites check will display any issues that might need to be addressed. The messages you will see can be ignored during this installation. DNS will be installed automatically. Click Install: The server will automatically reboot when the operation is completed.
Select Create a Virtual Machine to proceed: Building the Web Virtual Machine
Building the Web Virtual Machine Select Virtual Machine, and use the From Gallery option. Consider the From Gallery option as the more advanced or custom option for deploying VMs. Click on the Create A Virtual Machine checkmark to proceed.
Building the Web Virtual Machine Select Windows Server 2012 Datacenter Click on the Arrow to proceed.
Building the Web Virtual Machine The Version Release Date is a great feature in that you can deploy Windows Server 2012 based on update rollups. So the April 24 th selection would include all updates to that point. Choose the most recent version. Provide a machine name (xxxxlabweb01), set the Size to Small, choose an admin user account, and password. Note the password must have 8 characters and is utilizing a more secure password(special characters, upper and lower case, numeric) is suggested. Click on the arrow to proceed.
Building the Web Virtual Machine Provide a DNS name, this name will be checked to see if it already exists in the DNS database for cloudapp.net. In the event the name of the VM is already in user append a character or modify the DNS name. Select the previously created Storage Account. Select the Virtual Network we previously set up. Check that the subnet looks accurate. Click on the arrow to proceed.
Building the Web Virtual Machine We will not be creating an Availability Set in this session so as to keep costs down. Availability Sets are in place to insure that VMs are available in other regions geographically in the event of an outage. Ensure the ENABLE POWERSHELL REMOTING box is checked. Click on the Check to complete the creation of the VM.
Adding a Virtual Disk to the Web Machine We need to add a disk to the VMs now, so we will continue with the Web controller. Why? Because Azure OS disks have write cache enabled, so in the event of an outage some data might get lost. By adding a new empty data disk, these disks are safe from data loss as the data is written directly to the virtual disk. From the summary page, click on Attach and then select Attach Empty Disk
Adding a Virtual Disk to the Web Machine Rename the virtual disk by appending data01 in place of the random characters which are normally auto-generated. Make the disk 10GB in size. Select None for the Host Cache Preference Click the Check to complete the disk addition.
Joining the Web Server to the Domain Let s join the server to the Domain. In Server Manager, in the left hand pane, click on Local Server, then click on WORKGROUP : Next click on Change Next select Domain and fill in the domain name you chose during Session 1 and click OK: Fill in the admin user and password then click OK, a reboot will need to occur when this is complete:
Notice there are three sub sections to the Virtual Machines area of the portal. Instances, Images, and Disks. We will select Create a Virtual Machine to proceed Building the File Server Virtual Machine
Building the File Server Virtual Machine Select Virtual Machine, and use the From Gallery option. Consider the From Gallery option as the more advanced or custom option for deploying VMs. Click on the Create A Virtual Machine checkmark to proceed.
Building the File Server Virtual Machine Select Windows Server 2012 Datacenter Click on the Arrow to proceed.
Building the File Server Virtual Machine The Version Release Date is a great feature in that you can deploy Windows Server 2012 based on update rollups. So The March 26 th selection would include all updates to that point. Choose the most recent version. Provide a machine name (xxxxxlabfile01), user account, and password. Note the password must have 8 characters and is utilizing a more secure password(special characters, upper and lower case, numeric) is suggested. Set the size to Small. Click on the arrow to proceed.
Building the File Server Virtual Machine Provide a DNS name, this name will be checked to see if it already exists in the DNS database for cloudapp.net. In the event the name of the VM is already in user append a character or modify the DNS name. Select the previously created Storage Account. Select the Virtual Network we previously set up. Check that the subnet looks accurate. Click on the arrow to proceed.
Adding a Virtual Disk to the File Machine We need to add a disk to the VMs now, so we will finish with the File controller. Why? Because Azure OS disks have write cache enabled, so in the event of an outage some data might get lost. By adding a new empty data disk, these disks are safe from data loss as the data is written directly to the virtual disk. From the summary page, click on Attach and then select Attach Empty Disk
Adding a Virtual Disk to the File Machine Rename the virtual disk by appending data01 in place of the random characters which are normally auto-generated. Make the disk 10GB in size. Select None for the Host Cache Preference Click the Check to complete the disk addition.
Connecting to the File Server via RDP Now we need to connect to the FILE server via RDP to complete the disk addition and kick off the Active Directory role installation. Click on the virtual machine and then click on Connect
Connecting to the File Server via RDP Click on Open: Select the checkbox to disable this warning if desired. Click Connect : Enter the admin credentials which were supplied during the VM creation process and then click OK: Select the checkbox to disable this warning if desired. Click Yes :
Creating the Data Volume on the File Server Once inside Server Manager, go to Tools then select Computer Management. Inside Computer Management select Disk Management. An Initialize Disk window will pop up, make sure the new disk is selected and click OK.
Creating the Data Volume on the File Server Right click Disk 2 and select New Simple Volume Click Next:
Click Next: Creating the Data Volume on the File Server Change the Volume Label to DATA and click Next: The drive letter should be preconfigured to F, click Next: When complete, minimize the RDP session. Click Finish:
Joining the File Server to the Domain Let s join the server to the Domain. In Server Manager, in the left hand pane, click on Local Server, then click on WORKGROUP : Next click on Change Next select Domain and fill in the domain name you chose during Session 1 and click OK: Fill in the admin user and password then click OK, a reboot will need to occur when this is complete:
Jump back into the RDP Session for the Web Server, using the domain credentials: 1 Installing IIS on the Web Server Click on Manage then select Add Roles and Features : 2 3 Click Next: Click Next: 4
Installing IIS on the Web Server Select the server from the list and click Next: Scroll down and select Web Server (IIS) from the list, a popup will be shown, click Add Features, then click on Next: 1 Click Next: 2 Click Next: 3
Installing IIS on the Web Server Click Next: Click Next: 1 2 Select the box to restart the destination server automatically, a popup will occur, click Yes, then click Install. Click Close: 3 4
Installing IIS on the Web Server Hit F5 to refresh your screen, you should now see and select IIS once the installation is complete, right click on the server then select Internet Information Services (IIS) Manager: Select the Server, notice a popup is displayed asking if you would like to keep the components updated, this is up to you, I clicked Yes: Internet Explorer will launch directing you to the Web Platform Installer site. Cancel this for now.
Jump back into the RDP Session for the File Server, using the domain credentials: 1 Installing File Services on the File Server Click on Manage then select Add Roles and Features : 2 3 Click Next: Click Next: 4
Installing File Services on the File Server Add the File Server and click Next: Select to Restart the server automatically if desired, click Yes to the popup that occurs, then select Install: 1 3 Click Next: 2 Click Close: 4
Installing File Services on the File Server Select File and Storage Services in the left hand pane of Server Manager: Click on Shares, then click on To create a file share, start the New Share Wizard, select SMB Share Quick, click Next:
Installing File Services on the File Server Select File and Storage Services in the left hand pane of Server Manager: By giving the share a name, notice that the wizard will automatically populate the path and create the folder if it does not already exist. Click Next:
Installing File Services on the File Server Review the options here, click Next: Review the permissions and click Next: Review the summary and click Create:
Installing File Services on the File Server Once you see the process completes, click Close: Type in the path to the share inside File Explorer from the Web Server and hit Enter: Congratulations, the file server and web server are now ready for action!
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. On your personal computer: Download the Windows Azure PowerShell Management Tools at: http://www.windowsazure.com/en-us/manage/downloads/ Installing the Azure PowerShell Tools Scroll down and select the appropriate download for your operating system, notice Apple and Linux are supported as well, choose to Save the file:
Installing the Azure PowerShell Tools Go to the download location, right click the file and select Run as administrator : You will see the Web Platform Installer launch, this process may take a few moments, take the defaults, click Install: Click I Accept :
Installing the Azure PowerShell Tools The Installer will now download all of the necessary components and begin the individual installations: Allow the installation to complete, click Finish, and that will wrap up today s session.
Configuring the Azure PowerShell Tools First let s check to make sure the Azure tools installed properly, on the Start screen type in Azure and you should see the following, right click Windows Azure PowerShell and then click on Run As Administrator Enter the following commands: Set-ExecutionPolicy RemoteSigned Get-AzurePublishSettingsFile A browser will open up asking for login to Windows Azure:
Configuring the Azure PowerShell Tools You will also need to integrate the Azure tools with PowerShell. To do so enter in the following commands inside the Windows PowerShell standard prompt: Set-ExecutionPolicy RemoteSigned Import-Module "C:\Program Files (x86)\microsoft SDKs\Windows Azure\PowerShell\Azure\Azure.psd1" If you have trouble running the script, try setting your default Azure subscription as you may have had other subsciptions on this Live account: Set-AzureSubscription DefaultSubscription your subscription name here
Configuring the Azure PowerShell Tools Got the file downloaded? Great! Let s continue. Enter in the following command at the Azure PowerShell command prompt: Import-AzurePublishSettingsFile <path\mysettings>.publishsettings
Open Office Hours - Monday June 3 rd at 10am -11:00am EST http://aka.ms/itofficehours Tuesday June 10 th http://aka.ms/deprovision at Noon 1pm EST
Windows Server 2012 Eval Downloads (.ISO and.vhd) http://aka.ms/ws2012tp Windows Azure Subscription http://aka.ms/mshosting System Center 2012 Eval Download http://aka.ms/sc2012tp Server 2012 Lab Guide http://aka.ms/tp2012lab
Today s Agenda - 9:00-10:30 - Windows Azure Infrastructure Services - 10:30-10:45 - Break - 10:45-12:00 - Windows Azure Infrastructure Demonstrations - 12:00-1:00 - Lunch - 1:00-3:30 HOL - Windows Azure Infrastructure walk-through 94