Reduce TCO Using Policy-Based Management and Windows PowerShell

Slides:



Advertisements
Similar presentations
Session 1.
Advertisements

Built by Developers for Developers…. © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
demo Instance AInstance B Read “7” Write “8”
customer.
Clifford Dibble Program Manager Microsoft Corporation SESSION CODE: DAT208.
demo © 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
demo QueryForeign KeyInstance /sm:body()/x:Order/x:Delivery/y:TrackingId1Z
Tech·Ed  North America /11/ :01 AM SESSION CODE: DEV405
6/12/ :53 PM DEV311 Deep Dive into Microsoft Visual Studio Team Foundation Server 2010 Reporting Steven Borg, Principal ALM Consultant Northwest.
Julie Strauss Senior Program Manager Microsoft
9/11/2018 5:53 PM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
MDOP: Advanced Group Policy Management 4.0
Tech Ed North America /13/ :13 AM Required Slide
Tech·Ed North America /15/2018 3:31 AM
Excel Services Deployment and Administration
Overview of Social Computing in Microsoft SharePoint 2010
Customer Experiences With Business Intelligence
Implementing RESTful Services Using the Microsoft .NET Framework
Windows PowerShell Remoting: Definitely NOT Just for Servers
Sysinternals Tutorials
T-SQL Power! The OVER Clause: Your Key to No-Sweat Problem Solving
TechEd /21/2018 5:20 PM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered.
Tech·Ed North America /21/2018 6:42 PM
What’s New In ASP.NET MVC 2
Matt Masson Software Development Engineer Microsoft Corporation
Advanced Dashboard Creation Using Microsoft SharePoint Server 2010
Jason Zander Unplugged
Tech Ed North America /1/2018 4:27 PM Required Slide
Title of Presentation 12/2/2018 3:48 PM
High Availability: A Contrarian View
Business Intelligence Overview: Decisions, Decisions, Decisions
Manage Your Enterprise from a Single Seat: Windows PowerShell Remoting
Better Together: Secure SQL Server on Secure Windows
12/5/2018 3:24 PM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Windows 7 Deployment en Masse
Best Practices: Creating OData Services using WCF Data Services
Tech·Ed North America /7/2018 2:51 PM
Team Foundation Server 2010 for Everyone
The Dirty Dozen: Windows PowerShell Scripts for the Busy DBA
Introducing Microsoft SQL Server 2008 R2 Master Data Services
Authoring for Microsoft Silverlight 4 with Microsoft Expression Blend
Tech Ed North America /1/2019 2:58 AM Required Slide
Intro to Workflow Services and Windows Server AppFabric
TechEd /11/ :54 PM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered.
Microsoft Visual Studio 2010 for Web Deployment
TechEd /15/2019 8:08 PM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Tech·Ed North America /17/2019 1:47 AM
Microsoft SharePoint Conference 2009 Jon Flanders
Chris Harris Program Manager Microsoft Corporation
2010 Microsoft BI Conference
Tech·Ed North America /22/2019 7:40 PM
TechEd /7/2019 1:14 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Tech Ed North America /12/2019 6:45 AM Required Slide
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.
A Lap Around Internet Explorer 9 For Developers
Andrew Fryer Microsoft UK
Governing Your Enterprise with Policy-Based Management
2010 Microsoft BI Conference
Service Template Creation from the Ground Up
Hack-proofing your Clients using Windows 7 Security!
How and When to Use MEF: Too Much Is Never Enough
Tech Ed North America /27/ :04 AM Required Slide
Lap Around the Windows Azure Platform
Code First Development in Microsoft ADO.NET Entity Framework 4.1
Building BI applications using PowerPivot for Excel
Title of Presentation 5/24/2019 1:26 PM
TechEd /30/2019 7:18 PM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Tech Ed North America /6/2019 2:07 PM Required Slide
Tech·Ed North America /7/2019 2:30 PM
Presentation transcript:

