Presentation is loading. Please wait.

Presentation is loading. Please wait.

Partner Practice Enablement - Overview In today's topic students will learn how to use the Microsoft Azure PowerShell cmdlets for management and monitoring.

Similar presentations


Presentation on theme: "Partner Practice Enablement - Overview In today's topic students will learn how to use the Microsoft Azure PowerShell cmdlets for management and monitoring."— Presentation transcript:

1 Partner Practice Enablement - Overview In today's topic students will learn how to use the Microsoft Azure PowerShell cmdlets for management and monitoring in addition to using the capabilities of the Microsoft Azure Management Portal for configuring alerts and auto scale. See also how the capabilities of System Center can be used for workloads running in Microsoft Azure. Audience: IT Professionals, Architects and Developers Module 1 – Introduction to Microsoft Azure Module 2 – Microsoft Azure Virtual Machines Module 3 – Microsoft Azure Networking Module 4 – Microsoft Azure Active Directory Module 5 - Cloud Services and Websites Module 6 - SQL Server and SharePoint Module 7 - Management and Monitoring

2 Co-Founder of Opsgility, Experts in Instructor-Led Microsoft Azure Training. Prior to starting Opsgility, Rick worked for Microsoft in DPE/Technical Evangelism and Development where he worked with ISV’s and Microsoft Engineering on the Microsoft Azure Platform. Prior to this role, he was a Developer Consultant in Microsoft Premier Services and Premier Field Engineering (PFE). He joined Microsoft 12 years ago as an Escalation Engineer in Developer Support supporting the.NET Framework and developer tools. Prior to Microsoft, he worked as a software developer and architect for ISV’s in the communications and insurance industry. About the Instructor Rick Rainey Microsoft Azure Trainer http://www.opsgility.com Twitter: @RickRaineyTX

3 Managing and Monitoring Virtual Machines

4 Agenda Monitoring Virtual Machines Monitoring the Microsoft Azure Platform Managing Virtual Machines Managing with PowerShell

5 Monitoring Virtual Machines

6 Monitoring Virtual Machines with the Portal Web Endpoint Monitoring (Outside In) Performance Counters

7 Alert Rules Define Alert Criteria Select Metric Condition and Threshold Evaluation Window Define E-Mail Action Email Subscription Owner or Separate Email

8 Portal Based Monitoring Configuration

9 Metrics Selection Monitoring Metrics Using the Management Portal monitor multiple metrics Alerts can be configured per metric

10 Defining a performance alert Define the alert name Define the condition and actions Email co-administrators Email specific address

11 Alert E-Mail Example

12 Outside in Monitoring (Preview) Monitor up to two http endpoints from three global locations

13 Monitoring Virtual Machines with the Portal Alerts in Monitor Tab

14 Monitoring Virtual Machines with the Portal Alert Portal Notifications

15 Auto Scale Configuring Auto Scale Pre-create identical Virtual Machines in an availability set Specify auto-scale rules based on CPU usage Queue Depth Multiple auto scale configurations per schedule

16 Auto Scale with Schedule Scheduling Configuration No Scheduled Time Day and Night Weekdays and Weekends Specific Days

17 Auto Scale with CPU Metric Auto Scaling CPU Configuration Select the Desired Schedule to Configure Select the minimum and maximum instances Select the desired utilization range Choose how many instances to scale up by Choose how many instances to scale down by

18 DEMO Monitoring Virtual Machines using the Management Portal

19 Monitoring the Azure Platform

20 Microsoft Azure Service Dashboard See the Current Status of all Azure Services. Refresh the Dashboard on intervals of 2, 5, 10, or 30 minutes. Subscribe to an RSS Feed. View the Azure status history. http://azure.microsoft.com/en-us/status/

21 Microsoft Azure Service Dashboard

22 Managing Virtual Machines

23 Application Deployment Use a Microsoft Azure Gallery Image with Application Manually Deploy Application on new Virtual Machine Create a Custom Image with Application Deployed Upload an existing Hyper-V based VHD Scripted Deployment using Remote PowerShell

24 Administering Virtual Machines Public Internet or private internal IP address Remote Administration Remote Desktop Administration Remote PowerShell SSH

25 Ex. Remote SQL Server Management Studio (SSMS) Public Internet (less secure) Enable TCP endpoint 1433 Windows Firewall inbound rule port 1433 Enable Mixed Authentication and configure a secure account. Login using SQL Server Authentication and DNS of VM Can secure with access control list Private Virtual Network (more secure) Deploy virtual machine in a Virtual Network with P2S or S2S virtual networking. Windows Firewall inbound rule port 1433 and connect using internal IP in SSMS OR Windows Firewall inbound rule port 3389 and RDP into VM to run SSMS tool locally

