Services Lifecycle • • • • • Create Template Customize Deploy Service Update Template Update Service Components • Resources • Generic Command Execution • SQL Profiles • Application Hosts • Service Settings Demos Overview: System Center 2012 VMM Themes: System Center 2012 SP1 VMM Multi-tenancy Partner Enablement Windows Server 2012 Perf and Scale Services in SC 2012 SP1 VMM Template Instance Starting point for services and source of truth Specifies machine and connectivity requirements Deployed services are always linked to their templates Enables servicing of the instances Groups of machines that work together Includes machine definitions as well as applications Native application types: Web Applications (WebDeploy) (2.0 and 3.0) Virtual Applications (Server App-V) (RTM and SP1) Database Applications (SQL DAC) (v1.1 and v3) Service Lifecycle Management Create Template Customize Deployment Service Instance Deploy Apply Update Template Custom Resources • Used to deliver payload to a virtual machine • • Add folder with .cr extension to VMM library Folder contents are made available inside the VM for use with command/script • VMM ships custom resources for application frameworks • • Web Deploy Server App-V • Agent • Sequencer Running Commands • Run custom scripts within Service instance VMs • • • Configure run as account, script restart behavior, logging properties Script parameters can leverage configurable service settings Scripts can be marked as idempotent (SP1) • Multiple entry points available • • Application level • Pre/post install, pre/post uninstall, pre/post service, save/restore state Application Profile level • Pre/post install, Pre/post uninstall • Pre/post install supports multiple, ordered scripts (SP1) SQL Profiles • Deploy SQL Server to a virtual machine • • SQL Server 2008 R2 SQL Server 2012 • Requires a sysprepped SQL instance • Enables SQL Server specialization during provisioning • • • • • Instance Name Security mode Protocol enablement SA account password Service account identities Service Settings • Enter setting values during deployment • • Denoted by @Variable Name@ nomenclature String, Network, Run As Account • Service setting properties • • • • Name, Description Mandatory Encrypted Default value • Several pre-defined service settings @computerName@ Computer Name @vmid@ ID of the VM @tierName@ Name of the tier @tierId@ ID of the Tier @serviceName@ Name of the service @serviceId@ ID of the service Service Designer Ribbon Designer canvas Properties Template and Instances Single tier service Service Template Service Instance Machine Tier Machine Tier VM Template Application OS Roles/Features OS OSConfig Config Hardware Config Hardware Config VM01 Deploy Application IIS WS 2012 2 CPU, 2GB RAM VM02 Application IIS WS 2012 2 CPU, 2GB RAM Service Template Components Service Template Load Balancer Template Computer Tier (1..n) VHDs VM Template Pre/Post Install GCEs Application Profile Pre/Post Install GCEs Application Deployment (1..n) Hardware Profile Settings Application Host Profile (1…n) Application Profile Guest OS Profile SQL Profile Roles and Features SQL Deployment SQL DAC Deployment Web Deploy Deployment VM Building Blocks Service Objects Extensibility points Customize Deployment • Prepares the template for deployment • Specify OS settings • Computer name, Admin password etc. • Specify Application Settings • e.g. SQL connection string • Allows usage of same template in different environments • Development, Staging, Production etc. Deployment Preview Per Service Select Tier Based on Deployment Order Per Machine Per Guest OS Per Application Create New VM from Template Power On and Wait for VM Install VMM guest agent Install Application Done Add to Load Balancer Built-in step Extensible command Instance Application View In-Guest Agent SP1 Changes • Requires .NET 4.0 • • Agent installation will take care of this (can sysprep as well) For Server Core guests, requires Windows Server 2008 R2 SP1 or above • Deployed via ISO • All service instance VMs have a guest agent installed • Decoupled from VMM server • • Supports Service deployment to untrusted domains and workgroups Supports Service deployment to disconnected VMs Payload Transfer: SP1 Changes • Payload Transfer • • Network (BITS) ISO (for VMs without network connectivity) • Supported for Hyper-V hosts (excluding Server Core) • Associate VM Networks with VMM Libraries to enable network transfer • Upgrade will do this for existing networks Update Service Update the machine templates Associated machine templates 1 Apps or OS updated outside of VMM Instance ready for update Original Service Template 2 Updated (New Version) Service Template Updated Service Instance 4 Pending Service Template Original Service Instance 3 Set the updated template Original Service Instance 5 Deploy update in Maintenance Window Update Types • In-Place updates • Changes in template settings are applied without replacing OS image • (e.g.) Change memory, update applications • Image based updates • Replaces old OS image with new OS image • Reinstalls the applications and restores state. e.g. moving from WS08 to WS08 R2 Per Service Per Machine Per Guest OS In-Place Updating Per Application Select Tier Based on Servicing Order Select Machine Based on Upgrade Domain Remove from Load Balancer Apply Application Level Changes Done Uninstall Application Install Application Add to Load Balancer Built-in step Extensible command Per Service Per Machine Per Guest OS Per Application Image Based Updating Select Tier Based on Servicing Order Select Machine Based on Upgrade Domain Remove from Load Balancer Add Data Disk to Machine Swap OS Disk Server App-V Backup State Customize New OS Install Application Server App-V Restore State Done Add to Load Balancer Built-in step Extensible command Service Level Refresher • Service level refresher updates all of the service information • Identifies any virtual machines that have gone missing from the service • Service Refresher supports 2 states • OK - All the VMs are OK • Needs Attention • At least one VM has a problem of some type • VM refresher state indicates the actual problem Service / Tier / Instance Actions • Service Level Actions • • Simple actions at the Service level cascade to the Virtual Machines Start, Pause, Resume, Stop, Shutdown, Delete • Tier Level Actions • • Scale out New Wizard enables this functionality • VM Level Actions • • • • • • Migrate VMs Store Virtual Machines to Library Deploy Virtual Machines from Library Clone Virtual Machines Create Checkpoints Scale in Application Hosts • Deploy applications to running platform • • • Virtual machine Standalone physical server Physical cluster/farm • Application Host Types – Need profiles to use in Service Template • • SQL Server • SQL .dacpac objects and SQL scripts Web Server • Web Deploy objects • Allow Untrusted, Basic vs NTLM • Target server name can be a configurable service setting • Allows user to specify server at deployment time Thank you for your time and feedback! Q&A DISCUSSION