Reduce TCO Using Policy-Based Management and Windows PowerShell Tech Ed North America 2010 11/23/2018 5:32 PM Required Slide SESSION CODE: DAT311 Reduce TCO Using Policy-Based Management and Windows PowerShell Robert Hutchison Program Manager Microsoft Corporation © 2010 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.

Agenda Introduction Lap around PBM Lap around PowerShell PowerShell & PBM SQL Server R2 Control Point Wrap up

Policy Based Management Availability in SQL 2008+ Enables database administrators to manage SQL Server by intent DBAs declare the desired state of the SQL Server environment Automatic or manual checking/enforcement of compliance Automation of configuration checklists The desired state and the rules by which it is enforced is known as Policy

How does Policy help with TCO? Contributors to high TCO Availability issues Downtime, outage & failure expenses Performance issues diminish money making ability Security issues breach, reputation, recovery & prevention Capacity issues Under/Overutilized resources PBM can help with this PBM enforces this (declarative) PowerShell automates this (scale)

Terms and Concepts Policy Condition Target Facet Category

Policy Example

Policy Categories Policy Categories have 2 purposes Organization Scope Policy belongs to one and only one category Examples Audit Configuration Maintenance Security Performance

Policy Examples Security Maintenance Performance Extensible Restrict authentication mode for a SQL Server Instance to Windows Authentication Checks whether password policy enforcement on SQL Server logins is enabled Maintenance Check if database and the backups are on separate backup devices Check whether the database has suspect database pages Performance Check an instance of SQL Server having processors that are assigned with both the affinity mask and the affinity I/O mask options Extensible

Creating & Evaluating Policies Policies are created and managed using Management Studio Steps to creating a Policy Select a Management Facet that contains the properties of interest Define a Condition that specifies the state of the Facet Define a Policy that contains the Condition Specify the Target Set for the Policy Specify the Evaluation Mode Evaluating a Policy This can be done manually or on a schedule

Tech Ed North America 2010 Lap around PBM 11/23/2018 5:32 PM Demo Lap around PBM DEMO © 2010 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.

Windows PowerShell A revolutionary interactive shell and scripting language built on top of .NET Powerful Windows Administration Uses real objects in a “pipeline” Designed for automation of the Windows environment Standard component of Windows 2008 R2+ and Windows 7+

11/23/2018 Cmdlets Name is always verb-noun, to enable users to “figure out” functionality from name 150+ default cmdlets ship with PowerShell You can also write your own Use Get-Command to list all cmdlets Common Syntax: verb-noun –parameter1 argument1 –parameter2 argument2 -switchParameter Can be “piped” © 2008 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.

Providers The file system is just another “provider” 11/23/2018 Providers The file system is just another “provider” Other providers include: The Registry Certificates Active Directory SQL Server You can write your own Cmdlets provide consistent behavior, regardless of provider A provider has “drives” © 2008 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.

SQL PowerShell Integration SQL 2008+ provide PowerShell integration SQL Provider Exposes the hierarchy of SQL Server objects Similar to file system hierarchy SQL Cmdlets SQLPS.exe PowerShell console that loads SQL snapins Launch from standalone or from Management Studio Integrated with SQL Agent

SQLPS.exe SQLPS.exe is included in SQL 2008+ Starts a PowerShell session with the SQL Server PowerShell provider PowerShell can be invoked 4 ways on a SQL Server installation Launching SQLPS.exe directly Launching from Management Studio Launching from SQL Server Agent job Launching PowerShell directly

SQL Provider SQL Provider has the following sub-folders SQLSERVER:\SQL SQLSERVER:\SQLPolicy (more on this later) SQLSERVER:\SQLRegistration SQLSERVER:\DataCollection SQLSERVER:\Utility Included via the SqlServerProviderSnapin100 snapin

SQL Cmdlets SQL Server 2008+ includes the following cmdlets Invoke-SqlCmd Invoke-PolicyEvaluation (more on this later) Encode-SqlName Decode-SqlName Convert-UrnToPath

Tech Ed North America 2010 Lap around SQL PowerShell 11/23/2018 5:32 PM Demo Lap around SQL PowerShell DEMO © 2010 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.