26 Deleting/Creating VMs and Disks Deleting a Virtual Machine (Optional) delete both backed VHD disks and VM Deleting all Virtual Machines (Optional) delete all virtual machines and all disks through the cloud service view.

27 Disk Configuration Disk Best Practices Only deploy data on data disks Avoid using D: drive 500 IOPS per disk / 20,000 IOPS per storage. Plan for capacity!

28 Disk Caching OS Disk Read Write by default Modify with PowerShell Set-AzureOSDisk Requires Restart! Data Disks None by default modify with PowerShell Set-AzureDataDisk or Portal

29 Avoid Extra Hops with a Virtual Network Virtual Networks Connect via Direct IPs (DIP) vs. external Virtual IPs (VIP) for VM to VM communication. Load balancer DIP VIP DIP

30 Manage using existing Tools Microsoft Azure On Premises Windows Server 2012 Internet Android Windows Phone 8 Windows RT iOS X86/x64 Macs Windows Server 2008 Windows Server 2003 Windows Server 2012 Windows Intune VPN Tunnel AD Windows Server 2008 Windows Server 2003

31 Managing with PowerShell

32 Microsoft Azure Automation Microsoft Azure External Clients

33 Common Scripted Tasks Advanced Provisioning Uploading and Downloading VHDs Copying Disks Storage Cleanup Starting and Stopping VMs Updating Virtual Machines Remote PowerShell Management

34 Domain Join a Virtual Machine on Boot Prerequisites Virtual Network with Active Directory and DNS Configured $subnet = 'APP' $ou = 'OU=AzureVMs,DC=fabrikam,DC=com' $dom = 'fabrikam' $domjoin = 'fabrikam.com' $domuser = 'administrator' $pass = 'seca@4112!' $image = 'MYIMAGE' $vmName = 'dfs-01' $domVM = New-AzureVMConfig -Name $vmName -InstanceSize Small -ImageName $image | Add-AzureProvisioningConfig -WindowsDomain -JoinDomain $domjoin ` -Domain $dom -DomainPassword $pass -Password $pass -DomainUserName $domuser ` -MachineObjectOU $ou –AdminUserName $domuser | Set-AzureSubnet -SubnetNames $subnet $domVM | New-AzureVM -ServiceName $cs -AffinityGroup $ag -VNetName $vnet

35 Image and Disk Mobility On-Premises Microsoft Azure MyApp.vhd Add-AzureVHD Save-AzureVHD

36 Uploading a VHD $src = "c:\VHDs\Win2KOSDisk.vhd" $dst = "https://.blob.core.windows.net/uploads/Win2KOSDisk.vhd" Add-AzureVHD –LocalFilePath $src –Destination $dst

37 Downloading a VHD $src = "https://.blob.core.windows.net/uploads/Win2KOSDisk.vhd" $dest = "c:\VHDs\Win2KOSDisk.vhd" Save-AzureVHD –Source $src –LocalFilePath $dest

38 Steps to execute a Remote Script Install the auto generated certificate to enable secure access to remote PowerShell. Retrieve the URI for the virtual machine Execute a script remotely or create a new remote PowerShell Session.\InstallWinRMCertAzureVM.ps1 -SubscriptionName $s -ServiceName $svc -Name $vm $uri = Get-AzureWinRMUri –ServiceName $svc –Name $vm $c = Get-Credential Invoke-Command –ConnectionUri $uri –FilePath '.\deployad.ps1' –Credentials $c

39 TechNet Script Center for Microsoft Azure http://gallery.technet.microsoft.com/scriptcenter Click on the Windows Azure link on the left of the screen. Sample Script Examples Configure Secure Remote PowerShell Start Virtual Machines on a Schedule Stop Virtual Machines on a Schedule Copy all VHDs between Subscriptions Copy a Virtual Machine between Subscriptions and much more…

40 DEMO Create a Virtual Machine using Microsoft Azure PowerShell Cmdlets

41 Summary Monitoring Virtual Machines Monitoring the Microsoft Azure Platform Managing Virtual Machines Managing with PowerShell

42 Thank You


Download ppt "Partner Practice Enablement - Overview In today's topic students will learn how to use the Microsoft Azure PowerShell cmdlets for management and monitoring."

Similar presentations


Ads by Google