Top Banner
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
44

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

Dec 24, 2015

Download

Documents

Judith Little
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Partner Practice Enablement - Overview In today's topic students will learn how to use the Microsoft Azure PowerShell cmdlets for management and monitoring.

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

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

Managing and Monitoring

Virtual Machines

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

Agenda

Monitoring Virtual MachinesMonitoring the Microsoft Azure PlatformManaging Virtual MachinesManaging with PowerShell

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

Monitoring Virtual Machines

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

Monitoring Virtual Machines with the PortalWeb Endpoint Monitoring (Outside In)

Performance Counters

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

Alert Rules

Define Alert CriteriaSelect Metric Condition and ThresholdEvaluation Window

Define E-Mail ActionEmail Subscription Owner or Separate Email

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

Portal Based Monitoring Configuration

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

Metrics Selection

Monitoring MetricsUsing the Management Portal monitor multiple metrics

Alerts can be configured per metric

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

Defining a performance alert

Define the alert name

Define the condition and actionsEmail co-administratorsEmail specific address

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

Alert E-Mail Example

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

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

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

Monitoring Virtual Machines with the Portal

Alerts in Monitor Tab

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

Monitoring Virtual Machines with the Portal

Alert Portal Notifications

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

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

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

Auto Scale with Schedule

Scheduling Configuration

No Scheduled Time

Day and Night

Weekdays and Weekends

Specific Days

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

Auto Scale with CPU MetricAuto 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

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

LABMonitoring Virtual Machines using the Management Portal

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

Monitoring the Azure Platform

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

Microsoft Azure Service DashboardSee 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/

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

Microsoft Azure Service Dashboard

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

Managing Virtual Machines

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

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

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

Administering Virtual Machines

Public Internet or private internal IP address

Remote Administration

Remote Desktop Administration

Remote PowerShell

SSH

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

Ex. Remote SQL Server Management Studio (SSMS)Public Internet (less secure)Enable TCP endpoint 1433 Windows Firewall inbound rule port 1433Enable Mixed Authentication and configure a secure account.Login using SQL Server Authentication and DNS of VMCan 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 SSMSORWindows Firewall inbound rule port 3389 and RDP into VM to run SSMS tool locally

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

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.

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

Disk ConfigurationDisk Best PracticesOnly deploy data on data disks

Avoid using D: drive <temporary local storage>

500 IOPS per disk / 20,000 IOPS per storage. Plan for capacity!

TEMP [D:]

DATA DISK [G:] DATA DISK [H:]

OS DISK [C:]

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

Disk Caching

OS Disk Read Write by default

Modify with PowerShell Set-AzureOSDisk

Requires Restart!

Data DisksNone by default

modify with PowerShell Set-AzureDataDisk or Portal

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

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

VIPVIP

DIP DIPDIP

DIP

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

Manage using existing Tools

Microsoft AzureOn 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

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

Managing with PowerShell

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

Microsoft Azure Automation

Service Management API

Azure PowerShell X-Plat CLI

Microsoft Azure Fabric Controller

Rich Apps/Services

Microsoft Azure

External Clients

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

Common Scripted Tasks

Advanced Provisioning

Uploading and Downloading VHDs

Copying Disks

Storage Cleanup

Starting and Stopping VMs

Updating Virtual Machines

Remote PowerShell Management

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

Domain Join a Virtual Machine on BootPrerequisites 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

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

Image and Disk Mobility

On-Premises Microsoft Azure

Blob Storage

MyApp.vhd

Add-AzureVHD

Save-AzureVHD

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

Uploading a VHD

Add-AzureVHD supports optimized VHD Upload

Only uploads written bytes of the VHD

Supports conversion from dynamic to fix on upload

Only supports VHD (Microsoft Azure only supports VHD)

Use -NumberOfUploaderThreads to increase throughput.

$src = "c:\VHDs\Win2KOSDisk.vhd"$dst = "https://<acct>.blob.core.windows.net/uploads/Win2KOSDisk.vhd"

Add-AzureVHD –LocalFilePath $src –Destination $dst

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

Downloading a VHD

Save-AzureVHD supports optimized VHD Download

Only downloads written bytes of the VHD

Use -NumberOfThreads to increase throughput.

$src = "https://<acct>.blob.core.windows.net/uploads/Win2KOSDisk.vhd"$dest = "c:\VHDs\Win2KOSDisk.vhd"

Save-AzureVHD –Source $src –LocalFilePath $dest

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

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

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

DEMOCreate a Virtual Machine using Microsoft Azure PowerShell Cmdlets

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

Summary

Monitoring Virtual MachinesMonitoring the Microsoft Azure PlatformManaging Virtual MachinesManaging with PowerShell

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

Suggested Learning ExercisesAssignment Estimated

Time

Hands-on LabsUnderstanding Virtual Machine Imaging with Capture https://github.com/WindowsAzure-TrainingKit/HOL-UnderstandingVMImagingWithCapture

Creating and Configuring a SQL Server 2012 Database in a Microsoft Azure Virtual Machinehttps://github.com/WindowsAzure-TrainingKit/HOL-DeployingSQLServer

Managing Virtual Machines with PowerShellhttps://github.com/WindowsAzure-TrainingKit/HOL-AutomatingVMManagementPS

• 60 minutes

• 60 minutes

• 45 minutes

VideoAuto-scale, Alerts and Operation Logshttp://channel9.msdn.com/Shows/Cloud+Cover/Episode-114-Windows-Azure-Autoscale-Alerts-and-Operational-Logs

Take control of the cloud with Microsoft Azure PowerShellhttp://channel9.msdn.com/Events/TechEd/Europe/2013/WAD-B305

• 40 minutes

• 75 minutes

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

Session ResourcesMicrosoft Azure Auto-Scale, Alerts and Operation Logshttp://channel9.msdn.com/Shows/Cloud+Cover/Episode-114-Windows-Azure-Autoscale-Alerts-and-Operational-Logs

Microsoft Azure PowerShell Reference Guide for Infrastructure Serviceshttp://michaelwasham.com/windows-azure-powershell-reference-guide/

Moving to Hybrid Cloud with Microsoft Azure and System Centerhttp://channel9.msdn.com/Series/hybridcloud/01

Microsoft Azure IaaS Quick Start with PowerShellhttp://aka.ms/QSK

Instructor Led Training – Microsoft Azure DevOps for IT Professionalshttp://www.opsgility.com/courses/it-devops-three-day

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

Microsoft Azure ResourcesMicrosoft Partner Learning Path

https://mspartnerlp.mspartner.microsoft.com/LearningPath

Microsoft Azure Friday

http://www.windowsazure.com/en-us/documentation/videos/windows-azure-friday/

Microsoft Virtual Academy

http://www.microsoftvirtualacademy.com

Channel 9 Microsoft Azure

http://channel9.msdn.com/WindowsAzure

Questions

http://stackoverflow.com/questions/tagged/azure

http://social.msdn.microsoft.com/Forums/windowsazure

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

Thank You