Mikael Deurell Senior Consultant Microsoft Mail: Blog: blogs.msdn.com/deurell.

Slides:



Advertisements
Similar presentations
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Advertisements


© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: Identity Management - Login © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
© 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: Reprint Outstanding Transactions Report © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product.
Feature: Purchase Requisitions - Requester © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
MIX 09 4/15/ :14 PM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Parametric Sweeps Cluster SOA MPI LINQ to HPC Excel Cluster Deployment Monitoring Diagnostics Reporting Job submission API and portal.
Co- location Mass Market Managed Hosting ISV Hosting.
Windows 7 Training. Windows ® 7 Compatibility Installer Detection.
Windows 7 Training Microsoft Confidential. Windows ® 7 Compatibility Version Checking.
Multitenant Model Request/Response General Model.
Feature: Purchase Order Prepayments II © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
Feature: OLE Notes Migration Utility
Feature: Web Client Keyboard Shortcuts © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
Feature: SmartList Usability Enhancements © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
Session 1.
travel Suru Windows 7 Release NET 4.0 / Surface 2.0 Release Multi-Touch Controls Multi-Touch API Surface Multi-Touch Controls & API Surface.
Built by Developers for Developers…. © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
 Rico Mariani Architect Microsoft Corporation.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: Assign an Item to Multiple Sites © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
WinHEC /22/2017 © 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
A Day in the Life of a SharePoint Administrator Amit Puri Senior Development Lead Microsoft India.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: Print Remaining Documents © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
Connect with life Connect with life
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: Document Attachment –Replace OLE Notes © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product.
North America Region Europe Region Asia Pacific Region.
Feature: Suggested Item Enhancements – Sales Script and Additional Information © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows.
Feature: Customer Combiner and Modifier © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
Feature: Employee Self Service Timecard Entry © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
Ian Ellison-Taylor General Manager Microsoft Corporation PC27.
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
demo Instance AInstance B Read “7” Write “8”

customer.
03 | Word Templates Brian Meier| Senior Lead Program Manager.
demo © 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
demo Demo.
demo QueryForeign KeyInstance /sm:body()/x:Order/x:Delivery/y:TrackingId1Z
Feature: Suggested Item Enhancements – Analysis and Assignment © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and.
projekt202 © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
The CLR CoreCLRCoreCLR © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product.
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks.
© 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.

IoCompleteRequest (Irp);... p = NULL; …f(p);
Ctrl-K, X Ctrl-K, S
MIX 09 4/17/2018 4:41 PM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Возможности Excel 2010, о которых следует знать
Title of Presentation 11/22/2018 3:34 PM
Title of Presentation 12/2/2018 3:48 PM
1/3/2019 1:21 PM © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
8/04/2019 9:13 PM © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Andrew Fryer Microsoft UK
Виктор Хаджийски Катедра “Металургия на желязото и металолеене”
PENSACOLA ENERGY WORK PLAN OCTOBER 10, 2016
Title of Presentation 5/12/ :53 PM
Шитманов Дархан Қаражанұлы Тарих пәнінің
Title of Presentation 5/24/2019 1:26 PM
日本初公開!? Vista の新機能を実演 とっちゃん わんくま同盟 7/23/2019 9:09 AM
Title of Presentation 7/24/2019 8:53 PM
Microsoft Virtual Academy
Presentation transcript:

Mikael Deurell Senior Consultant Microsoft Mail: Blog: blogs.msdn.com/deurell

Are we all developers (or related)? Who has heard of DFO? Design for Operations Who thinks stack traces in event logs are cool? Who thinks editing an XML configuration file in notepad to reconfigure your application is a good idea?

Design for Operations Windows Eventing, Performance Counters & WMI Windows PowerShell PowerShell Cmdlets MMC 3.0

Design for Operations Building applications that can be deployed Building applications that can be operated Caring about Operations [And about your debugging friends at Microsoft]

Developers build applications in a silo Hand application over to Operations Operations operate the application Applications can’t be configured or monitored with management tools used by IT Staff No Knowledge Sharing Developers required to troubleshoot No Feedback Loop

