Presentation is loading. Please wait.

Presentation is loading. Please wait.

Reduce TCO Using Policy-Based Management and Windows PowerShell

Similar presentations


Presentation on theme: "Reduce TCO Using Policy-Based Management and Windows PowerShell"— Presentation transcript:

1 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.

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

3 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

4 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)

5 Terms and Concepts Policy Condition Target Facet Category

6 Policy Example

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

8 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

9 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

10 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.

11 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+

12 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.

13 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.

14 SQL PowerShell Integration
SQL 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

15 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

16 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

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

18 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.

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

20 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

21 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

22 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.

23 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

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

25 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.

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

27 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

28 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.

29 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

30 SQL Server Control Point

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

32 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.

33 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 Resources for IT Professionals Resources for Developers © 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.

34 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.

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

36 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.

37 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.


Download ppt "Reduce TCO Using Policy-Based Management and Windows PowerShell"

Similar presentations


Ads by Google