The Windows Azure Pack is a collection of Microsoft Azure technologies available to Microsoft customers at no additional cost. It runs on top of Windows Server 2012 R2 and System Center 2012 R2 and, through the use of the Windows Azure technologies, enables you to offer a rich, self-service, multi-tenant cloud, consistent with the public Windows Azure experience. Once installed in your data center, it helps provide a self-service portal for managing services such as websites, Virtual Machines, and Service Bus; a portal for administrators to manage resource clouds; scalable web hosting; and importantly automation.
On the topic of automation and “building clouds”, Charles Joy at Microsoft has put together a fascinating multi-post series on TechNet blogs titled “Automation–The New World of Tenant Provisioning with Windows Azure Pack“.
So, what is his blog series all about? He provides a quick overview, “ Applying existing knowledge of tenant provisioning techniques in this “new world”;  Transforming existing knowledge (Service Templates) of tenant workload deployments into “WAP friendly” workload deployments (VM Role Gallery Resources); [and 3] Providing new automation (PowerShell scripts) for the latest tenant provisioning technology (WAP).”
You can also download Charles’ Windows Azure Pack Tenant Provisioning Automation Toolkit from TechNet. These Example PowerShell Scripts and SMA Runbooks extend the current Windows Azure Pack Tenant API and PowerShell offerings, highlighting several example solutions for the Automation of Tenant Provisioning Gallery Item VM Roles.