Health Model “What is not working and how bad is it?” How to Detect something is wrong How to Correct problem Realized through Instrumentation Events Performance Counters WMI

Windows Management Tools Event Viewer Performance Monitor Group Policy Management Console (GPMC) Windows PowerShell Microsoft Management Console (MMC) Snapins Scripting solutions Windows PowerShell Enterprise Scale Tools System Center

Online Offline Failed Performance Problem Dependency Problem Other Problem Security Problem Integrity Problem Started (All processes started) Stopped (All processes stopped) Shut down (All processes killed) Failed (Event: Can’t recover can’t even stop) Problem Detected (Event: Database is not available) Recovered Successfully (Event: Database reconnection established) Degraded

WMI Provider WMI Events WMI Properties.NET Application EventsConfiguration Performance Counters & Diagnostics Event Logs (Application, User Defined) Performance Counters Debug Tracing

Register Event Log Source Write Event if(!EventLog.SourceExists(“Source”)) { EventLog.CreateEventSource(“Source”,”Log”); } if(EventLog.SourceExists(“Source”)) { EventLog myEventLog = new EventLog(); myEventLog.Source=“Source”; myEventLog.Log=“Application”; myEventLog.WriteEntry(“Event Message”, EventLogEntryType.Information, 1000, 45); myEventLog.dispose(); }

Create Event Class Derive from BaseEvent Fire the event public class CustomWmiEvent : BaseEvent { private string eventName; public string EventName { set { eventName = value; } } CustomWmiEvent wmiEvent = new CustomWmiEvent(); wmiEvent.Fire();

Why Use Windows Eventing 6.0? Better Performance Declarative Event Structure (Meta Data/Discovery) XML based Subscriptions Unified API for Eventing and Tracing Integration with Task Scheduler Any problems? No managed API… Yet… Really sorry… I mean it…

Install Counters if (PerformanceCounterCategory.Exists("MySampleCategory")) { PerformanceCounterCategory.Delete("MySampleCategory");} System.Diagnostics.CounterCreationDataCollection CounterDatas = new System.Diagnostics.CounterCreationDataCollection(); // Create the counters and set their properties. System.Diagnostics.CounterCreationData cdCounter1 = new System.Diagnostics.CounterCreationData(); cdCounter1.CounterName = "SimpleCount"; cdCounter1.CounterHelp = "Just a simple numerical count"; cdCounter1.CounterType = System.Diagnostics.PerformanceCounterType.NumberOfItems64; // Add both counters to the collection. CounterDatas.Add(cdCounter1); // Create the category and pass the collection to it. System.Diagnostics.PerformanceCounterCategory.Create("MySampleCategory", "My Sample Category Counters", CounterDatas);

Increment Data private PerformanceCounter _Counter1; … try { _Counter1 = new PerformanceCounter("MySampleCategory", "SimpleCount", false); } … if (_Counter1 != null) { _Counter1.Increment(); }

What is Windows PowerShell? Command Line Shell and Scripting Language Why use Windows PowerShell? A shell that knows.net! Makes ITPro’s and Developers talk the same language! Automates Bulk System Administration Tasks Help gain greater control of system Easy to build Custom Windows PowerShell Commands Easy to Provide GUI (via MMC or Windows Forms)

Steps to Building CmdLets 1. Download Windows PowerShell 2. Download the Visual Studio Template for Windows PowerShell Create a New Windows PowerShell Project 4. Complete the SnapIn Class Definition 5. Add Classes for your CmdLets 1. Add Attributes 2. Derive from PSCmdLet 3. Implement ProcessRecord 6. Build and Register 1. Use InstallUtil to “install” the snapin 7. Load Into PowerShell 1. Add-PsSnapIn

What is Microsoft Management Console 3.0? Provides a common administration GUI Why use Microsoft Management Console 3.0? Build administrative consoles Same technology Windows uses Consistent management experience for administrators Admin dudes love it!

Tree View Result Pane Action Pane Snap-in Node ViewDesc View Selected Data Action Verbs Nodes

Windows PowerShell Engine Custom Application Microsoft Management Console 3.0 PSObject Windows PowerShell Cmdlets Command Line GUI Layered Over Windows Forms Early Bound Objects Your Application To Manage

© 2007 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.