PowerShell & PBM Capabilities exposed to PowerShell Creation/Modification SMO Classes Navigation SQLSERVER:\SQLPolicy Evaluation Invoke-PolicyEvaluation Results EvaluationHistories EnumPolicyExecutionHistoryDetail EnumPolicyExecutionHistoryDetailResults

SQLSERVER:\SQLPolicy All PBM objects are available in this folder Navigate to PBM objects under each instance Set-Location SQLSERVER:\SQLPolicy\<ComputerName>\<InstanceName> Available objects Conditions ObjectSets Policies PolicyCategories PolicyCategorySubscriptions

Invoke-PolicyEvaluation Cmdlet for invoking a Policy Evaluation  Can be used to invoke Policies Stored in SQL Server Stored in XML files Can specify evaluation modes Check CheckSqlScriptAsProxy Configure Targets TargetServerName TargetExpression

Tech Ed North America 2010 PBM and PowerShell 11/23/2018 5:32 PM Demo PBM and PowerShell DEMO © 2010 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.

Facets PBM relies heavily on facets Facets enable the following: Create a single view of all physical properties for an object Create specific views of object properties (i.e. security, performance etc.) Create logical properties derived from physical properties Facets can be on one or more objects (target types) Objects (target types) can have one or more facets

Facet examples Database Server Maintenance Options Performance Security Server Configuration Settings Setup Surface Area

Tech Ed North America 2010 Facets 11/23/2018 5:32 PM Demo Facets DEMO © 2010 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.

Evaluation Modes On Demand On Schedule On Change Log Only On Change Prevent

Evaluation modes On Demand On Schedule On Change: Log Only Evaluate a policy when specified by user Available through SSMS or Windows PowerShell™ Option to force certain conditions to comply with policy Supports down-level evaluation (depends on properties exposed) On Schedule SQL Server 2008 only SQL Server Agent job periodically evaluates a policy Most policies support this mode On Change: Log Only Event notification evaluates a policy when a relevant change is made On Change: Prevent DDL triggers prevent policy violations

Tech Ed North America 2010 PBM In Depth 11/23/2018 5:32 PM Demo PBM In Depth DEMO © 2010 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.

SQL Server R2 – SQL Server Control Point SQL Server Control Point is a new feature in R2 Provides insight into resource utilization through policy evaluation Extends Policy-Based Management to the SQL Server Control Point Set policies to define desired utilization thresholds across target servers or applications

SQL Server Control Point

Resource Optimization Dashboard viewpoints provide insight Resource Utilization Policy Violations Identify consolidation opportunities & at risk resources Policies Set desired utilization thresholds Instances and applications

Required Slide Track PMs will supply the content for this slide, which will be inserted during the final scrub. Tech Ed North America 2010 11/23/2018 5:32 PM DAT Track Scratch 2 Win Find the DAT Track Surface Table in the Yellow Section of the TLC Try your luck to win a Zune HD Simply scratch the game pieces on the DAT Track Surface Table and Match 3 Zune HDs to win © 2010 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.

Resources Learning Required Slide www.microsoft.com/teched Tech Ed North America 2010 11/23/2018 5:32 PM Required Slide Resources Learning Sessions On-Demand & Community Microsoft Certification & Training Resources www.microsoft.com/teched www.microsoft.com/learning Resources for IT Professionals Resources for Developers http://microsoft.com/technet http://microsoft.com/msdn © 2010 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.

Complete an evaluation on CommNet and enter to win! Tech Ed North America 2010 11/23/2018 5:32 PM Required Slide Complete an evaluation on CommNet and enter to win! © 2010 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.

Sign up for Tech·Ed 2011 and save $500 starting June 8 – June 31st http://northamerica.msteched.com/registration   You can also register at the North America 2011 kiosk located at registration Join us in Atlanta next year

Tech Ed North America 2010 11/23/2018 5:32 PM © 2010 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. © 2010 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.

Required Slide Tech Ed North America 2010 11/23/2018 5:32 PM © 2010 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.