240 likes | 870 Views
Building and Diagnosing Applications using Visual Studio and Azure SDK. Paul Yuknewicz paulyuk@Microsoft.com Principal PM Manager. Azure SDK and Tools. Azure SDK (2.7) for .NET & VS available http://azure.microsoft.com/downloads/ and WebPI VMs with VS & SDK preinstalled on Azure gallery!
E N D
Building and Diagnosing Applications using Visual Studio and Azure SDK Paul Yuknewicz paulyuk@Microsoft.com Principal PM Manager
Azure SDK and Tools • Azure SDK (2.7) for .NET & VS available http://azure.microsoft.com/downloads/and WebPI • VMs with VS & SDK preinstalled on Azure gallery! • Also: SDKs for PowerShell, CLI, Java, Node, Python • Works in conjunction with VS Online for DevOps • Standalone storage tools for Windows, Mac and Linux on storageexplorer.com • Tell us what you think http://aka.ms/sdkfeedback
Azure SDK 2.7 • App Service • Cloud Services • Connected Services • Azure Resource Manager (ARM, IaaS VMs) • Azure resource optics via Cloud Explorer • PowerShell editing • Diagnostics for Cloud Services and VMs • Command-line support for PowerShell and CLI • Docker container (preview)
Command Line SDKs • PowerShell • PowerShell cmdlets for automating services management tasks and deployment • Better acquisition through azure.com and PowerShellGet • Improved separation of ASM (v1) and ARM (v2) modes • Piping enhancements • Side-by-side consoles – stateless profiles and persistence • CLI – cross-platform command-line interface • Mac, Linux and Windows CLI for services management tasks and deployment • Greater parity with PowerShell cmdlets • Improved sign in using Microsoft Account, Org Account, 2-factor auth
Store / Marketplace Automation Portal Multi-Factor Authentication Active Directory Key Vault Platform Services Security & Management Hybrid Operations Compute Developer Services App Services Team Project Service Fabric Web Apps API Management Cloud Services API Apps Azure SDK Visual Studio Azure AD Connect Health Remote App Batch Logic Apps Notification Hubs Mobile Apps Application Insights AD Privileged Identity Mngt Integration Analytics & IoT Data Storage Queues Biztalk Services Backup Operational Insights Hybrid Connections Service Bus SQL Database SQL Data Warehouse HDInsight Machine Learning Import/Export Site Recovery Content Delivery Network (CDN) Media Services Redis Cache VM Image Gallery & VM Depot Data Factory Event Hubs Media & CDN Search StorSimple Stream Analytics Mobile Engagement Tables DocumentDB Compute Storage Networking Infrastructure Services DNS Express Route Traffic Manager VPN Gateway Application Gateway Premium Storage Virtual Network Load Balancer Azure Files BLOB Storage Windows Linux Containers
App Services Integrated Offering Web Apps Mobile Apps Web apps that scale with your business Build Mobile apps for any device LOGIC Apps Automate business process across SaaS and on-premises API Apps Easily build and consume APIs in the cloud
App Services Tools • Familiar Web projects and editing • Simplified deployment • AD Sign-in and connected services • Powerful diagnostics, live streaming and remote debugging • CI/CD, Git, and VSO ALM integration
WebJobs • Run programs and scripts in the context of a Web app • Great for small background processes, e.g. processing queues, maintenance, sending emails, … • .NET developers can push console and web projects as WebJobs • Run custom EXE’s and scripts too • Helpful construction and debugging tools public static void Main() { JobHosthost = new JobHost(); host.RunAndBlock(); } public static void ProcessQueueMessage([QueueTrigger("webjobsqueue")] string inputText, [Blob("containername/blobname")]TextWriter writer) { writer.WriteLine(inputText); }
DemoBuilding a Web App and WebJob using App Services and tools
Azure Resource Manager (ARM) • Define a complete cloud topology using infrastructure as code • Azure Resource Manager project provides templates and template editing, snippets, customizable, deployment scripts, and a deployment UI • Many additional templates available • New Virtual Machine, Networking and Storage resources • App Service resources (Web Apps, Mobile Apps, Logic Apps, API Apps) • JSON Outline view for Azure RM deployment templates
PowerShell Editing • Extension on the VS Gallery owned by Adam Driscoll (PowerShell MVP) • Azure tools team is a contributor • Better colorization & IntelliSense • Remote execution & debugging • 64bit and DSC • New templates for PowerShell items
Continuous Delivery and Release Management Team Build • Use VSO for built in delivery of App Services and Cloud Services • Trigger builds from check ins or schedule • Run custom script (e.g. PowerShell, Chef) tasks Release Manager • Orchestrate Build, Test, and Deploy to multiple environments (Dev, QA, Staging, Prod..) • Move and promote complete application (data, config, ..) • Promote builds based on custom criteria • Works with VSO, GitHub, Jenkins and more Come to my next session for an Azure DevOps deep dive!
Docker containers (Preview) • Extension on the VS Gallery • Enables better DevOps • Eliminates “drift” of application environments and dependencies • Use the same containers in all your environments • Provision rapidly • Enables high density of containers on single VMs • Leverages standard Docker APIs • Works on Linux and Windows
DemoBuilding APaaS applications using App Services and Web Jobs
Diagnosing your application in development • Diagnose issues in the cloud using events/logs • Dynamic enable/disable using config or commands • Diagnostics supported in the emulator • Export Azure storage tables to CSV • Improved diagnostics summary viewer • Auto refresh capability • Improved readability of events
Diagnosing your production application • View application metrics, errors, and logs in Azure portal -> Health and Monitoring blade • View/Search system & application logs together using ElasticSearch, LogStash, and Kibana [ELK] via Logstash plugin for Azure • http://aka.ms/AzureDiagnosticsElk
Remote debugging • Attach to live instances of App Services, Cloud Services, and IaaS VMs • Recommended for pre-prod
Summary • Tools you need to build and diagnose Azure applications (VS/.NET and cross-platform) • Integrate with DevOps / ALM lifecycle • Try Azure now: MSDN benefit, Free Trial, developer VMs
Resources Visual Studio 2015: http://visualstudio.com Azure SDK Downloads: http://azure.microsoft.com/downloads/ Azure SDK for .NET Dev Center: http://azure.microsoft.com/develop/net/ What’s New for Azure SDK (2.7) Video: https://channel9.msdn.com/Shows/Visual-Studio-Toolbox/Azure-27-SDK Azure Blog (developer tag): https://azure.microsoft.com/en-us/blog/topics/developer/
More Resources • Links • Give us feedback - http://aka.ms/sdkfeedback • App Service video - http://azure.microsoft.com/en-us/campaigns/azure-march-announcement/ • Scripts to create ELK cluster - http://aka.ms/azurediagnosticselk • JSON resource templates - http://azure.microsoft.com/en-us/documentation/templates/ • PowerShell tools - http://aka.ms/Get-POSHTools • Docker tools - http://aka.ms/vslovesdocker • Azure Service Fabric tools – http://aka.ms/servicefabric • Connected Services SDK - https://github.com/Microsoft/ConnectedServices