hi everyone, Maha Ibrahim from the VMM team prepared this great blog entry for how to deploy the Pet Shop 3-tier Application as a Service using VMM 2012 beta. I have attached this as a word document at the bottom of this post as well.
Please follow all the steps in this guide to successfully deploy Pet Shop. If you encounter any issues, post to the VMM forums and our team will help you fix them.
Setting Up the Fabric
Add Hosts/Clusters, create the necessary host groups that will provide the compute resources for the Pet Shop Application.
To create the Pet Shop Application in VMM, you need to first download the library building blocks for Pet Shop.
In case of Highly Available VMM setup, the application frameworks for installing Server App-V and Web Deploy clients are not added to the library and will need to be copied manually from VMM 2012 installation directory to the library share, for instructions on how to configure the library resources for Highly Available VMM setup, please refer to http://go.microsoft.com/fwlink/?LinkId=213988
In Pet Shop Service template, Run As Profiles are needed for
User: sa
Password: Passw0rd
Category: Profile Account
After creating the user role, connect the Admin console using the desired user role.
Pet shop service will be deployed from a service template that defines the profiles for hardware, guest OS, applications, and SQL.
The Virtual Machine template will contain information about the VHD used for this tier, along with hardware, operating system and application configuration.
Hardware Configuration identifies settings as memory, CPU, network adapter configuration, and cloud capability profiles in case deployments are made to the cloud.
Operating System Configuration identifies Operating system type, Computer Name, product key, domain join info, operating system roles and features.
Application Configurations will contain the application packages, along with configuration scripts for each tier.
Scripts will be used to install application clients as Server App-V agent and Web Deploy agent, these scripts will be configured as Pre-Install scripts on the Application Profile level so that they execute before deploying any application in the application profile.
Scripts used to configure specific applications, should be configured as Pre-Install or Post-Install on the Application Deployment level.
For Pet Shop service template, we will create 3 Virtual Machine templates, one for each tier.
To create a VM template, click Create VM template button from the service template designer.
Click on Scripts option group, then from the toolbar, click Add ->Script.
CS_SERVICES_DB
server=@sqlComputerName@;database=MSPetShop4Services;user id=@petshopUser@;password=@petshopPassword@;connect timeout=200;min pool size=4;max pool size=4;
CS_CORE_DB
server=@sqlComputerName@;database=MSPetShop4;user id=@petshopUser@;password=@petshopPassword@; connect timeout=200;min pool size=4;max pool size=4;
CS_ORDERS_DB
server=@sqlComputerName@;database=MSPetShop4Orders;user id=@petshopUser@;password=@petshopPassword@; connect timeout=200;min pool size=4;max pool size=4;
CS_PROFILE_DB
server=@sqlComputerName@;database=MSPetShop4Profile;user id=@petshopUser@;password=@petshopPassword@; connect timeout=200;min pool size=4;max pool size=4;
QUEUE_PATH
FormatName:DIRECT=OS:@lobComputerName@\Private$\PSOrders
Click on the Web Application, then from the toolbar click Add -> Application Script o Script Command type: Post-Install o Executable: cmd.exe o Parameters: /q /c configure-webtier.cmd o Script package: petshop.wt.cr o Timeout: 300 o Advanced options: § Provide a standard output/error file paths for logging purposes 7. Click Next in the Configure Applications page to commit the changes made in the previous step.
Click on the Web Application, then from the toolbar click Add -> Application Script
7. Click Next in the Configure Applications page to commit the changes made in the previous step.
8. Go to the Summary page, and click Create.
Click on Scripts option group, then from the toolbar, click Add -> Script.
SQLConn1
server=@sqlComputerName@;user id=@petshopUser@;password=@petshopPassword@;database=MSPetShop4;min pool size=4;max pool size=4;packet size=3072
SQLConn2
server=@sqlComputerName@;user id=@petshopUser@;password=@petshopPassword@;database=MSPetShop4Profile;min pool size=4;max pool size=4;packet size=1024
SQLConn3
server=@sqlComputerName@;user id=@petshopUser@;password=@petshopPassword@;database=MSPetShop4Orders;min pool size=4;max pool size=4;packet size=1024
OrderQueuePath
server=@sqlComputerName@;database=MSPetShop4Profile;user id=@petshopUser@;password=@petshopPassword@;min pool size=4;max pool size=4;
Click on the Virtual Application then from the toolbar click Add -> Application Script
DAC Application Deployment for Pet shop Profile Database: o Application package: mspetshop4profile.dacpac o Authentication: SQL Server Authentication o Deployment Run As Profile: SQLAdminRAP DAC Application Deployment for Pet shop Services Database: o Application package: mspetshop4services.dacpac o Authentication: SQL Server Authentication o Deployment Run As Profile: SQLAdminRAP
The SQL Profile will specialize the sysprep SQL Server Image. The sysprep SQL image is included in the SQL Profile VHD: SQL Server 2008 R2 Evaluation (SQLPROFILE) on Windows Server 2008 R2.VHD