320 likes | 473 Views
DEV358. Building Windows 8 Apps for the Enterprise . Robert Green rogreen@microsoft.com / @ rogreen_ms Technical Evangelist Microsoft Corporation. Windows 8. Windows reimagined . All the apps you want. Cloud-connected. Get more at the Windows Store. Reimagined browsing with IE10.
E N D
DEV358 Building Windows 8 Apps for the Enterprise Robert Green rogreen@microsoft.com / @rogreen_ms Technical Evangelist Microsoft Corporation
Windows 8 • Windows reimagined • All the apps you want • Cloud-connected • Get more at the Windows Store • Reimagined browsing with IE10 • At home and at work • Great experience across hardware • Built on a solid foundation
Types of Metro Style Apps Consumer B2C LOB ISV Custom LOB Examples Headtrax Expense Approval PLM Company News Windows Store Windows Store Windows Store or Side-loaded Side-loaded Distribution Built by Tech Company Enterprise Tech Company Enterprise Consumer Business Used by
Benefits of LOB Metro Style Apps • Mobility • Suited for modern form factors and longer battery life • Increase Productivity • Touch first, fast and fluid experience (live tiles, notifications, contracts) • Performance • Quick startup and designed to be asynchronous • Security • Reduced system vulnerability with isolated app containers • Use What You Know • Same tools, languages and back-end infrastructure you already have • Deployment • Easy deployment through the Store or by side-loading
Desktop and Web Apps • Desktop Apps • Pixel accuracy apps like the CAD/CAM • Need chrome like Visual Studio • Background tasks like generating Excel reports • Web Apps • Don’t need platform richness • Accessible across various platforms • Need zero foot print
What Does The App Do? • Employees can create new expense reports and submit them for approval • Managers can approve or reject expense reports
Architecture • Data is in a back end system, SQL Server for our demo • Data is exposed by a WCF service • Windows 8 client used to manage expense reports
demo Create the projectCreate the ViewModels
Main Page • Employees should see unreconciled charges and how old they are • Employees should see saved expense reports • Employees should see reports they have submitted that are waiting for approval • Managers should see reports waiting for their approval
demo Create the main page
Create An Expense Report • Employees can launch expense report page from Main page by tapping charges or by tapping a button in the app bar. • Expense report page should show outstanding charges. Employee can add one or more at a time to expense report. • Employee can create a new charge and add it to expense report. • Employee can remove charges from expense report. • Employee can save and submit expense report.
demo Create an expense report
Edit A Saved Expense Report • Employees can open a saved expense report by tapping it from the Main page. • Employee can add additional charges and then save and submit expense report.
demo Edit a saved expense report
View, Approve/Reject Submitted Expense Reports • Employees can view their submitted expense reports by tapping them from the Main page. • Employees cannot modify submitted expense reports. • Managers can view expense reports submitted by their direct reports. They can approve or reject them.
demo View, approve/reject submitted expense reports
Take Advantage Of Windows 8 Features • Live tiles • App’s tile should show users information, eg #/$ of outanding charges, amount owed from pending reports, #/$ of reports waiting for approval. • Secondary tiles • Users should be able to pin an expense report to the Start screen. • When they tap that secondary tile, the app starts and shows that report.
demo Live tiles and secondary tiles
Take Advantage Of Windows 8 Features • Search • Users should be able to search for charges or expense items containing certain text. • Users should be able to search for charges or expense items in particular categories. • Share • Employee should be able to mail their manager a reminder about a pending report. • Managers should be able to mail an employee with questions about a pending report.
demo Search and share
Working With Data • Synchronization • Storage • Local store with database support Local file systems and network shares Your backend systems Windows Azure 3rd party services IndexDb, JetDb, SQLite • Enterprise Authentication and Private Network • SkyDrive Database sync Roaming storage
Authentication and SecurityMeeting enterprise standards • Security • Authentication • Integrated Windows authentication • App Certificate – My and Root stores • Multi-factor authentication • Federated ADFS Authentication • Single Sign On with Live, Facebook, etc.. • Enterprise Authentication and Private Network • Windows.Security.Cryptography.Certificates • Credential Picker andShared User Certificates WebAuthenticationBroker.AuthenticateAsync WebAuthenticationBroker.AuthenticateAsync • Isolated App Containers • Crypto APIs • Support for SSL/TLS • App Signing • Robust Capabilities framework
Where Do Metro Style LOB Apps Come From? • Windows Store • Certified by Windows • Installed and updated by end users • ISV built business apps • IT Direct Distribution • Certified by the corporation • Installed and updated via IT supplied processes • Built in house or purchased directly from ISVs
Preparing Machines for IT Direct Distribution • Group policy set for Install All Trusted Apps • Allows install of sideloaded apps • App must be signed by a certificate that chains to Trusted Publisher • App signing certificates are trusted • Installation and update by IT based process • Can only be run on enterprise side loading enabled devices • Machine must be enabled for sideloading to launch apps • Windows 8 Enterprise or Server Edition AND domain joined • Windows 8 Professional, Windows RT, non-domain joined Enterprise activate a secondary product key
Deployment • PowerShell • Detect (Get-AppxPackage –name Contoso.SampleLOBApp).version • Install/Update Add-AppxPackage \\fileserver\Contoso\SampleLOBApp.appx • Remove Get-AppxPackage -name Contoso.SampleLOBApp | Remove-AppxPackage • System Center 2012 Configuration Manager Service Pack 1 • Enable side-loading for machines • Deploy and inventory apps
demo Deploying a Metro Style LOB App
Related Content • DEV369: Creating LOB Metro style Apps in XAML Using Microsoft Expression Blend and Visual Studio WCL203: Windows 8: Understanding the Windows Store and Metro style App Deployment in the Enterprise Find Me Later At Visual Studio Toolbox on Channel 9
Resources Learning TechNet • Connect. Share. Discuss. • Microsoft Certification & Training Resources http://europe.msteched.com www.microsoft.com/learning • Resources for IT Professionals • Resources for Developers • http://microsoft.com/technet http://microsoft.com/msdn
Evaluations Submit your evals online http://europe.msteched.com/sessions
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.