曹祖聖 台灣微軟資深講師 [email protected]  · mcdba, mcad, mcsd, mcts, mcitp, mcpd, mct,...

101
1/101 曹祖聖 台灣微軟資深講師 [email protected] http://teacher.syset.com MCP, MCP+I, MCSA, MCSE, MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP

Upload: others

Post on 25-Jun-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

1101

曹祖聖

台灣微軟資深講師

jimycaosysetcom

httpteachersysetcom

MCP MCP+I MCSA MCSE MCDBA MCAD MCSD MCTS MCITP MCPD MCT MVP

2101

3101

關於自動化

4101

開發與 IT 角色的關係TEMPLATES

DASHBOARDS

ALERTS

SELF-SERVICE

AUTOMATION

DELEGATION

POLICIES

VISIBILITY

HEALTH

LIBRARY

ACCESS

UPDATES

WORKFLOW

控制

報表

監控

確保一致性

安全性

上架

動作整合

校正與補救

服務提供

身份識別

部署

生命週期管理

流程整合

服務提供與自動化

基礎架構管理

HYPERVISOR

OS OS

HYPERVISOR

OS OS

HYPERVISOR

OS OS

HYPERVISOR

OS OS

SCALABLEMULTI-PLATFORM ABSTRACTED

服務消費者

應用程式開發人員

資料中心管理員

服務提供者使用量效能

自助服務

應用程式

商業需求

商業流程

服務清單 SLA

成本

應用程式管理 S

QL

SE

RV

ER

ER

P SH

AR

EP

OIN

T S

ER

VE

R

MU

LT

I-T

IER

CU

ST

OM

LO

B A

PP

LIC

AT

ION

AN

AL

YT

ICS

VD

I

CR

M

CU

ST

OM

ER

DE

MO

GR

AP

HIC

S

WE

B

5101

標準化服務消費者

服務提供者

自助服務

自動化

流程

系統

6101

18 分鐘

IT 工作流程自動化之前

派工單遞送相關資料檢驗事件

收集服務資料檢查已知問題 收到工單 解決問題

結案製作報告

檢驗解決方案

7 分鐘20 分鐘 10 分鐘 3 分鐘7 分鐘 3 分鐘

總共花費 68 分鐘

事件分類 診斷 尋求協助 修正 回報

有太多人為的不確定性

7101

Orchestrator 提供私有雲自動化基礎

降低成本且改善可預測的不穩定性

讓 IT 人員聚焦在更有價值的工作上

減少人工處理所需的成本

自動化

提供彈性且可靠的服務

使用彈性的流程提昇IT 人員的時間價值

透過工具系統資源改善服務的穩定性

編配

最佳化並延伸既有投資

使用 Integration Packs

整合異質系統

使用 Orchestrator

Integration Toolkit 客製製化其它系統的Integration Packs

整合

8101

OpenView Operations

服務

管理

配置

組態設定

監控

保護

混合環境最佳化和 System Center 2012 緊密整合

HP Service Manager SoftwareMake your IT service desk enterprise strength

Orchestrator 整合一切

9101

變動上線

應用程式服務管理

異動與一致性檢查

監控要求

初始化異動

建立部署

複製虛擬機器

建立 VHD

建立伺服器

連接網路

將 VHD 連接㺫虛擬機器

將伺服器關聯至服務

更新 CMDB結案意

外回應

改善服務的可靠性

事件管理

服務受理

資產管理 CMDB

組態設定

虛擬化

安全性

儲存區

伺服器

網路

加速整體的反應時間

IT 工作 跨工作全自動整合

Orchestrator 如何自動化 IT 流程

虛擬機器生命週期管理

10101

讓 IT 人員專心處理特殊的意外事件

1 分鐘1 分鐘 1 分鐘 3 分鐘 幾秒鐘1 分鐘 幾秒鐘

總共花費不到 8 分鐘

因為自動化所以速度快品質一致服務可預期

IT 工作流程自動化之後

派工單遞送相關資料檢驗事件

收集服務資料檢查已知問題 收到工單 解決問題

結案製作報告

檢驗解決方案

事件分類 診斷 尋求協助 修正 回報

11101

架構設計與建置

12101

13101

httptechnetmicrosoftcomen-uslibraryhh420361aspx

14101

15101

16101

17101

18101

19101

20101

Runbook設計與執行

21101

22101

23101

24101

通知 稽核

流程

錯誤處理

25101

26101

27101

28101

29101

2 定義迴圈結束條件

1 啓用迴圈

30101

31101

32101

撰寫指令碼

33101

34101

$p1 = aaa從 初始化資料

$p2 = bbb 從 初始化資料

$Session = New-PSSession -ComputerName SVR1

$ResultArray = Invoke-Command -Session $Session

-ArgumentList $p1 $p2 $p3 -ScriptBlock

Param ( $p1 $p2 $p3 )

要執行的指令Return (xxx yyy hellip)

Remove-PSSession -Session $Session

$data1 = ResultArray[0] 取得 xxx

$data2 = ResultArray[1] 取得 yyy

35101

[SystemReflectionAssembly]LoadWithPartialName(SystemWindowsForms)

$MsgBox = [SystemWindowsFormsMessageBox]

$MsgBoxShow(Hello World)

$result = $MsgBoxShow(Are you sure Title 4)

if ($result -eq Yes)

$MsgBoxShow(YES)

else

$MsgBoxShow(NO)

36101

37101

httpmsdnmicrosoftcomen-uslibraryhh921685aspx

httporchestratorcodeplexcomreleasesview87873

httporchestratorcodeplexcomreleasesview82959

38101

51f9b950-6e33-465d-bc77-4d33e61831ff

39101

-getparameters

40101

41101

42101

43101

整合其它系統 ndash Integration Packs

44101

1

2

45101

46101

bull TFS

bull PowerShell

bull SharePoint

bull Active Directory

bull Exchange Mail and

Calendaring

bull Local Security

bull Scheduled Tasks

bull Utilities

bull Social media (Twitter)

bull Text Manipulation

bull F5

bull VMWare

bull Configuration Manager

2007

bull 4 BMC IPs- Kelverion

bull Dell -AIM IP

bull NetApp- OCPM IP

bull Cisco- UCS IP

bull Cisco- NCM

JaxMPFyrsoft

bull Kelverion- DBs IP

bull Kelverion-ServiceNow IP

bull Kelverion-Data

Manipulation IP

bull Kelverion-HTTP

Applications IP

bull Vision Solutions-

DoubleTake IP

bull VMWare vSphere

bull IBM Tivoli Netcool

bull HP OM

bull HP SM

bull HP iLo

bull Active Directory

bull MS Exchange User

bull MS Exchange Admin

bull FTP

bull New features added to

VMWare vSphere

bull REST

bull SharePoint

bull Windows Azure

微軟 協力廠商 Codeplex 社群

47101

httpwwwmicrosoftcomen-usdownloaddetailsaspxid=39622

httptechnetmicrosoftcomen-uslibraryhh295851aspx

Codeplex社群 httporchestratorcodeplexcom

48101

49101

httpmsdnmicrosoftcomen-uslibraryhh855855aspx

很容易擴展的平臺

50101

很容易擴展的平臺

51101

52101

Runbook偵錯與事件記錄

53101

54101

55101

56101

57101

58101

ltruntimegt

ltgeneratePublisherEvidence enabled=falsegt

ltruntimegt

59101

aspt RunbookServer1 40

aspt 40

60101

Service Management Automation (SMA) 介紹

61101

Azure

監控系統

變動控制系統

其它

開發適用於 Azure 的 Runbook建立 Runbook 來自動化所有雲端的操作例如部署監控最佳化hellip

具備高可用性的引擎支援各種規模與高可用性以 PowerShell 工作流程為基礎獨立隔離的 Runbook工作

整合其它系統匯入 PowerShell 模組建立其它模組與 Runbook

連接到 Azure 服務或其它第三方系統

自動化

62101

httpgallerytechnetmicrosoftcomsystemcenterService-Management-fcd75828

63101

PowerShell 工

作流程

bull 使用Windows PowerShell 語法

bull 使用單一工作完成複雜需要面對面的

人工作業

bull 自動化錯誤復原

bull 連線與活動重試

集中式

儲存區

bull 身份資訊 憑證

bull 全域變數與連線

bull 模組

bull Runbooks (草稿與發佈)

bull 排程

高可用性

bull 多部 Runbook伺服器

bull OData Web Service

bull SQL Server 叢集 Always On

歷程分析

bull Runbook執行歷程

bull Excel PowerPivot 報表

bull Runbook使用狀況

PowerShell 工作流程

集中式儲存區

高可用性

歷程分析

Service Management Automation

(SMA)

64101

ODATA REST Web Service

Runbooks

Jobs

Modules amp Activies

Submit requests

Return results

Http RequestHttp Response

Persist State

Pick up Jobs

SQL DatabaseRunbook Workers

Service Management Portal

bull 撰寫

bull 操作

Service Management Portal

bull PowerShell 工作流程

bull PowerShell 模組

Runbook Workers

bull REST OData

bull 授權

Web Service

bull 管理

bull 操作

Powershell Cmdlets

bull Runbook資源

bull Runbook工作狀況

SMA Database

PowerShell

Module

HTTP

65101

整合 Orchestrator 與 SMA ndash混合雲環境

66101

整合

httpblogstechnetcomborchestratorarchive20140209service-management-automation-integration-with-orchestratoraspx

67101

68101

SMA 整合 PowerShell 與 OData

69101

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 2: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

2101

3101

關於自動化

4101

開發與 IT 角色的關係TEMPLATES

DASHBOARDS

ALERTS

SELF-SERVICE

AUTOMATION

DELEGATION

POLICIES

VISIBILITY

HEALTH

LIBRARY

ACCESS

UPDATES

WORKFLOW

控制

報表

監控

確保一致性

安全性

上架

動作整合

校正與補救

服務提供

身份識別

部署

生命週期管理

流程整合

服務提供與自動化

基礎架構管理

HYPERVISOR

OS OS

HYPERVISOR

OS OS

HYPERVISOR

OS OS

HYPERVISOR

OS OS

SCALABLEMULTI-PLATFORM ABSTRACTED

服務消費者

應用程式開發人員

資料中心管理員

服務提供者使用量效能

自助服務

應用程式

商業需求

商業流程

服務清單 SLA

成本

應用程式管理 S

QL

SE

RV

ER

ER

P SH

AR

EP

OIN

T S

ER

VE

R

MU

LT

I-T

IER

CU

ST

OM

LO

B A

PP

LIC

AT

ION

AN

AL

YT

ICS

VD

I

CR

M

CU

ST

OM

ER

DE

MO

GR

AP

HIC

S

WE

B

5101

標準化服務消費者

服務提供者

自助服務

自動化

流程

系統

6101

18 分鐘

IT 工作流程自動化之前

派工單遞送相關資料檢驗事件

收集服務資料檢查已知問題 收到工單 解決問題

結案製作報告

檢驗解決方案

7 分鐘20 分鐘 10 分鐘 3 分鐘7 分鐘 3 分鐘

總共花費 68 分鐘

事件分類 診斷 尋求協助 修正 回報

有太多人為的不確定性

7101

Orchestrator 提供私有雲自動化基礎

降低成本且改善可預測的不穩定性

讓 IT 人員聚焦在更有價值的工作上

減少人工處理所需的成本

自動化

提供彈性且可靠的服務

使用彈性的流程提昇IT 人員的時間價值

透過工具系統資源改善服務的穩定性

編配

最佳化並延伸既有投資

使用 Integration Packs

整合異質系統

使用 Orchestrator

Integration Toolkit 客製製化其它系統的Integration Packs

整合

8101

OpenView Operations

服務

管理

配置

組態設定

監控

保護

混合環境最佳化和 System Center 2012 緊密整合

HP Service Manager SoftwareMake your IT service desk enterprise strength

Orchestrator 整合一切

9101

變動上線

應用程式服務管理

異動與一致性檢查

監控要求

初始化異動

建立部署

複製虛擬機器

建立 VHD

建立伺服器

連接網路

將 VHD 連接㺫虛擬機器

將伺服器關聯至服務

更新 CMDB結案意

外回應

改善服務的可靠性

事件管理

服務受理

資產管理 CMDB

組態設定

虛擬化

安全性

儲存區

伺服器

網路

加速整體的反應時間

IT 工作 跨工作全自動整合

Orchestrator 如何自動化 IT 流程

虛擬機器生命週期管理

10101

讓 IT 人員專心處理特殊的意外事件

1 分鐘1 分鐘 1 分鐘 3 分鐘 幾秒鐘1 分鐘 幾秒鐘

總共花費不到 8 分鐘

因為自動化所以速度快品質一致服務可預期

IT 工作流程自動化之後

派工單遞送相關資料檢驗事件

收集服務資料檢查已知問題 收到工單 解決問題

結案製作報告

檢驗解決方案

事件分類 診斷 尋求協助 修正 回報

11101

架構設計與建置

12101

13101

httptechnetmicrosoftcomen-uslibraryhh420361aspx

14101

15101

16101

17101

18101

19101

20101

Runbook設計與執行

21101

22101

23101

24101

通知 稽核

流程

錯誤處理

25101

26101

27101

28101

29101

2 定義迴圈結束條件

1 啓用迴圈

30101

31101

32101

撰寫指令碼

33101

34101

$p1 = aaa從 初始化資料

$p2 = bbb 從 初始化資料

$Session = New-PSSession -ComputerName SVR1

$ResultArray = Invoke-Command -Session $Session

-ArgumentList $p1 $p2 $p3 -ScriptBlock

Param ( $p1 $p2 $p3 )

要執行的指令Return (xxx yyy hellip)

Remove-PSSession -Session $Session

$data1 = ResultArray[0] 取得 xxx

$data2 = ResultArray[1] 取得 yyy

35101

[SystemReflectionAssembly]LoadWithPartialName(SystemWindowsForms)

$MsgBox = [SystemWindowsFormsMessageBox]

$MsgBoxShow(Hello World)

$result = $MsgBoxShow(Are you sure Title 4)

if ($result -eq Yes)

$MsgBoxShow(YES)

else

$MsgBoxShow(NO)

36101

37101

httpmsdnmicrosoftcomen-uslibraryhh921685aspx

httporchestratorcodeplexcomreleasesview87873

httporchestratorcodeplexcomreleasesview82959

38101

51f9b950-6e33-465d-bc77-4d33e61831ff

39101

-getparameters

40101

41101

42101

43101

整合其它系統 ndash Integration Packs

44101

1

2

45101

46101

bull TFS

bull PowerShell

bull SharePoint

bull Active Directory

bull Exchange Mail and

Calendaring

bull Local Security

bull Scheduled Tasks

bull Utilities

bull Social media (Twitter)

bull Text Manipulation

bull F5

bull VMWare

bull Configuration Manager

2007

bull 4 BMC IPs- Kelverion

bull Dell -AIM IP

bull NetApp- OCPM IP

bull Cisco- UCS IP

bull Cisco- NCM

JaxMPFyrsoft

bull Kelverion- DBs IP

bull Kelverion-ServiceNow IP

bull Kelverion-Data

Manipulation IP

bull Kelverion-HTTP

Applications IP

bull Vision Solutions-

DoubleTake IP

bull VMWare vSphere

bull IBM Tivoli Netcool

bull HP OM

bull HP SM

bull HP iLo

bull Active Directory

bull MS Exchange User

bull MS Exchange Admin

bull FTP

bull New features added to

VMWare vSphere

bull REST

bull SharePoint

bull Windows Azure

微軟 協力廠商 Codeplex 社群

47101

httpwwwmicrosoftcomen-usdownloaddetailsaspxid=39622

httptechnetmicrosoftcomen-uslibraryhh295851aspx

Codeplex社群 httporchestratorcodeplexcom

48101

49101

httpmsdnmicrosoftcomen-uslibraryhh855855aspx

很容易擴展的平臺

50101

很容易擴展的平臺

51101

52101

Runbook偵錯與事件記錄

53101

54101

55101

56101

57101

58101

ltruntimegt

ltgeneratePublisherEvidence enabled=falsegt

ltruntimegt

59101

aspt RunbookServer1 40

aspt 40

60101

Service Management Automation (SMA) 介紹

61101

Azure

監控系統

變動控制系統

其它

開發適用於 Azure 的 Runbook建立 Runbook 來自動化所有雲端的操作例如部署監控最佳化hellip

具備高可用性的引擎支援各種規模與高可用性以 PowerShell 工作流程為基礎獨立隔離的 Runbook工作

整合其它系統匯入 PowerShell 模組建立其它模組與 Runbook

連接到 Azure 服務或其它第三方系統

自動化

62101

httpgallerytechnetmicrosoftcomsystemcenterService-Management-fcd75828

63101

PowerShell 工

作流程

bull 使用Windows PowerShell 語法

bull 使用單一工作完成複雜需要面對面的

人工作業

bull 自動化錯誤復原

bull 連線與活動重試

集中式

儲存區

bull 身份資訊 憑證

bull 全域變數與連線

bull 模組

bull Runbooks (草稿與發佈)

bull 排程

高可用性

bull 多部 Runbook伺服器

bull OData Web Service

bull SQL Server 叢集 Always On

歷程分析

bull Runbook執行歷程

bull Excel PowerPivot 報表

bull Runbook使用狀況

PowerShell 工作流程

集中式儲存區

高可用性

歷程分析

Service Management Automation

(SMA)

64101

ODATA REST Web Service

Runbooks

Jobs

Modules amp Activies

Submit requests

Return results

Http RequestHttp Response

Persist State

Pick up Jobs

SQL DatabaseRunbook Workers

Service Management Portal

bull 撰寫

bull 操作

Service Management Portal

bull PowerShell 工作流程

bull PowerShell 模組

Runbook Workers

bull REST OData

bull 授權

Web Service

bull 管理

bull 操作

Powershell Cmdlets

bull Runbook資源

bull Runbook工作狀況

SMA Database

PowerShell

Module

HTTP

65101

整合 Orchestrator 與 SMA ndash混合雲環境

66101

整合

httpblogstechnetcomborchestratorarchive20140209service-management-automation-integration-with-orchestratoraspx

67101

68101

SMA 整合 PowerShell 與 OData

69101

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 3: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

3101

關於自動化

4101

開發與 IT 角色的關係TEMPLATES

DASHBOARDS

ALERTS

SELF-SERVICE

AUTOMATION

DELEGATION

POLICIES

VISIBILITY

HEALTH

LIBRARY

ACCESS

UPDATES

WORKFLOW

控制

報表

監控

確保一致性

安全性

上架

動作整合

校正與補救

服務提供

身份識別

部署

生命週期管理

流程整合

服務提供與自動化

基礎架構管理

HYPERVISOR

OS OS

HYPERVISOR

OS OS

HYPERVISOR

OS OS

HYPERVISOR

OS OS

SCALABLEMULTI-PLATFORM ABSTRACTED

服務消費者

應用程式開發人員

資料中心管理員

服務提供者使用量效能

自助服務

應用程式

商業需求

商業流程

服務清單 SLA

成本

應用程式管理 S

QL

SE

RV

ER

ER

P SH

AR

EP

OIN

T S

ER

VE

R

MU

LT

I-T

IER

CU

ST

OM

LO

B A

PP

LIC

AT

ION

AN

AL

YT

ICS

VD

I

CR

M

CU

ST

OM

ER

DE

MO

GR

AP

HIC

S

WE

B

5101

標準化服務消費者

服務提供者

自助服務

自動化

流程

系統

6101

18 分鐘

IT 工作流程自動化之前

派工單遞送相關資料檢驗事件

收集服務資料檢查已知問題 收到工單 解決問題

結案製作報告

檢驗解決方案

7 分鐘20 分鐘 10 分鐘 3 分鐘7 分鐘 3 分鐘

總共花費 68 分鐘

事件分類 診斷 尋求協助 修正 回報

有太多人為的不確定性

7101

Orchestrator 提供私有雲自動化基礎

降低成本且改善可預測的不穩定性

讓 IT 人員聚焦在更有價值的工作上

減少人工處理所需的成本

自動化

提供彈性且可靠的服務

使用彈性的流程提昇IT 人員的時間價值

透過工具系統資源改善服務的穩定性

編配

最佳化並延伸既有投資

使用 Integration Packs

整合異質系統

使用 Orchestrator

Integration Toolkit 客製製化其它系統的Integration Packs

整合

8101

OpenView Operations

服務

管理

配置

組態設定

監控

保護

混合環境最佳化和 System Center 2012 緊密整合

HP Service Manager SoftwareMake your IT service desk enterprise strength

Orchestrator 整合一切

9101

變動上線

應用程式服務管理

異動與一致性檢查

監控要求

初始化異動

建立部署

複製虛擬機器

建立 VHD

建立伺服器

連接網路

將 VHD 連接㺫虛擬機器

將伺服器關聯至服務

更新 CMDB結案意

外回應

改善服務的可靠性

事件管理

服務受理

資產管理 CMDB

組態設定

虛擬化

安全性

儲存區

伺服器

網路

加速整體的反應時間

IT 工作 跨工作全自動整合

Orchestrator 如何自動化 IT 流程

虛擬機器生命週期管理

10101

讓 IT 人員專心處理特殊的意外事件

1 分鐘1 分鐘 1 分鐘 3 分鐘 幾秒鐘1 分鐘 幾秒鐘

總共花費不到 8 分鐘

因為自動化所以速度快品質一致服務可預期

IT 工作流程自動化之後

派工單遞送相關資料檢驗事件

收集服務資料檢查已知問題 收到工單 解決問題

結案製作報告

檢驗解決方案

事件分類 診斷 尋求協助 修正 回報

11101

架構設計與建置

12101

13101

httptechnetmicrosoftcomen-uslibraryhh420361aspx

14101

15101

16101

17101

18101

19101

20101

Runbook設計與執行

21101

22101

23101

24101

通知 稽核

流程

錯誤處理

25101

26101

27101

28101

29101

2 定義迴圈結束條件

1 啓用迴圈

30101

31101

32101

撰寫指令碼

33101

34101

$p1 = aaa從 初始化資料

$p2 = bbb 從 初始化資料

$Session = New-PSSession -ComputerName SVR1

$ResultArray = Invoke-Command -Session $Session

-ArgumentList $p1 $p2 $p3 -ScriptBlock

Param ( $p1 $p2 $p3 )

要執行的指令Return (xxx yyy hellip)

Remove-PSSession -Session $Session

$data1 = ResultArray[0] 取得 xxx

$data2 = ResultArray[1] 取得 yyy

35101

[SystemReflectionAssembly]LoadWithPartialName(SystemWindowsForms)

$MsgBox = [SystemWindowsFormsMessageBox]

$MsgBoxShow(Hello World)

$result = $MsgBoxShow(Are you sure Title 4)

if ($result -eq Yes)

$MsgBoxShow(YES)

else

$MsgBoxShow(NO)

36101

37101

httpmsdnmicrosoftcomen-uslibraryhh921685aspx

httporchestratorcodeplexcomreleasesview87873

httporchestratorcodeplexcomreleasesview82959

38101

51f9b950-6e33-465d-bc77-4d33e61831ff

39101

-getparameters

40101

41101

42101

43101

整合其它系統 ndash Integration Packs

44101

1

2

45101

46101

bull TFS

bull PowerShell

bull SharePoint

bull Active Directory

bull Exchange Mail and

Calendaring

bull Local Security

bull Scheduled Tasks

bull Utilities

bull Social media (Twitter)

bull Text Manipulation

bull F5

bull VMWare

bull Configuration Manager

2007

bull 4 BMC IPs- Kelverion

bull Dell -AIM IP

bull NetApp- OCPM IP

bull Cisco- UCS IP

bull Cisco- NCM

JaxMPFyrsoft

bull Kelverion- DBs IP

bull Kelverion-ServiceNow IP

bull Kelverion-Data

Manipulation IP

bull Kelverion-HTTP

Applications IP

bull Vision Solutions-

DoubleTake IP

bull VMWare vSphere

bull IBM Tivoli Netcool

bull HP OM

bull HP SM

bull HP iLo

bull Active Directory

bull MS Exchange User

bull MS Exchange Admin

bull FTP

bull New features added to

VMWare vSphere

bull REST

bull SharePoint

bull Windows Azure

微軟 協力廠商 Codeplex 社群

47101

httpwwwmicrosoftcomen-usdownloaddetailsaspxid=39622

httptechnetmicrosoftcomen-uslibraryhh295851aspx

Codeplex社群 httporchestratorcodeplexcom

48101

49101

httpmsdnmicrosoftcomen-uslibraryhh855855aspx

很容易擴展的平臺

50101

很容易擴展的平臺

51101

52101

Runbook偵錯與事件記錄

53101

54101

55101

56101

57101

58101

ltruntimegt

ltgeneratePublisherEvidence enabled=falsegt

ltruntimegt

59101

aspt RunbookServer1 40

aspt 40

60101

Service Management Automation (SMA) 介紹

61101

Azure

監控系統

變動控制系統

其它

開發適用於 Azure 的 Runbook建立 Runbook 來自動化所有雲端的操作例如部署監控最佳化hellip

具備高可用性的引擎支援各種規模與高可用性以 PowerShell 工作流程為基礎獨立隔離的 Runbook工作

整合其它系統匯入 PowerShell 模組建立其它模組與 Runbook

連接到 Azure 服務或其它第三方系統

自動化

62101

httpgallerytechnetmicrosoftcomsystemcenterService-Management-fcd75828

63101

PowerShell 工

作流程

bull 使用Windows PowerShell 語法

bull 使用單一工作完成複雜需要面對面的

人工作業

bull 自動化錯誤復原

bull 連線與活動重試

集中式

儲存區

bull 身份資訊 憑證

bull 全域變數與連線

bull 模組

bull Runbooks (草稿與發佈)

bull 排程

高可用性

bull 多部 Runbook伺服器

bull OData Web Service

bull SQL Server 叢集 Always On

歷程分析

bull Runbook執行歷程

bull Excel PowerPivot 報表

bull Runbook使用狀況

PowerShell 工作流程

集中式儲存區

高可用性

歷程分析

Service Management Automation

(SMA)

64101

ODATA REST Web Service

Runbooks

Jobs

Modules amp Activies

Submit requests

Return results

Http RequestHttp Response

Persist State

Pick up Jobs

SQL DatabaseRunbook Workers

Service Management Portal

bull 撰寫

bull 操作

Service Management Portal

bull PowerShell 工作流程

bull PowerShell 模組

Runbook Workers

bull REST OData

bull 授權

Web Service

bull 管理

bull 操作

Powershell Cmdlets

bull Runbook資源

bull Runbook工作狀況

SMA Database

PowerShell

Module

HTTP

65101

整合 Orchestrator 與 SMA ndash混合雲環境

66101

整合

httpblogstechnetcomborchestratorarchive20140209service-management-automation-integration-with-orchestratoraspx

67101

68101

SMA 整合 PowerShell 與 OData

69101

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 4: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

4101

開發與 IT 角色的關係TEMPLATES

DASHBOARDS

ALERTS

SELF-SERVICE

AUTOMATION

DELEGATION

POLICIES

VISIBILITY

HEALTH

LIBRARY

ACCESS

UPDATES

WORKFLOW

控制

報表

監控

確保一致性

安全性

上架

動作整合

校正與補救

服務提供

身份識別

部署

生命週期管理

流程整合

服務提供與自動化

基礎架構管理

HYPERVISOR

OS OS

HYPERVISOR

OS OS

HYPERVISOR

OS OS

HYPERVISOR

OS OS

SCALABLEMULTI-PLATFORM ABSTRACTED

服務消費者

應用程式開發人員

資料中心管理員

服務提供者使用量效能

自助服務

應用程式

商業需求

商業流程

服務清單 SLA

成本

應用程式管理 S

QL

SE

RV

ER

ER

P SH

AR

EP

OIN

T S

ER

VE

R

MU

LT

I-T

IER

CU

ST

OM

LO

B A

PP

LIC

AT

ION

AN

AL

YT

ICS

VD

I

CR

M

CU

ST

OM

ER

DE

MO

GR

AP

HIC

S

WE

B

5101

標準化服務消費者

服務提供者

自助服務

自動化

流程

系統

6101

18 分鐘

IT 工作流程自動化之前

派工單遞送相關資料檢驗事件

收集服務資料檢查已知問題 收到工單 解決問題

結案製作報告

檢驗解決方案

7 分鐘20 分鐘 10 分鐘 3 分鐘7 分鐘 3 分鐘

總共花費 68 分鐘

事件分類 診斷 尋求協助 修正 回報

有太多人為的不確定性

7101

Orchestrator 提供私有雲自動化基礎

降低成本且改善可預測的不穩定性

讓 IT 人員聚焦在更有價值的工作上

減少人工處理所需的成本

自動化

提供彈性且可靠的服務

使用彈性的流程提昇IT 人員的時間價值

透過工具系統資源改善服務的穩定性

編配

最佳化並延伸既有投資

使用 Integration Packs

整合異質系統

使用 Orchestrator

Integration Toolkit 客製製化其它系統的Integration Packs

整合

8101

OpenView Operations

服務

管理

配置

組態設定

監控

保護

混合環境最佳化和 System Center 2012 緊密整合

HP Service Manager SoftwareMake your IT service desk enterprise strength

Orchestrator 整合一切

9101

變動上線

應用程式服務管理

異動與一致性檢查

監控要求

初始化異動

建立部署

複製虛擬機器

建立 VHD

建立伺服器

連接網路

將 VHD 連接㺫虛擬機器

將伺服器關聯至服務

更新 CMDB結案意

外回應

改善服務的可靠性

事件管理

服務受理

資產管理 CMDB

組態設定

虛擬化

安全性

儲存區

伺服器

網路

加速整體的反應時間

IT 工作 跨工作全自動整合

Orchestrator 如何自動化 IT 流程

虛擬機器生命週期管理

10101

讓 IT 人員專心處理特殊的意外事件

1 分鐘1 分鐘 1 分鐘 3 分鐘 幾秒鐘1 分鐘 幾秒鐘

總共花費不到 8 分鐘

因為自動化所以速度快品質一致服務可預期

IT 工作流程自動化之後

派工單遞送相關資料檢驗事件

收集服務資料檢查已知問題 收到工單 解決問題

結案製作報告

檢驗解決方案

事件分類 診斷 尋求協助 修正 回報

11101

架構設計與建置

12101

13101

httptechnetmicrosoftcomen-uslibraryhh420361aspx

14101

15101

16101

17101

18101

19101

20101

Runbook設計與執行

21101

22101

23101

24101

通知 稽核

流程

錯誤處理

25101

26101

27101

28101

29101

2 定義迴圈結束條件

1 啓用迴圈

30101

31101

32101

撰寫指令碼

33101

34101

$p1 = aaa從 初始化資料

$p2 = bbb 從 初始化資料

$Session = New-PSSession -ComputerName SVR1

$ResultArray = Invoke-Command -Session $Session

-ArgumentList $p1 $p2 $p3 -ScriptBlock

Param ( $p1 $p2 $p3 )

要執行的指令Return (xxx yyy hellip)

Remove-PSSession -Session $Session

$data1 = ResultArray[0] 取得 xxx

$data2 = ResultArray[1] 取得 yyy

35101

[SystemReflectionAssembly]LoadWithPartialName(SystemWindowsForms)

$MsgBox = [SystemWindowsFormsMessageBox]

$MsgBoxShow(Hello World)

$result = $MsgBoxShow(Are you sure Title 4)

if ($result -eq Yes)

$MsgBoxShow(YES)

else

$MsgBoxShow(NO)

36101

37101

httpmsdnmicrosoftcomen-uslibraryhh921685aspx

httporchestratorcodeplexcomreleasesview87873

httporchestratorcodeplexcomreleasesview82959

38101

51f9b950-6e33-465d-bc77-4d33e61831ff

39101

-getparameters

40101

41101

42101

43101

整合其它系統 ndash Integration Packs

44101

1

2

45101

46101

bull TFS

bull PowerShell

bull SharePoint

bull Active Directory

bull Exchange Mail and

Calendaring

bull Local Security

bull Scheduled Tasks

bull Utilities

bull Social media (Twitter)

bull Text Manipulation

bull F5

bull VMWare

bull Configuration Manager

2007

bull 4 BMC IPs- Kelverion

bull Dell -AIM IP

bull NetApp- OCPM IP

bull Cisco- UCS IP

bull Cisco- NCM

JaxMPFyrsoft

bull Kelverion- DBs IP

bull Kelverion-ServiceNow IP

bull Kelverion-Data

Manipulation IP

bull Kelverion-HTTP

Applications IP

bull Vision Solutions-

DoubleTake IP

bull VMWare vSphere

bull IBM Tivoli Netcool

bull HP OM

bull HP SM

bull HP iLo

bull Active Directory

bull MS Exchange User

bull MS Exchange Admin

bull FTP

bull New features added to

VMWare vSphere

bull REST

bull SharePoint

bull Windows Azure

微軟 協力廠商 Codeplex 社群

47101

httpwwwmicrosoftcomen-usdownloaddetailsaspxid=39622

httptechnetmicrosoftcomen-uslibraryhh295851aspx

Codeplex社群 httporchestratorcodeplexcom

48101

49101

httpmsdnmicrosoftcomen-uslibraryhh855855aspx

很容易擴展的平臺

50101

很容易擴展的平臺

51101

52101

Runbook偵錯與事件記錄

53101

54101

55101

56101

57101

58101

ltruntimegt

ltgeneratePublisherEvidence enabled=falsegt

ltruntimegt

59101

aspt RunbookServer1 40

aspt 40

60101

Service Management Automation (SMA) 介紹

61101

Azure

監控系統

變動控制系統

其它

開發適用於 Azure 的 Runbook建立 Runbook 來自動化所有雲端的操作例如部署監控最佳化hellip

具備高可用性的引擎支援各種規模與高可用性以 PowerShell 工作流程為基礎獨立隔離的 Runbook工作

整合其它系統匯入 PowerShell 模組建立其它模組與 Runbook

連接到 Azure 服務或其它第三方系統

自動化

62101

httpgallerytechnetmicrosoftcomsystemcenterService-Management-fcd75828

63101

PowerShell 工

作流程

bull 使用Windows PowerShell 語法

bull 使用單一工作完成複雜需要面對面的

人工作業

bull 自動化錯誤復原

bull 連線與活動重試

集中式

儲存區

bull 身份資訊 憑證

bull 全域變數與連線

bull 模組

bull Runbooks (草稿與發佈)

bull 排程

高可用性

bull 多部 Runbook伺服器

bull OData Web Service

bull SQL Server 叢集 Always On

歷程分析

bull Runbook執行歷程

bull Excel PowerPivot 報表

bull Runbook使用狀況

PowerShell 工作流程

集中式儲存區

高可用性

歷程分析

Service Management Automation

(SMA)

64101

ODATA REST Web Service

Runbooks

Jobs

Modules amp Activies

Submit requests

Return results

Http RequestHttp Response

Persist State

Pick up Jobs

SQL DatabaseRunbook Workers

Service Management Portal

bull 撰寫

bull 操作

Service Management Portal

bull PowerShell 工作流程

bull PowerShell 模組

Runbook Workers

bull REST OData

bull 授權

Web Service

bull 管理

bull 操作

Powershell Cmdlets

bull Runbook資源

bull Runbook工作狀況

SMA Database

PowerShell

Module

HTTP

65101

整合 Orchestrator 與 SMA ndash混合雲環境

66101

整合

httpblogstechnetcomborchestratorarchive20140209service-management-automation-integration-with-orchestratoraspx

67101

68101

SMA 整合 PowerShell 與 OData

69101

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 5: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

5101

標準化服務消費者

服務提供者

自助服務

自動化

流程

系統

6101

18 分鐘

IT 工作流程自動化之前

派工單遞送相關資料檢驗事件

收集服務資料檢查已知問題 收到工單 解決問題

結案製作報告

檢驗解決方案

7 分鐘20 分鐘 10 分鐘 3 分鐘7 分鐘 3 分鐘

總共花費 68 分鐘

事件分類 診斷 尋求協助 修正 回報

有太多人為的不確定性

7101

Orchestrator 提供私有雲自動化基礎

降低成本且改善可預測的不穩定性

讓 IT 人員聚焦在更有價值的工作上

減少人工處理所需的成本

自動化

提供彈性且可靠的服務

使用彈性的流程提昇IT 人員的時間價值

透過工具系統資源改善服務的穩定性

編配

最佳化並延伸既有投資

使用 Integration Packs

整合異質系統

使用 Orchestrator

Integration Toolkit 客製製化其它系統的Integration Packs

整合

8101

OpenView Operations

服務

管理

配置

組態設定

監控

保護

混合環境最佳化和 System Center 2012 緊密整合

HP Service Manager SoftwareMake your IT service desk enterprise strength

Orchestrator 整合一切

9101

變動上線

應用程式服務管理

異動與一致性檢查

監控要求

初始化異動

建立部署

複製虛擬機器

建立 VHD

建立伺服器

連接網路

將 VHD 連接㺫虛擬機器

將伺服器關聯至服務

更新 CMDB結案意

外回應

改善服務的可靠性

事件管理

服務受理

資產管理 CMDB

組態設定

虛擬化

安全性

儲存區

伺服器

網路

加速整體的反應時間

IT 工作 跨工作全自動整合

Orchestrator 如何自動化 IT 流程

虛擬機器生命週期管理

10101

讓 IT 人員專心處理特殊的意外事件

1 分鐘1 分鐘 1 分鐘 3 分鐘 幾秒鐘1 分鐘 幾秒鐘

總共花費不到 8 分鐘

因為自動化所以速度快品質一致服務可預期

IT 工作流程自動化之後

派工單遞送相關資料檢驗事件

收集服務資料檢查已知問題 收到工單 解決問題

結案製作報告

檢驗解決方案

事件分類 診斷 尋求協助 修正 回報

11101

架構設計與建置

12101

13101

httptechnetmicrosoftcomen-uslibraryhh420361aspx

14101

15101

16101

17101

18101

19101

20101

Runbook設計與執行

21101

22101

23101

24101

通知 稽核

流程

錯誤處理

25101

26101

27101

28101

29101

2 定義迴圈結束條件

1 啓用迴圈

30101

31101

32101

撰寫指令碼

33101

34101

$p1 = aaa從 初始化資料

$p2 = bbb 從 初始化資料

$Session = New-PSSession -ComputerName SVR1

$ResultArray = Invoke-Command -Session $Session

-ArgumentList $p1 $p2 $p3 -ScriptBlock

Param ( $p1 $p2 $p3 )

要執行的指令Return (xxx yyy hellip)

Remove-PSSession -Session $Session

$data1 = ResultArray[0] 取得 xxx

$data2 = ResultArray[1] 取得 yyy

35101

[SystemReflectionAssembly]LoadWithPartialName(SystemWindowsForms)

$MsgBox = [SystemWindowsFormsMessageBox]

$MsgBoxShow(Hello World)

$result = $MsgBoxShow(Are you sure Title 4)

if ($result -eq Yes)

$MsgBoxShow(YES)

else

$MsgBoxShow(NO)

36101

37101

httpmsdnmicrosoftcomen-uslibraryhh921685aspx

httporchestratorcodeplexcomreleasesview87873

httporchestratorcodeplexcomreleasesview82959

38101

51f9b950-6e33-465d-bc77-4d33e61831ff

39101

-getparameters

40101

41101

42101

43101

整合其它系統 ndash Integration Packs

44101

1

2

45101

46101

bull TFS

bull PowerShell

bull SharePoint

bull Active Directory

bull Exchange Mail and

Calendaring

bull Local Security

bull Scheduled Tasks

bull Utilities

bull Social media (Twitter)

bull Text Manipulation

bull F5

bull VMWare

bull Configuration Manager

2007

bull 4 BMC IPs- Kelverion

bull Dell -AIM IP

bull NetApp- OCPM IP

bull Cisco- UCS IP

bull Cisco- NCM

JaxMPFyrsoft

bull Kelverion- DBs IP

bull Kelverion-ServiceNow IP

bull Kelverion-Data

Manipulation IP

bull Kelverion-HTTP

Applications IP

bull Vision Solutions-

DoubleTake IP

bull VMWare vSphere

bull IBM Tivoli Netcool

bull HP OM

bull HP SM

bull HP iLo

bull Active Directory

bull MS Exchange User

bull MS Exchange Admin

bull FTP

bull New features added to

VMWare vSphere

bull REST

bull SharePoint

bull Windows Azure

微軟 協力廠商 Codeplex 社群

47101

httpwwwmicrosoftcomen-usdownloaddetailsaspxid=39622

httptechnetmicrosoftcomen-uslibraryhh295851aspx

Codeplex社群 httporchestratorcodeplexcom

48101

49101

httpmsdnmicrosoftcomen-uslibraryhh855855aspx

很容易擴展的平臺

50101

很容易擴展的平臺

51101

52101

Runbook偵錯與事件記錄

53101

54101

55101

56101

57101

58101

ltruntimegt

ltgeneratePublisherEvidence enabled=falsegt

ltruntimegt

59101

aspt RunbookServer1 40

aspt 40

60101

Service Management Automation (SMA) 介紹

61101

Azure

監控系統

變動控制系統

其它

開發適用於 Azure 的 Runbook建立 Runbook 來自動化所有雲端的操作例如部署監控最佳化hellip

具備高可用性的引擎支援各種規模與高可用性以 PowerShell 工作流程為基礎獨立隔離的 Runbook工作

整合其它系統匯入 PowerShell 模組建立其它模組與 Runbook

連接到 Azure 服務或其它第三方系統

自動化

62101

httpgallerytechnetmicrosoftcomsystemcenterService-Management-fcd75828

63101

PowerShell 工

作流程

bull 使用Windows PowerShell 語法

bull 使用單一工作完成複雜需要面對面的

人工作業

bull 自動化錯誤復原

bull 連線與活動重試

集中式

儲存區

bull 身份資訊 憑證

bull 全域變數與連線

bull 模組

bull Runbooks (草稿與發佈)

bull 排程

高可用性

bull 多部 Runbook伺服器

bull OData Web Service

bull SQL Server 叢集 Always On

歷程分析

bull Runbook執行歷程

bull Excel PowerPivot 報表

bull Runbook使用狀況

PowerShell 工作流程

集中式儲存區

高可用性

歷程分析

Service Management Automation

(SMA)

64101

ODATA REST Web Service

Runbooks

Jobs

Modules amp Activies

Submit requests

Return results

Http RequestHttp Response

Persist State

Pick up Jobs

SQL DatabaseRunbook Workers

Service Management Portal

bull 撰寫

bull 操作

Service Management Portal

bull PowerShell 工作流程

bull PowerShell 模組

Runbook Workers

bull REST OData

bull 授權

Web Service

bull 管理

bull 操作

Powershell Cmdlets

bull Runbook資源

bull Runbook工作狀況

SMA Database

PowerShell

Module

HTTP

65101

整合 Orchestrator 與 SMA ndash混合雲環境

66101

整合

httpblogstechnetcomborchestratorarchive20140209service-management-automation-integration-with-orchestratoraspx

67101

68101

SMA 整合 PowerShell 與 OData

69101

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 6: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

6101

18 分鐘

IT 工作流程自動化之前

派工單遞送相關資料檢驗事件

收集服務資料檢查已知問題 收到工單 解決問題

結案製作報告

檢驗解決方案

7 分鐘20 分鐘 10 分鐘 3 分鐘7 分鐘 3 分鐘

總共花費 68 分鐘

事件分類 診斷 尋求協助 修正 回報

有太多人為的不確定性

7101

Orchestrator 提供私有雲自動化基礎

降低成本且改善可預測的不穩定性

讓 IT 人員聚焦在更有價值的工作上

減少人工處理所需的成本

自動化

提供彈性且可靠的服務

使用彈性的流程提昇IT 人員的時間價值

透過工具系統資源改善服務的穩定性

編配

最佳化並延伸既有投資

使用 Integration Packs

整合異質系統

使用 Orchestrator

Integration Toolkit 客製製化其它系統的Integration Packs

整合

8101

OpenView Operations

服務

管理

配置

組態設定

監控

保護

混合環境最佳化和 System Center 2012 緊密整合

HP Service Manager SoftwareMake your IT service desk enterprise strength

Orchestrator 整合一切

9101

變動上線

應用程式服務管理

異動與一致性檢查

監控要求

初始化異動

建立部署

複製虛擬機器

建立 VHD

建立伺服器

連接網路

將 VHD 連接㺫虛擬機器

將伺服器關聯至服務

更新 CMDB結案意

外回應

改善服務的可靠性

事件管理

服務受理

資產管理 CMDB

組態設定

虛擬化

安全性

儲存區

伺服器

網路

加速整體的反應時間

IT 工作 跨工作全自動整合

Orchestrator 如何自動化 IT 流程

虛擬機器生命週期管理

10101

讓 IT 人員專心處理特殊的意外事件

1 分鐘1 分鐘 1 分鐘 3 分鐘 幾秒鐘1 分鐘 幾秒鐘

總共花費不到 8 分鐘

因為自動化所以速度快品質一致服務可預期

IT 工作流程自動化之後

派工單遞送相關資料檢驗事件

收集服務資料檢查已知問題 收到工單 解決問題

結案製作報告

檢驗解決方案

事件分類 診斷 尋求協助 修正 回報

11101

架構設計與建置

12101

13101

httptechnetmicrosoftcomen-uslibraryhh420361aspx

14101

15101

16101

17101

18101

19101

20101

Runbook設計與執行

21101

22101

23101

24101

通知 稽核

流程

錯誤處理

25101

26101

27101

28101

29101

2 定義迴圈結束條件

1 啓用迴圈

30101

31101

32101

撰寫指令碼

33101

34101

$p1 = aaa從 初始化資料

$p2 = bbb 從 初始化資料

$Session = New-PSSession -ComputerName SVR1

$ResultArray = Invoke-Command -Session $Session

-ArgumentList $p1 $p2 $p3 -ScriptBlock

Param ( $p1 $p2 $p3 )

要執行的指令Return (xxx yyy hellip)

Remove-PSSession -Session $Session

$data1 = ResultArray[0] 取得 xxx

$data2 = ResultArray[1] 取得 yyy

35101

[SystemReflectionAssembly]LoadWithPartialName(SystemWindowsForms)

$MsgBox = [SystemWindowsFormsMessageBox]

$MsgBoxShow(Hello World)

$result = $MsgBoxShow(Are you sure Title 4)

if ($result -eq Yes)

$MsgBoxShow(YES)

else

$MsgBoxShow(NO)

36101

37101

httpmsdnmicrosoftcomen-uslibraryhh921685aspx

httporchestratorcodeplexcomreleasesview87873

httporchestratorcodeplexcomreleasesview82959

38101

51f9b950-6e33-465d-bc77-4d33e61831ff

39101

-getparameters

40101

41101

42101

43101

整合其它系統 ndash Integration Packs

44101

1

2

45101

46101

bull TFS

bull PowerShell

bull SharePoint

bull Active Directory

bull Exchange Mail and

Calendaring

bull Local Security

bull Scheduled Tasks

bull Utilities

bull Social media (Twitter)

bull Text Manipulation

bull F5

bull VMWare

bull Configuration Manager

2007

bull 4 BMC IPs- Kelverion

bull Dell -AIM IP

bull NetApp- OCPM IP

bull Cisco- UCS IP

bull Cisco- NCM

JaxMPFyrsoft

bull Kelverion- DBs IP

bull Kelverion-ServiceNow IP

bull Kelverion-Data

Manipulation IP

bull Kelverion-HTTP

Applications IP

bull Vision Solutions-

DoubleTake IP

bull VMWare vSphere

bull IBM Tivoli Netcool

bull HP OM

bull HP SM

bull HP iLo

bull Active Directory

bull MS Exchange User

bull MS Exchange Admin

bull FTP

bull New features added to

VMWare vSphere

bull REST

bull SharePoint

bull Windows Azure

微軟 協力廠商 Codeplex 社群

47101

httpwwwmicrosoftcomen-usdownloaddetailsaspxid=39622

httptechnetmicrosoftcomen-uslibraryhh295851aspx

Codeplex社群 httporchestratorcodeplexcom

48101

49101

httpmsdnmicrosoftcomen-uslibraryhh855855aspx

很容易擴展的平臺

50101

很容易擴展的平臺

51101

52101

Runbook偵錯與事件記錄

53101

54101

55101

56101

57101

58101

ltruntimegt

ltgeneratePublisherEvidence enabled=falsegt

ltruntimegt

59101

aspt RunbookServer1 40

aspt 40

60101

Service Management Automation (SMA) 介紹

61101

Azure

監控系統

變動控制系統

其它

開發適用於 Azure 的 Runbook建立 Runbook 來自動化所有雲端的操作例如部署監控最佳化hellip

具備高可用性的引擎支援各種規模與高可用性以 PowerShell 工作流程為基礎獨立隔離的 Runbook工作

整合其它系統匯入 PowerShell 模組建立其它模組與 Runbook

連接到 Azure 服務或其它第三方系統

自動化

62101

httpgallerytechnetmicrosoftcomsystemcenterService-Management-fcd75828

63101

PowerShell 工

作流程

bull 使用Windows PowerShell 語法

bull 使用單一工作完成複雜需要面對面的

人工作業

bull 自動化錯誤復原

bull 連線與活動重試

集中式

儲存區

bull 身份資訊 憑證

bull 全域變數與連線

bull 模組

bull Runbooks (草稿與發佈)

bull 排程

高可用性

bull 多部 Runbook伺服器

bull OData Web Service

bull SQL Server 叢集 Always On

歷程分析

bull Runbook執行歷程

bull Excel PowerPivot 報表

bull Runbook使用狀況

PowerShell 工作流程

集中式儲存區

高可用性

歷程分析

Service Management Automation

(SMA)

64101

ODATA REST Web Service

Runbooks

Jobs

Modules amp Activies

Submit requests

Return results

Http RequestHttp Response

Persist State

Pick up Jobs

SQL DatabaseRunbook Workers

Service Management Portal

bull 撰寫

bull 操作

Service Management Portal

bull PowerShell 工作流程

bull PowerShell 模組

Runbook Workers

bull REST OData

bull 授權

Web Service

bull 管理

bull 操作

Powershell Cmdlets

bull Runbook資源

bull Runbook工作狀況

SMA Database

PowerShell

Module

HTTP

65101

整合 Orchestrator 與 SMA ndash混合雲環境

66101

整合

httpblogstechnetcomborchestratorarchive20140209service-management-automation-integration-with-orchestratoraspx

67101

68101

SMA 整合 PowerShell 與 OData

69101

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 7: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

7101

Orchestrator 提供私有雲自動化基礎

降低成本且改善可預測的不穩定性

讓 IT 人員聚焦在更有價值的工作上

減少人工處理所需的成本

自動化

提供彈性且可靠的服務

使用彈性的流程提昇IT 人員的時間價值

透過工具系統資源改善服務的穩定性

編配

最佳化並延伸既有投資

使用 Integration Packs

整合異質系統

使用 Orchestrator

Integration Toolkit 客製製化其它系統的Integration Packs

整合

8101

OpenView Operations

服務

管理

配置

組態設定

監控

保護

混合環境最佳化和 System Center 2012 緊密整合

HP Service Manager SoftwareMake your IT service desk enterprise strength

Orchestrator 整合一切

9101

變動上線

應用程式服務管理

異動與一致性檢查

監控要求

初始化異動

建立部署

複製虛擬機器

建立 VHD

建立伺服器

連接網路

將 VHD 連接㺫虛擬機器

將伺服器關聯至服務

更新 CMDB結案意

外回應

改善服務的可靠性

事件管理

服務受理

資產管理 CMDB

組態設定

虛擬化

安全性

儲存區

伺服器

網路

加速整體的反應時間

IT 工作 跨工作全自動整合

Orchestrator 如何自動化 IT 流程

虛擬機器生命週期管理

10101

讓 IT 人員專心處理特殊的意外事件

1 分鐘1 分鐘 1 分鐘 3 分鐘 幾秒鐘1 分鐘 幾秒鐘

總共花費不到 8 分鐘

因為自動化所以速度快品質一致服務可預期

IT 工作流程自動化之後

派工單遞送相關資料檢驗事件

收集服務資料檢查已知問題 收到工單 解決問題

結案製作報告

檢驗解決方案

事件分類 診斷 尋求協助 修正 回報

11101

架構設計與建置

12101

13101

httptechnetmicrosoftcomen-uslibraryhh420361aspx

14101

15101

16101

17101

18101

19101

20101

Runbook設計與執行

21101

22101

23101

24101

通知 稽核

流程

錯誤處理

25101

26101

27101

28101

29101

2 定義迴圈結束條件

1 啓用迴圈

30101

31101

32101

撰寫指令碼

33101

34101

$p1 = aaa從 初始化資料

$p2 = bbb 從 初始化資料

$Session = New-PSSession -ComputerName SVR1

$ResultArray = Invoke-Command -Session $Session

-ArgumentList $p1 $p2 $p3 -ScriptBlock

Param ( $p1 $p2 $p3 )

要執行的指令Return (xxx yyy hellip)

Remove-PSSession -Session $Session

$data1 = ResultArray[0] 取得 xxx

$data2 = ResultArray[1] 取得 yyy

35101

[SystemReflectionAssembly]LoadWithPartialName(SystemWindowsForms)

$MsgBox = [SystemWindowsFormsMessageBox]

$MsgBoxShow(Hello World)

$result = $MsgBoxShow(Are you sure Title 4)

if ($result -eq Yes)

$MsgBoxShow(YES)

else

$MsgBoxShow(NO)

36101

37101

httpmsdnmicrosoftcomen-uslibraryhh921685aspx

httporchestratorcodeplexcomreleasesview87873

httporchestratorcodeplexcomreleasesview82959

38101

51f9b950-6e33-465d-bc77-4d33e61831ff

39101

-getparameters

40101

41101

42101

43101

整合其它系統 ndash Integration Packs

44101

1

2

45101

46101

bull TFS

bull PowerShell

bull SharePoint

bull Active Directory

bull Exchange Mail and

Calendaring

bull Local Security

bull Scheduled Tasks

bull Utilities

bull Social media (Twitter)

bull Text Manipulation

bull F5

bull VMWare

bull Configuration Manager

2007

bull 4 BMC IPs- Kelverion

bull Dell -AIM IP

bull NetApp- OCPM IP

bull Cisco- UCS IP

bull Cisco- NCM

JaxMPFyrsoft

bull Kelverion- DBs IP

bull Kelverion-ServiceNow IP

bull Kelverion-Data

Manipulation IP

bull Kelverion-HTTP

Applications IP

bull Vision Solutions-

DoubleTake IP

bull VMWare vSphere

bull IBM Tivoli Netcool

bull HP OM

bull HP SM

bull HP iLo

bull Active Directory

bull MS Exchange User

bull MS Exchange Admin

bull FTP

bull New features added to

VMWare vSphere

bull REST

bull SharePoint

bull Windows Azure

微軟 協力廠商 Codeplex 社群

47101

httpwwwmicrosoftcomen-usdownloaddetailsaspxid=39622

httptechnetmicrosoftcomen-uslibraryhh295851aspx

Codeplex社群 httporchestratorcodeplexcom

48101

49101

httpmsdnmicrosoftcomen-uslibraryhh855855aspx

很容易擴展的平臺

50101

很容易擴展的平臺

51101

52101

Runbook偵錯與事件記錄

53101

54101

55101

56101

57101

58101

ltruntimegt

ltgeneratePublisherEvidence enabled=falsegt

ltruntimegt

59101

aspt RunbookServer1 40

aspt 40

60101

Service Management Automation (SMA) 介紹

61101

Azure

監控系統

變動控制系統

其它

開發適用於 Azure 的 Runbook建立 Runbook 來自動化所有雲端的操作例如部署監控最佳化hellip

具備高可用性的引擎支援各種規模與高可用性以 PowerShell 工作流程為基礎獨立隔離的 Runbook工作

整合其它系統匯入 PowerShell 模組建立其它模組與 Runbook

連接到 Azure 服務或其它第三方系統

自動化

62101

httpgallerytechnetmicrosoftcomsystemcenterService-Management-fcd75828

63101

PowerShell 工

作流程

bull 使用Windows PowerShell 語法

bull 使用單一工作完成複雜需要面對面的

人工作業

bull 自動化錯誤復原

bull 連線與活動重試

集中式

儲存區

bull 身份資訊 憑證

bull 全域變數與連線

bull 模組

bull Runbooks (草稿與發佈)

bull 排程

高可用性

bull 多部 Runbook伺服器

bull OData Web Service

bull SQL Server 叢集 Always On

歷程分析

bull Runbook執行歷程

bull Excel PowerPivot 報表

bull Runbook使用狀況

PowerShell 工作流程

集中式儲存區

高可用性

歷程分析

Service Management Automation

(SMA)

64101

ODATA REST Web Service

Runbooks

Jobs

Modules amp Activies

Submit requests

Return results

Http RequestHttp Response

Persist State

Pick up Jobs

SQL DatabaseRunbook Workers

Service Management Portal

bull 撰寫

bull 操作

Service Management Portal

bull PowerShell 工作流程

bull PowerShell 模組

Runbook Workers

bull REST OData

bull 授權

Web Service

bull 管理

bull 操作

Powershell Cmdlets

bull Runbook資源

bull Runbook工作狀況

SMA Database

PowerShell

Module

HTTP

65101

整合 Orchestrator 與 SMA ndash混合雲環境

66101

整合

httpblogstechnetcomborchestratorarchive20140209service-management-automation-integration-with-orchestratoraspx

67101

68101

SMA 整合 PowerShell 與 OData

69101

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 8: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

8101

OpenView Operations

服務

管理

配置

組態設定

監控

保護

混合環境最佳化和 System Center 2012 緊密整合

HP Service Manager SoftwareMake your IT service desk enterprise strength

Orchestrator 整合一切

9101

變動上線

應用程式服務管理

異動與一致性檢查

監控要求

初始化異動

建立部署

複製虛擬機器

建立 VHD

建立伺服器

連接網路

將 VHD 連接㺫虛擬機器

將伺服器關聯至服務

更新 CMDB結案意

外回應

改善服務的可靠性

事件管理

服務受理

資產管理 CMDB

組態設定

虛擬化

安全性

儲存區

伺服器

網路

加速整體的反應時間

IT 工作 跨工作全自動整合

Orchestrator 如何自動化 IT 流程

虛擬機器生命週期管理

10101

讓 IT 人員專心處理特殊的意外事件

1 分鐘1 分鐘 1 分鐘 3 分鐘 幾秒鐘1 分鐘 幾秒鐘

總共花費不到 8 分鐘

因為自動化所以速度快品質一致服務可預期

IT 工作流程自動化之後

派工單遞送相關資料檢驗事件

收集服務資料檢查已知問題 收到工單 解決問題

結案製作報告

檢驗解決方案

事件分類 診斷 尋求協助 修正 回報

11101

架構設計與建置

12101

13101

httptechnetmicrosoftcomen-uslibraryhh420361aspx

14101

15101

16101

17101

18101

19101

20101

Runbook設計與執行

21101

22101

23101

24101

通知 稽核

流程

錯誤處理

25101

26101

27101

28101

29101

2 定義迴圈結束條件

1 啓用迴圈

30101

31101

32101

撰寫指令碼

33101

34101

$p1 = aaa從 初始化資料

$p2 = bbb 從 初始化資料

$Session = New-PSSession -ComputerName SVR1

$ResultArray = Invoke-Command -Session $Session

-ArgumentList $p1 $p2 $p3 -ScriptBlock

Param ( $p1 $p2 $p3 )

要執行的指令Return (xxx yyy hellip)

Remove-PSSession -Session $Session

$data1 = ResultArray[0] 取得 xxx

$data2 = ResultArray[1] 取得 yyy

35101

[SystemReflectionAssembly]LoadWithPartialName(SystemWindowsForms)

$MsgBox = [SystemWindowsFormsMessageBox]

$MsgBoxShow(Hello World)

$result = $MsgBoxShow(Are you sure Title 4)

if ($result -eq Yes)

$MsgBoxShow(YES)

else

$MsgBoxShow(NO)

36101

37101

httpmsdnmicrosoftcomen-uslibraryhh921685aspx

httporchestratorcodeplexcomreleasesview87873

httporchestratorcodeplexcomreleasesview82959

38101

51f9b950-6e33-465d-bc77-4d33e61831ff

39101

-getparameters

40101

41101

42101

43101

整合其它系統 ndash Integration Packs

44101

1

2

45101

46101

bull TFS

bull PowerShell

bull SharePoint

bull Active Directory

bull Exchange Mail and

Calendaring

bull Local Security

bull Scheduled Tasks

bull Utilities

bull Social media (Twitter)

bull Text Manipulation

bull F5

bull VMWare

bull Configuration Manager

2007

bull 4 BMC IPs- Kelverion

bull Dell -AIM IP

bull NetApp- OCPM IP

bull Cisco- UCS IP

bull Cisco- NCM

JaxMPFyrsoft

bull Kelverion- DBs IP

bull Kelverion-ServiceNow IP

bull Kelverion-Data

Manipulation IP

bull Kelverion-HTTP

Applications IP

bull Vision Solutions-

DoubleTake IP

bull VMWare vSphere

bull IBM Tivoli Netcool

bull HP OM

bull HP SM

bull HP iLo

bull Active Directory

bull MS Exchange User

bull MS Exchange Admin

bull FTP

bull New features added to

VMWare vSphere

bull REST

bull SharePoint

bull Windows Azure

微軟 協力廠商 Codeplex 社群

47101

httpwwwmicrosoftcomen-usdownloaddetailsaspxid=39622

httptechnetmicrosoftcomen-uslibraryhh295851aspx

Codeplex社群 httporchestratorcodeplexcom

48101

49101

httpmsdnmicrosoftcomen-uslibraryhh855855aspx

很容易擴展的平臺

50101

很容易擴展的平臺

51101

52101

Runbook偵錯與事件記錄

53101

54101

55101

56101

57101

58101

ltruntimegt

ltgeneratePublisherEvidence enabled=falsegt

ltruntimegt

59101

aspt RunbookServer1 40

aspt 40

60101

Service Management Automation (SMA) 介紹

61101

Azure

監控系統

變動控制系統

其它

開發適用於 Azure 的 Runbook建立 Runbook 來自動化所有雲端的操作例如部署監控最佳化hellip

具備高可用性的引擎支援各種規模與高可用性以 PowerShell 工作流程為基礎獨立隔離的 Runbook工作

整合其它系統匯入 PowerShell 模組建立其它模組與 Runbook

連接到 Azure 服務或其它第三方系統

自動化

62101

httpgallerytechnetmicrosoftcomsystemcenterService-Management-fcd75828

63101

PowerShell 工

作流程

bull 使用Windows PowerShell 語法

bull 使用單一工作完成複雜需要面對面的

人工作業

bull 自動化錯誤復原

bull 連線與活動重試

集中式

儲存區

bull 身份資訊 憑證

bull 全域變數與連線

bull 模組

bull Runbooks (草稿與發佈)

bull 排程

高可用性

bull 多部 Runbook伺服器

bull OData Web Service

bull SQL Server 叢集 Always On

歷程分析

bull Runbook執行歷程

bull Excel PowerPivot 報表

bull Runbook使用狀況

PowerShell 工作流程

集中式儲存區

高可用性

歷程分析

Service Management Automation

(SMA)

64101

ODATA REST Web Service

Runbooks

Jobs

Modules amp Activies

Submit requests

Return results

Http RequestHttp Response

Persist State

Pick up Jobs

SQL DatabaseRunbook Workers

Service Management Portal

bull 撰寫

bull 操作

Service Management Portal

bull PowerShell 工作流程

bull PowerShell 模組

Runbook Workers

bull REST OData

bull 授權

Web Service

bull 管理

bull 操作

Powershell Cmdlets

bull Runbook資源

bull Runbook工作狀況

SMA Database

PowerShell

Module

HTTP

65101

整合 Orchestrator 與 SMA ndash混合雲環境

66101

整合

httpblogstechnetcomborchestratorarchive20140209service-management-automation-integration-with-orchestratoraspx

67101

68101

SMA 整合 PowerShell 與 OData

69101

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 9: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

9101

變動上線

應用程式服務管理

異動與一致性檢查

監控要求

初始化異動

建立部署

複製虛擬機器

建立 VHD

建立伺服器

連接網路

將 VHD 連接㺫虛擬機器

將伺服器關聯至服務

更新 CMDB結案意

外回應

改善服務的可靠性

事件管理

服務受理

資產管理 CMDB

組態設定

虛擬化

安全性

儲存區

伺服器

網路

加速整體的反應時間

IT 工作 跨工作全自動整合

Orchestrator 如何自動化 IT 流程

虛擬機器生命週期管理

10101

讓 IT 人員專心處理特殊的意外事件

1 分鐘1 分鐘 1 分鐘 3 分鐘 幾秒鐘1 分鐘 幾秒鐘

總共花費不到 8 分鐘

因為自動化所以速度快品質一致服務可預期

IT 工作流程自動化之後

派工單遞送相關資料檢驗事件

收集服務資料檢查已知問題 收到工單 解決問題

結案製作報告

檢驗解決方案

事件分類 診斷 尋求協助 修正 回報

11101

架構設計與建置

12101

13101

httptechnetmicrosoftcomen-uslibraryhh420361aspx

14101

15101

16101

17101

18101

19101

20101

Runbook設計與執行

21101

22101

23101

24101

通知 稽核

流程

錯誤處理

25101

26101

27101

28101

29101

2 定義迴圈結束條件

1 啓用迴圈

30101

31101

32101

撰寫指令碼

33101

34101

$p1 = aaa從 初始化資料

$p2 = bbb 從 初始化資料

$Session = New-PSSession -ComputerName SVR1

$ResultArray = Invoke-Command -Session $Session

-ArgumentList $p1 $p2 $p3 -ScriptBlock

Param ( $p1 $p2 $p3 )

要執行的指令Return (xxx yyy hellip)

Remove-PSSession -Session $Session

$data1 = ResultArray[0] 取得 xxx

$data2 = ResultArray[1] 取得 yyy

35101

[SystemReflectionAssembly]LoadWithPartialName(SystemWindowsForms)

$MsgBox = [SystemWindowsFormsMessageBox]

$MsgBoxShow(Hello World)

$result = $MsgBoxShow(Are you sure Title 4)

if ($result -eq Yes)

$MsgBoxShow(YES)

else

$MsgBoxShow(NO)

36101

37101

httpmsdnmicrosoftcomen-uslibraryhh921685aspx

httporchestratorcodeplexcomreleasesview87873

httporchestratorcodeplexcomreleasesview82959

38101

51f9b950-6e33-465d-bc77-4d33e61831ff

39101

-getparameters

40101

41101

42101

43101

整合其它系統 ndash Integration Packs

44101

1

2

45101

46101

bull TFS

bull PowerShell

bull SharePoint

bull Active Directory

bull Exchange Mail and

Calendaring

bull Local Security

bull Scheduled Tasks

bull Utilities

bull Social media (Twitter)

bull Text Manipulation

bull F5

bull VMWare

bull Configuration Manager

2007

bull 4 BMC IPs- Kelverion

bull Dell -AIM IP

bull NetApp- OCPM IP

bull Cisco- UCS IP

bull Cisco- NCM

JaxMPFyrsoft

bull Kelverion- DBs IP

bull Kelverion-ServiceNow IP

bull Kelverion-Data

Manipulation IP

bull Kelverion-HTTP

Applications IP

bull Vision Solutions-

DoubleTake IP

bull VMWare vSphere

bull IBM Tivoli Netcool

bull HP OM

bull HP SM

bull HP iLo

bull Active Directory

bull MS Exchange User

bull MS Exchange Admin

bull FTP

bull New features added to

VMWare vSphere

bull REST

bull SharePoint

bull Windows Azure

微軟 協力廠商 Codeplex 社群

47101

httpwwwmicrosoftcomen-usdownloaddetailsaspxid=39622

httptechnetmicrosoftcomen-uslibraryhh295851aspx

Codeplex社群 httporchestratorcodeplexcom

48101

49101

httpmsdnmicrosoftcomen-uslibraryhh855855aspx

很容易擴展的平臺

50101

很容易擴展的平臺

51101

52101

Runbook偵錯與事件記錄

53101

54101

55101

56101

57101

58101

ltruntimegt

ltgeneratePublisherEvidence enabled=falsegt

ltruntimegt

59101

aspt RunbookServer1 40

aspt 40

60101

Service Management Automation (SMA) 介紹

61101

Azure

監控系統

變動控制系統

其它

開發適用於 Azure 的 Runbook建立 Runbook 來自動化所有雲端的操作例如部署監控最佳化hellip

具備高可用性的引擎支援各種規模與高可用性以 PowerShell 工作流程為基礎獨立隔離的 Runbook工作

整合其它系統匯入 PowerShell 模組建立其它模組與 Runbook

連接到 Azure 服務或其它第三方系統

自動化

62101

httpgallerytechnetmicrosoftcomsystemcenterService-Management-fcd75828

63101

PowerShell 工

作流程

bull 使用Windows PowerShell 語法

bull 使用單一工作完成複雜需要面對面的

人工作業

bull 自動化錯誤復原

bull 連線與活動重試

集中式

儲存區

bull 身份資訊 憑證

bull 全域變數與連線

bull 模組

bull Runbooks (草稿與發佈)

bull 排程

高可用性

bull 多部 Runbook伺服器

bull OData Web Service

bull SQL Server 叢集 Always On

歷程分析

bull Runbook執行歷程

bull Excel PowerPivot 報表

bull Runbook使用狀況

PowerShell 工作流程

集中式儲存區

高可用性

歷程分析

Service Management Automation

(SMA)

64101

ODATA REST Web Service

Runbooks

Jobs

Modules amp Activies

Submit requests

Return results

Http RequestHttp Response

Persist State

Pick up Jobs

SQL DatabaseRunbook Workers

Service Management Portal

bull 撰寫

bull 操作

Service Management Portal

bull PowerShell 工作流程

bull PowerShell 模組

Runbook Workers

bull REST OData

bull 授權

Web Service

bull 管理

bull 操作

Powershell Cmdlets

bull Runbook資源

bull Runbook工作狀況

SMA Database

PowerShell

Module

HTTP

65101

整合 Orchestrator 與 SMA ndash混合雲環境

66101

整合

httpblogstechnetcomborchestratorarchive20140209service-management-automation-integration-with-orchestratoraspx

67101

68101

SMA 整合 PowerShell 與 OData

69101

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 10: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

10101

讓 IT 人員專心處理特殊的意外事件

1 分鐘1 分鐘 1 分鐘 3 分鐘 幾秒鐘1 分鐘 幾秒鐘

總共花費不到 8 分鐘

因為自動化所以速度快品質一致服務可預期

IT 工作流程自動化之後

派工單遞送相關資料檢驗事件

收集服務資料檢查已知問題 收到工單 解決問題

結案製作報告

檢驗解決方案

事件分類 診斷 尋求協助 修正 回報

11101

架構設計與建置

12101

13101

httptechnetmicrosoftcomen-uslibraryhh420361aspx

14101

15101

16101

17101

18101

19101

20101

Runbook設計與執行

21101

22101

23101

24101

通知 稽核

流程

錯誤處理

25101

26101

27101

28101

29101

2 定義迴圈結束條件

1 啓用迴圈

30101

31101

32101

撰寫指令碼

33101

34101

$p1 = aaa從 初始化資料

$p2 = bbb 從 初始化資料

$Session = New-PSSession -ComputerName SVR1

$ResultArray = Invoke-Command -Session $Session

-ArgumentList $p1 $p2 $p3 -ScriptBlock

Param ( $p1 $p2 $p3 )

要執行的指令Return (xxx yyy hellip)

Remove-PSSession -Session $Session

$data1 = ResultArray[0] 取得 xxx

$data2 = ResultArray[1] 取得 yyy

35101

[SystemReflectionAssembly]LoadWithPartialName(SystemWindowsForms)

$MsgBox = [SystemWindowsFormsMessageBox]

$MsgBoxShow(Hello World)

$result = $MsgBoxShow(Are you sure Title 4)

if ($result -eq Yes)

$MsgBoxShow(YES)

else

$MsgBoxShow(NO)

36101

37101

httpmsdnmicrosoftcomen-uslibraryhh921685aspx

httporchestratorcodeplexcomreleasesview87873

httporchestratorcodeplexcomreleasesview82959

38101

51f9b950-6e33-465d-bc77-4d33e61831ff

39101

-getparameters

40101

41101

42101

43101

整合其它系統 ndash Integration Packs

44101

1

2

45101

46101

bull TFS

bull PowerShell

bull SharePoint

bull Active Directory

bull Exchange Mail and

Calendaring

bull Local Security

bull Scheduled Tasks

bull Utilities

bull Social media (Twitter)

bull Text Manipulation

bull F5

bull VMWare

bull Configuration Manager

2007

bull 4 BMC IPs- Kelverion

bull Dell -AIM IP

bull NetApp- OCPM IP

bull Cisco- UCS IP

bull Cisco- NCM

JaxMPFyrsoft

bull Kelverion- DBs IP

bull Kelverion-ServiceNow IP

bull Kelverion-Data

Manipulation IP

bull Kelverion-HTTP

Applications IP

bull Vision Solutions-

DoubleTake IP

bull VMWare vSphere

bull IBM Tivoli Netcool

bull HP OM

bull HP SM

bull HP iLo

bull Active Directory

bull MS Exchange User

bull MS Exchange Admin

bull FTP

bull New features added to

VMWare vSphere

bull REST

bull SharePoint

bull Windows Azure

微軟 協力廠商 Codeplex 社群

47101

httpwwwmicrosoftcomen-usdownloaddetailsaspxid=39622

httptechnetmicrosoftcomen-uslibraryhh295851aspx

Codeplex社群 httporchestratorcodeplexcom

48101

49101

httpmsdnmicrosoftcomen-uslibraryhh855855aspx

很容易擴展的平臺

50101

很容易擴展的平臺

51101

52101

Runbook偵錯與事件記錄

53101

54101

55101

56101

57101

58101

ltruntimegt

ltgeneratePublisherEvidence enabled=falsegt

ltruntimegt

59101

aspt RunbookServer1 40

aspt 40

60101

Service Management Automation (SMA) 介紹

61101

Azure

監控系統

變動控制系統

其它

開發適用於 Azure 的 Runbook建立 Runbook 來自動化所有雲端的操作例如部署監控最佳化hellip

具備高可用性的引擎支援各種規模與高可用性以 PowerShell 工作流程為基礎獨立隔離的 Runbook工作

整合其它系統匯入 PowerShell 模組建立其它模組與 Runbook

連接到 Azure 服務或其它第三方系統

自動化

62101

httpgallerytechnetmicrosoftcomsystemcenterService-Management-fcd75828

63101

PowerShell 工

作流程

bull 使用Windows PowerShell 語法

bull 使用單一工作完成複雜需要面對面的

人工作業

bull 自動化錯誤復原

bull 連線與活動重試

集中式

儲存區

bull 身份資訊 憑證

bull 全域變數與連線

bull 模組

bull Runbooks (草稿與發佈)

bull 排程

高可用性

bull 多部 Runbook伺服器

bull OData Web Service

bull SQL Server 叢集 Always On

歷程分析

bull Runbook執行歷程

bull Excel PowerPivot 報表

bull Runbook使用狀況

PowerShell 工作流程

集中式儲存區

高可用性

歷程分析

Service Management Automation

(SMA)

64101

ODATA REST Web Service

Runbooks

Jobs

Modules amp Activies

Submit requests

Return results

Http RequestHttp Response

Persist State

Pick up Jobs

SQL DatabaseRunbook Workers

Service Management Portal

bull 撰寫

bull 操作

Service Management Portal

bull PowerShell 工作流程

bull PowerShell 模組

Runbook Workers

bull REST OData

bull 授權

Web Service

bull 管理

bull 操作

Powershell Cmdlets

bull Runbook資源

bull Runbook工作狀況

SMA Database

PowerShell

Module

HTTP

65101

整合 Orchestrator 與 SMA ndash混合雲環境

66101

整合

httpblogstechnetcomborchestratorarchive20140209service-management-automation-integration-with-orchestratoraspx

67101

68101

SMA 整合 PowerShell 與 OData

69101

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 11: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

11101

架構設計與建置

12101

13101

httptechnetmicrosoftcomen-uslibraryhh420361aspx

14101

15101

16101

17101

18101

19101

20101

Runbook設計與執行

21101

22101

23101

24101

通知 稽核

流程

錯誤處理

25101

26101

27101

28101

29101

2 定義迴圈結束條件

1 啓用迴圈

30101

31101

32101

撰寫指令碼

33101

34101

$p1 = aaa從 初始化資料

$p2 = bbb 從 初始化資料

$Session = New-PSSession -ComputerName SVR1

$ResultArray = Invoke-Command -Session $Session

-ArgumentList $p1 $p2 $p3 -ScriptBlock

Param ( $p1 $p2 $p3 )

要執行的指令Return (xxx yyy hellip)

Remove-PSSession -Session $Session

$data1 = ResultArray[0] 取得 xxx

$data2 = ResultArray[1] 取得 yyy

35101

[SystemReflectionAssembly]LoadWithPartialName(SystemWindowsForms)

$MsgBox = [SystemWindowsFormsMessageBox]

$MsgBoxShow(Hello World)

$result = $MsgBoxShow(Are you sure Title 4)

if ($result -eq Yes)

$MsgBoxShow(YES)

else

$MsgBoxShow(NO)

36101

37101

httpmsdnmicrosoftcomen-uslibraryhh921685aspx

httporchestratorcodeplexcomreleasesview87873

httporchestratorcodeplexcomreleasesview82959

38101

51f9b950-6e33-465d-bc77-4d33e61831ff

39101

-getparameters

40101

41101

42101

43101

整合其它系統 ndash Integration Packs

44101

1

2

45101

46101

bull TFS

bull PowerShell

bull SharePoint

bull Active Directory

bull Exchange Mail and

Calendaring

bull Local Security

bull Scheduled Tasks

bull Utilities

bull Social media (Twitter)

bull Text Manipulation

bull F5

bull VMWare

bull Configuration Manager

2007

bull 4 BMC IPs- Kelverion

bull Dell -AIM IP

bull NetApp- OCPM IP

bull Cisco- UCS IP

bull Cisco- NCM

JaxMPFyrsoft

bull Kelverion- DBs IP

bull Kelverion-ServiceNow IP

bull Kelverion-Data

Manipulation IP

bull Kelverion-HTTP

Applications IP

bull Vision Solutions-

DoubleTake IP

bull VMWare vSphere

bull IBM Tivoli Netcool

bull HP OM

bull HP SM

bull HP iLo

bull Active Directory

bull MS Exchange User

bull MS Exchange Admin

bull FTP

bull New features added to

VMWare vSphere

bull REST

bull SharePoint

bull Windows Azure

微軟 協力廠商 Codeplex 社群

47101

httpwwwmicrosoftcomen-usdownloaddetailsaspxid=39622

httptechnetmicrosoftcomen-uslibraryhh295851aspx

Codeplex社群 httporchestratorcodeplexcom

48101

49101

httpmsdnmicrosoftcomen-uslibraryhh855855aspx

很容易擴展的平臺

50101

很容易擴展的平臺

51101

52101

Runbook偵錯與事件記錄

53101

54101

55101

56101

57101

58101

ltruntimegt

ltgeneratePublisherEvidence enabled=falsegt

ltruntimegt

59101

aspt RunbookServer1 40

aspt 40

60101

Service Management Automation (SMA) 介紹

61101

Azure

監控系統

變動控制系統

其它

開發適用於 Azure 的 Runbook建立 Runbook 來自動化所有雲端的操作例如部署監控最佳化hellip

具備高可用性的引擎支援各種規模與高可用性以 PowerShell 工作流程為基礎獨立隔離的 Runbook工作

整合其它系統匯入 PowerShell 模組建立其它模組與 Runbook

連接到 Azure 服務或其它第三方系統

自動化

62101

httpgallerytechnetmicrosoftcomsystemcenterService-Management-fcd75828

63101

PowerShell 工

作流程

bull 使用Windows PowerShell 語法

bull 使用單一工作完成複雜需要面對面的

人工作業

bull 自動化錯誤復原

bull 連線與活動重試

集中式

儲存區

bull 身份資訊 憑證

bull 全域變數與連線

bull 模組

bull Runbooks (草稿與發佈)

bull 排程

高可用性

bull 多部 Runbook伺服器

bull OData Web Service

bull SQL Server 叢集 Always On

歷程分析

bull Runbook執行歷程

bull Excel PowerPivot 報表

bull Runbook使用狀況

PowerShell 工作流程

集中式儲存區

高可用性

歷程分析

Service Management Automation

(SMA)

64101

ODATA REST Web Service

Runbooks

Jobs

Modules amp Activies

Submit requests

Return results

Http RequestHttp Response

Persist State

Pick up Jobs

SQL DatabaseRunbook Workers

Service Management Portal

bull 撰寫

bull 操作

Service Management Portal

bull PowerShell 工作流程

bull PowerShell 模組

Runbook Workers

bull REST OData

bull 授權

Web Service

bull 管理

bull 操作

Powershell Cmdlets

bull Runbook資源

bull Runbook工作狀況

SMA Database

PowerShell

Module

HTTP

65101

整合 Orchestrator 與 SMA ndash混合雲環境

66101

整合

httpblogstechnetcomborchestratorarchive20140209service-management-automation-integration-with-orchestratoraspx

67101

68101

SMA 整合 PowerShell 與 OData

69101

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 12: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

12101

13101

httptechnetmicrosoftcomen-uslibraryhh420361aspx

14101

15101

16101

17101

18101

19101

20101

Runbook設計與執行

21101

22101

23101

24101

通知 稽核

流程

錯誤處理

25101

26101

27101

28101

29101

2 定義迴圈結束條件

1 啓用迴圈

30101

31101

32101

撰寫指令碼

33101

34101

$p1 = aaa從 初始化資料

$p2 = bbb 從 初始化資料

$Session = New-PSSession -ComputerName SVR1

$ResultArray = Invoke-Command -Session $Session

-ArgumentList $p1 $p2 $p3 -ScriptBlock

Param ( $p1 $p2 $p3 )

要執行的指令Return (xxx yyy hellip)

Remove-PSSession -Session $Session

$data1 = ResultArray[0] 取得 xxx

$data2 = ResultArray[1] 取得 yyy

35101

[SystemReflectionAssembly]LoadWithPartialName(SystemWindowsForms)

$MsgBox = [SystemWindowsFormsMessageBox]

$MsgBoxShow(Hello World)

$result = $MsgBoxShow(Are you sure Title 4)

if ($result -eq Yes)

$MsgBoxShow(YES)

else

$MsgBoxShow(NO)

36101

37101

httpmsdnmicrosoftcomen-uslibraryhh921685aspx

httporchestratorcodeplexcomreleasesview87873

httporchestratorcodeplexcomreleasesview82959

38101

51f9b950-6e33-465d-bc77-4d33e61831ff

39101

-getparameters

40101

41101

42101

43101

整合其它系統 ndash Integration Packs

44101

1

2

45101

46101

bull TFS

bull PowerShell

bull SharePoint

bull Active Directory

bull Exchange Mail and

Calendaring

bull Local Security

bull Scheduled Tasks

bull Utilities

bull Social media (Twitter)

bull Text Manipulation

bull F5

bull VMWare

bull Configuration Manager

2007

bull 4 BMC IPs- Kelverion

bull Dell -AIM IP

bull NetApp- OCPM IP

bull Cisco- UCS IP

bull Cisco- NCM

JaxMPFyrsoft

bull Kelverion- DBs IP

bull Kelverion-ServiceNow IP

bull Kelverion-Data

Manipulation IP

bull Kelverion-HTTP

Applications IP

bull Vision Solutions-

DoubleTake IP

bull VMWare vSphere

bull IBM Tivoli Netcool

bull HP OM

bull HP SM

bull HP iLo

bull Active Directory

bull MS Exchange User

bull MS Exchange Admin

bull FTP

bull New features added to

VMWare vSphere

bull REST

bull SharePoint

bull Windows Azure

微軟 協力廠商 Codeplex 社群

47101

httpwwwmicrosoftcomen-usdownloaddetailsaspxid=39622

httptechnetmicrosoftcomen-uslibraryhh295851aspx

Codeplex社群 httporchestratorcodeplexcom

48101

49101

httpmsdnmicrosoftcomen-uslibraryhh855855aspx

很容易擴展的平臺

50101

很容易擴展的平臺

51101

52101

Runbook偵錯與事件記錄

53101

54101

55101

56101

57101

58101

ltruntimegt

ltgeneratePublisherEvidence enabled=falsegt

ltruntimegt

59101

aspt RunbookServer1 40

aspt 40

60101

Service Management Automation (SMA) 介紹

61101

Azure

監控系統

變動控制系統

其它

開發適用於 Azure 的 Runbook建立 Runbook 來自動化所有雲端的操作例如部署監控最佳化hellip

具備高可用性的引擎支援各種規模與高可用性以 PowerShell 工作流程為基礎獨立隔離的 Runbook工作

整合其它系統匯入 PowerShell 模組建立其它模組與 Runbook

連接到 Azure 服務或其它第三方系統

自動化

62101

httpgallerytechnetmicrosoftcomsystemcenterService-Management-fcd75828

63101

PowerShell 工

作流程

bull 使用Windows PowerShell 語法

bull 使用單一工作完成複雜需要面對面的

人工作業

bull 自動化錯誤復原

bull 連線與活動重試

集中式

儲存區

bull 身份資訊 憑證

bull 全域變數與連線

bull 模組

bull Runbooks (草稿與發佈)

bull 排程

高可用性

bull 多部 Runbook伺服器

bull OData Web Service

bull SQL Server 叢集 Always On

歷程分析

bull Runbook執行歷程

bull Excel PowerPivot 報表

bull Runbook使用狀況

PowerShell 工作流程

集中式儲存區

高可用性

歷程分析

Service Management Automation

(SMA)

64101

ODATA REST Web Service

Runbooks

Jobs

Modules amp Activies

Submit requests

Return results

Http RequestHttp Response

Persist State

Pick up Jobs

SQL DatabaseRunbook Workers

Service Management Portal

bull 撰寫

bull 操作

Service Management Portal

bull PowerShell 工作流程

bull PowerShell 模組

Runbook Workers

bull REST OData

bull 授權

Web Service

bull 管理

bull 操作

Powershell Cmdlets

bull Runbook資源

bull Runbook工作狀況

SMA Database

PowerShell

Module

HTTP

65101

整合 Orchestrator 與 SMA ndash混合雲環境

66101

整合

httpblogstechnetcomborchestratorarchive20140209service-management-automation-integration-with-orchestratoraspx

67101

68101

SMA 整合 PowerShell 與 OData

69101

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 13: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

13101

httptechnetmicrosoftcomen-uslibraryhh420361aspx

14101

15101

16101

17101

18101

19101

20101

Runbook設計與執行

21101

22101

23101

24101

通知 稽核

流程

錯誤處理

25101

26101

27101

28101

29101

2 定義迴圈結束條件

1 啓用迴圈

30101

31101

32101

撰寫指令碼

33101

34101

$p1 = aaa從 初始化資料

$p2 = bbb 從 初始化資料

$Session = New-PSSession -ComputerName SVR1

$ResultArray = Invoke-Command -Session $Session

-ArgumentList $p1 $p2 $p3 -ScriptBlock

Param ( $p1 $p2 $p3 )

要執行的指令Return (xxx yyy hellip)

Remove-PSSession -Session $Session

$data1 = ResultArray[0] 取得 xxx

$data2 = ResultArray[1] 取得 yyy

35101

[SystemReflectionAssembly]LoadWithPartialName(SystemWindowsForms)

$MsgBox = [SystemWindowsFormsMessageBox]

$MsgBoxShow(Hello World)

$result = $MsgBoxShow(Are you sure Title 4)

if ($result -eq Yes)

$MsgBoxShow(YES)

else

$MsgBoxShow(NO)

36101

37101

httpmsdnmicrosoftcomen-uslibraryhh921685aspx

httporchestratorcodeplexcomreleasesview87873

httporchestratorcodeplexcomreleasesview82959

38101

51f9b950-6e33-465d-bc77-4d33e61831ff

39101

-getparameters

40101

41101

42101

43101

整合其它系統 ndash Integration Packs

44101

1

2

45101

46101

bull TFS

bull PowerShell

bull SharePoint

bull Active Directory

bull Exchange Mail and

Calendaring

bull Local Security

bull Scheduled Tasks

bull Utilities

bull Social media (Twitter)

bull Text Manipulation

bull F5

bull VMWare

bull Configuration Manager

2007

bull 4 BMC IPs- Kelverion

bull Dell -AIM IP

bull NetApp- OCPM IP

bull Cisco- UCS IP

bull Cisco- NCM

JaxMPFyrsoft

bull Kelverion- DBs IP

bull Kelverion-ServiceNow IP

bull Kelverion-Data

Manipulation IP

bull Kelverion-HTTP

Applications IP

bull Vision Solutions-

DoubleTake IP

bull VMWare vSphere

bull IBM Tivoli Netcool

bull HP OM

bull HP SM

bull HP iLo

bull Active Directory

bull MS Exchange User

bull MS Exchange Admin

bull FTP

bull New features added to

VMWare vSphere

bull REST

bull SharePoint

bull Windows Azure

微軟 協力廠商 Codeplex 社群

47101

httpwwwmicrosoftcomen-usdownloaddetailsaspxid=39622

httptechnetmicrosoftcomen-uslibraryhh295851aspx

Codeplex社群 httporchestratorcodeplexcom

48101

49101

httpmsdnmicrosoftcomen-uslibraryhh855855aspx

很容易擴展的平臺

50101

很容易擴展的平臺

51101

52101

Runbook偵錯與事件記錄

53101

54101

55101

56101

57101

58101

ltruntimegt

ltgeneratePublisherEvidence enabled=falsegt

ltruntimegt

59101

aspt RunbookServer1 40

aspt 40

60101

Service Management Automation (SMA) 介紹

61101

Azure

監控系統

變動控制系統

其它

開發適用於 Azure 的 Runbook建立 Runbook 來自動化所有雲端的操作例如部署監控最佳化hellip

具備高可用性的引擎支援各種規模與高可用性以 PowerShell 工作流程為基礎獨立隔離的 Runbook工作

整合其它系統匯入 PowerShell 模組建立其它模組與 Runbook

連接到 Azure 服務或其它第三方系統

自動化

62101

httpgallerytechnetmicrosoftcomsystemcenterService-Management-fcd75828

63101

PowerShell 工

作流程

bull 使用Windows PowerShell 語法

bull 使用單一工作完成複雜需要面對面的

人工作業

bull 自動化錯誤復原

bull 連線與活動重試

集中式

儲存區

bull 身份資訊 憑證

bull 全域變數與連線

bull 模組

bull Runbooks (草稿與發佈)

bull 排程

高可用性

bull 多部 Runbook伺服器

bull OData Web Service

bull SQL Server 叢集 Always On

歷程分析

bull Runbook執行歷程

bull Excel PowerPivot 報表

bull Runbook使用狀況

PowerShell 工作流程

集中式儲存區

高可用性

歷程分析

Service Management Automation

(SMA)

64101

ODATA REST Web Service

Runbooks

Jobs

Modules amp Activies

Submit requests

Return results

Http RequestHttp Response

Persist State

Pick up Jobs

SQL DatabaseRunbook Workers

Service Management Portal

bull 撰寫

bull 操作

Service Management Portal

bull PowerShell 工作流程

bull PowerShell 模組

Runbook Workers

bull REST OData

bull 授權

Web Service

bull 管理

bull 操作

Powershell Cmdlets

bull Runbook資源

bull Runbook工作狀況

SMA Database

PowerShell

Module

HTTP

65101

整合 Orchestrator 與 SMA ndash混合雲環境

66101

整合

httpblogstechnetcomborchestratorarchive20140209service-management-automation-integration-with-orchestratoraspx

67101

68101

SMA 整合 PowerShell 與 OData

69101

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 14: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

14101

15101

16101

17101

18101

19101

20101

Runbook設計與執行

21101

22101

23101

24101

通知 稽核

流程

錯誤處理

25101

26101

27101

28101

29101

2 定義迴圈結束條件

1 啓用迴圈

30101

31101

32101

撰寫指令碼

33101

34101

$p1 = aaa從 初始化資料

$p2 = bbb 從 初始化資料

$Session = New-PSSession -ComputerName SVR1

$ResultArray = Invoke-Command -Session $Session

-ArgumentList $p1 $p2 $p3 -ScriptBlock

Param ( $p1 $p2 $p3 )

要執行的指令Return (xxx yyy hellip)

Remove-PSSession -Session $Session

$data1 = ResultArray[0] 取得 xxx

$data2 = ResultArray[1] 取得 yyy

35101

[SystemReflectionAssembly]LoadWithPartialName(SystemWindowsForms)

$MsgBox = [SystemWindowsFormsMessageBox]

$MsgBoxShow(Hello World)

$result = $MsgBoxShow(Are you sure Title 4)

if ($result -eq Yes)

$MsgBoxShow(YES)

else

$MsgBoxShow(NO)

36101

37101

httpmsdnmicrosoftcomen-uslibraryhh921685aspx

httporchestratorcodeplexcomreleasesview87873

httporchestratorcodeplexcomreleasesview82959

38101

51f9b950-6e33-465d-bc77-4d33e61831ff

39101

-getparameters

40101

41101

42101

43101

整合其它系統 ndash Integration Packs

44101

1

2

45101

46101

bull TFS

bull PowerShell

bull SharePoint

bull Active Directory

bull Exchange Mail and

Calendaring

bull Local Security

bull Scheduled Tasks

bull Utilities

bull Social media (Twitter)

bull Text Manipulation

bull F5

bull VMWare

bull Configuration Manager

2007

bull 4 BMC IPs- Kelverion

bull Dell -AIM IP

bull NetApp- OCPM IP

bull Cisco- UCS IP

bull Cisco- NCM

JaxMPFyrsoft

bull Kelverion- DBs IP

bull Kelverion-ServiceNow IP

bull Kelverion-Data

Manipulation IP

bull Kelverion-HTTP

Applications IP

bull Vision Solutions-

DoubleTake IP

bull VMWare vSphere

bull IBM Tivoli Netcool

bull HP OM

bull HP SM

bull HP iLo

bull Active Directory

bull MS Exchange User

bull MS Exchange Admin

bull FTP

bull New features added to

VMWare vSphere

bull REST

bull SharePoint

bull Windows Azure

微軟 協力廠商 Codeplex 社群

47101

httpwwwmicrosoftcomen-usdownloaddetailsaspxid=39622

httptechnetmicrosoftcomen-uslibraryhh295851aspx

Codeplex社群 httporchestratorcodeplexcom

48101

49101

httpmsdnmicrosoftcomen-uslibraryhh855855aspx

很容易擴展的平臺

50101

很容易擴展的平臺

51101

52101

Runbook偵錯與事件記錄

53101

54101

55101

56101

57101

58101

ltruntimegt

ltgeneratePublisherEvidence enabled=falsegt

ltruntimegt

59101

aspt RunbookServer1 40

aspt 40

60101

Service Management Automation (SMA) 介紹

61101

Azure

監控系統

變動控制系統

其它

開發適用於 Azure 的 Runbook建立 Runbook 來自動化所有雲端的操作例如部署監控最佳化hellip

具備高可用性的引擎支援各種規模與高可用性以 PowerShell 工作流程為基礎獨立隔離的 Runbook工作

整合其它系統匯入 PowerShell 模組建立其它模組與 Runbook

連接到 Azure 服務或其它第三方系統

自動化

62101

httpgallerytechnetmicrosoftcomsystemcenterService-Management-fcd75828

63101

PowerShell 工

作流程

bull 使用Windows PowerShell 語法

bull 使用單一工作完成複雜需要面對面的

人工作業

bull 自動化錯誤復原

bull 連線與活動重試

集中式

儲存區

bull 身份資訊 憑證

bull 全域變數與連線

bull 模組

bull Runbooks (草稿與發佈)

bull 排程

高可用性

bull 多部 Runbook伺服器

bull OData Web Service

bull SQL Server 叢集 Always On

歷程分析

bull Runbook執行歷程

bull Excel PowerPivot 報表

bull Runbook使用狀況

PowerShell 工作流程

集中式儲存區

高可用性

歷程分析

Service Management Automation

(SMA)

64101

ODATA REST Web Service

Runbooks

Jobs

Modules amp Activies

Submit requests

Return results

Http RequestHttp Response

Persist State

Pick up Jobs

SQL DatabaseRunbook Workers

Service Management Portal

bull 撰寫

bull 操作

Service Management Portal

bull PowerShell 工作流程

bull PowerShell 模組

Runbook Workers

bull REST OData

bull 授權

Web Service

bull 管理

bull 操作

Powershell Cmdlets

bull Runbook資源

bull Runbook工作狀況

SMA Database

PowerShell

Module

HTTP

65101

整合 Orchestrator 與 SMA ndash混合雲環境

66101

整合

httpblogstechnetcomborchestratorarchive20140209service-management-automation-integration-with-orchestratoraspx

67101

68101

SMA 整合 PowerShell 與 OData

69101

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 15: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

15101

16101

17101

18101

19101

20101

Runbook設計與執行

21101

22101

23101

24101

通知 稽核

流程

錯誤處理

25101

26101

27101

28101

29101

2 定義迴圈結束條件

1 啓用迴圈

30101

31101

32101

撰寫指令碼

33101

34101

$p1 = aaa從 初始化資料

$p2 = bbb 從 初始化資料

$Session = New-PSSession -ComputerName SVR1

$ResultArray = Invoke-Command -Session $Session

-ArgumentList $p1 $p2 $p3 -ScriptBlock

Param ( $p1 $p2 $p3 )

要執行的指令Return (xxx yyy hellip)

Remove-PSSession -Session $Session

$data1 = ResultArray[0] 取得 xxx

$data2 = ResultArray[1] 取得 yyy

35101

[SystemReflectionAssembly]LoadWithPartialName(SystemWindowsForms)

$MsgBox = [SystemWindowsFormsMessageBox]

$MsgBoxShow(Hello World)

$result = $MsgBoxShow(Are you sure Title 4)

if ($result -eq Yes)

$MsgBoxShow(YES)

else

$MsgBoxShow(NO)

36101

37101

httpmsdnmicrosoftcomen-uslibraryhh921685aspx

httporchestratorcodeplexcomreleasesview87873

httporchestratorcodeplexcomreleasesview82959

38101

51f9b950-6e33-465d-bc77-4d33e61831ff

39101

-getparameters

40101

41101

42101

43101

整合其它系統 ndash Integration Packs

44101

1

2

45101

46101

bull TFS

bull PowerShell

bull SharePoint

bull Active Directory

bull Exchange Mail and

Calendaring

bull Local Security

bull Scheduled Tasks

bull Utilities

bull Social media (Twitter)

bull Text Manipulation

bull F5

bull VMWare

bull Configuration Manager

2007

bull 4 BMC IPs- Kelverion

bull Dell -AIM IP

bull NetApp- OCPM IP

bull Cisco- UCS IP

bull Cisco- NCM

JaxMPFyrsoft

bull Kelverion- DBs IP

bull Kelverion-ServiceNow IP

bull Kelverion-Data

Manipulation IP

bull Kelverion-HTTP

Applications IP

bull Vision Solutions-

DoubleTake IP

bull VMWare vSphere

bull IBM Tivoli Netcool

bull HP OM

bull HP SM

bull HP iLo

bull Active Directory

bull MS Exchange User

bull MS Exchange Admin

bull FTP

bull New features added to

VMWare vSphere

bull REST

bull SharePoint

bull Windows Azure

微軟 協力廠商 Codeplex 社群

47101

httpwwwmicrosoftcomen-usdownloaddetailsaspxid=39622

httptechnetmicrosoftcomen-uslibraryhh295851aspx

Codeplex社群 httporchestratorcodeplexcom

48101

49101

httpmsdnmicrosoftcomen-uslibraryhh855855aspx

很容易擴展的平臺

50101

很容易擴展的平臺

51101

52101

Runbook偵錯與事件記錄

53101

54101

55101

56101

57101

58101

ltruntimegt

ltgeneratePublisherEvidence enabled=falsegt

ltruntimegt

59101

aspt RunbookServer1 40

aspt 40

60101

Service Management Automation (SMA) 介紹

61101

Azure

監控系統

變動控制系統

其它

開發適用於 Azure 的 Runbook建立 Runbook 來自動化所有雲端的操作例如部署監控最佳化hellip

具備高可用性的引擎支援各種規模與高可用性以 PowerShell 工作流程為基礎獨立隔離的 Runbook工作

整合其它系統匯入 PowerShell 模組建立其它模組與 Runbook

連接到 Azure 服務或其它第三方系統

自動化

62101

httpgallerytechnetmicrosoftcomsystemcenterService-Management-fcd75828

63101

PowerShell 工

作流程

bull 使用Windows PowerShell 語法

bull 使用單一工作完成複雜需要面對面的

人工作業

bull 自動化錯誤復原

bull 連線與活動重試

集中式

儲存區

bull 身份資訊 憑證

bull 全域變數與連線

bull 模組

bull Runbooks (草稿與發佈)

bull 排程

高可用性

bull 多部 Runbook伺服器

bull OData Web Service

bull SQL Server 叢集 Always On

歷程分析

bull Runbook執行歷程

bull Excel PowerPivot 報表

bull Runbook使用狀況

PowerShell 工作流程

集中式儲存區

高可用性

歷程分析

Service Management Automation

(SMA)

64101

ODATA REST Web Service

Runbooks

Jobs

Modules amp Activies

Submit requests

Return results

Http RequestHttp Response

Persist State

Pick up Jobs

SQL DatabaseRunbook Workers

Service Management Portal

bull 撰寫

bull 操作

Service Management Portal

bull PowerShell 工作流程

bull PowerShell 模組

Runbook Workers

bull REST OData

bull 授權

Web Service

bull 管理

bull 操作

Powershell Cmdlets

bull Runbook資源

bull Runbook工作狀況

SMA Database

PowerShell

Module

HTTP

65101

整合 Orchestrator 與 SMA ndash混合雲環境

66101

整合

httpblogstechnetcomborchestratorarchive20140209service-management-automation-integration-with-orchestratoraspx

67101

68101

SMA 整合 PowerShell 與 OData

69101

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 16: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

16101

17101

18101

19101

20101

Runbook設計與執行

21101

22101

23101

24101

通知 稽核

流程

錯誤處理

25101

26101

27101

28101

29101

2 定義迴圈結束條件

1 啓用迴圈

30101

31101

32101

撰寫指令碼

33101

34101

$p1 = aaa從 初始化資料

$p2 = bbb 從 初始化資料

$Session = New-PSSession -ComputerName SVR1

$ResultArray = Invoke-Command -Session $Session

-ArgumentList $p1 $p2 $p3 -ScriptBlock

Param ( $p1 $p2 $p3 )

要執行的指令Return (xxx yyy hellip)

Remove-PSSession -Session $Session

$data1 = ResultArray[0] 取得 xxx

$data2 = ResultArray[1] 取得 yyy

35101

[SystemReflectionAssembly]LoadWithPartialName(SystemWindowsForms)

$MsgBox = [SystemWindowsFormsMessageBox]

$MsgBoxShow(Hello World)

$result = $MsgBoxShow(Are you sure Title 4)

if ($result -eq Yes)

$MsgBoxShow(YES)

else

$MsgBoxShow(NO)

36101

37101

httpmsdnmicrosoftcomen-uslibraryhh921685aspx

httporchestratorcodeplexcomreleasesview87873

httporchestratorcodeplexcomreleasesview82959

38101

51f9b950-6e33-465d-bc77-4d33e61831ff

39101

-getparameters

40101

41101

42101

43101

整合其它系統 ndash Integration Packs

44101

1

2

45101

46101

bull TFS

bull PowerShell

bull SharePoint

bull Active Directory

bull Exchange Mail and

Calendaring

bull Local Security

bull Scheduled Tasks

bull Utilities

bull Social media (Twitter)

bull Text Manipulation

bull F5

bull VMWare

bull Configuration Manager

2007

bull 4 BMC IPs- Kelverion

bull Dell -AIM IP

bull NetApp- OCPM IP

bull Cisco- UCS IP

bull Cisco- NCM

JaxMPFyrsoft

bull Kelverion- DBs IP

bull Kelverion-ServiceNow IP

bull Kelverion-Data

Manipulation IP

bull Kelverion-HTTP

Applications IP

bull Vision Solutions-

DoubleTake IP

bull VMWare vSphere

bull IBM Tivoli Netcool

bull HP OM

bull HP SM

bull HP iLo

bull Active Directory

bull MS Exchange User

bull MS Exchange Admin

bull FTP

bull New features added to

VMWare vSphere

bull REST

bull SharePoint

bull Windows Azure

微軟 協力廠商 Codeplex 社群

47101

httpwwwmicrosoftcomen-usdownloaddetailsaspxid=39622

httptechnetmicrosoftcomen-uslibraryhh295851aspx

Codeplex社群 httporchestratorcodeplexcom

48101

49101

httpmsdnmicrosoftcomen-uslibraryhh855855aspx

很容易擴展的平臺

50101

很容易擴展的平臺

51101

52101

Runbook偵錯與事件記錄

53101

54101

55101

56101

57101

58101

ltruntimegt

ltgeneratePublisherEvidence enabled=falsegt

ltruntimegt

59101

aspt RunbookServer1 40

aspt 40

60101

Service Management Automation (SMA) 介紹

61101

Azure

監控系統

變動控制系統

其它

開發適用於 Azure 的 Runbook建立 Runbook 來自動化所有雲端的操作例如部署監控最佳化hellip

具備高可用性的引擎支援各種規模與高可用性以 PowerShell 工作流程為基礎獨立隔離的 Runbook工作

整合其它系統匯入 PowerShell 模組建立其它模組與 Runbook

連接到 Azure 服務或其它第三方系統

自動化

62101

httpgallerytechnetmicrosoftcomsystemcenterService-Management-fcd75828

63101

PowerShell 工

作流程

bull 使用Windows PowerShell 語法

bull 使用單一工作完成複雜需要面對面的

人工作業

bull 自動化錯誤復原

bull 連線與活動重試

集中式

儲存區

bull 身份資訊 憑證

bull 全域變數與連線

bull 模組

bull Runbooks (草稿與發佈)

bull 排程

高可用性

bull 多部 Runbook伺服器

bull OData Web Service

bull SQL Server 叢集 Always On

歷程分析

bull Runbook執行歷程

bull Excel PowerPivot 報表

bull Runbook使用狀況

PowerShell 工作流程

集中式儲存區

高可用性

歷程分析

Service Management Automation

(SMA)

64101

ODATA REST Web Service

Runbooks

Jobs

Modules amp Activies

Submit requests

Return results

Http RequestHttp Response

Persist State

Pick up Jobs

SQL DatabaseRunbook Workers

Service Management Portal

bull 撰寫

bull 操作

Service Management Portal

bull PowerShell 工作流程

bull PowerShell 模組

Runbook Workers

bull REST OData

bull 授權

Web Service

bull 管理

bull 操作

Powershell Cmdlets

bull Runbook資源

bull Runbook工作狀況

SMA Database

PowerShell

Module

HTTP

65101

整合 Orchestrator 與 SMA ndash混合雲環境

66101

整合

httpblogstechnetcomborchestratorarchive20140209service-management-automation-integration-with-orchestratoraspx

67101

68101

SMA 整合 PowerShell 與 OData

69101

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 17: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

17101

18101

19101

20101

Runbook設計與執行

21101

22101

23101

24101

通知 稽核

流程

錯誤處理

25101

26101

27101

28101

29101

2 定義迴圈結束條件

1 啓用迴圈

30101

31101

32101

撰寫指令碼

33101

34101

$p1 = aaa從 初始化資料

$p2 = bbb 從 初始化資料

$Session = New-PSSession -ComputerName SVR1

$ResultArray = Invoke-Command -Session $Session

-ArgumentList $p1 $p2 $p3 -ScriptBlock

Param ( $p1 $p2 $p3 )

要執行的指令Return (xxx yyy hellip)

Remove-PSSession -Session $Session

$data1 = ResultArray[0] 取得 xxx

$data2 = ResultArray[1] 取得 yyy

35101

[SystemReflectionAssembly]LoadWithPartialName(SystemWindowsForms)

$MsgBox = [SystemWindowsFormsMessageBox]

$MsgBoxShow(Hello World)

$result = $MsgBoxShow(Are you sure Title 4)

if ($result -eq Yes)

$MsgBoxShow(YES)

else

$MsgBoxShow(NO)

36101

37101

httpmsdnmicrosoftcomen-uslibraryhh921685aspx

httporchestratorcodeplexcomreleasesview87873

httporchestratorcodeplexcomreleasesview82959

38101

51f9b950-6e33-465d-bc77-4d33e61831ff

39101

-getparameters

40101

41101

42101

43101

整合其它系統 ndash Integration Packs

44101

1

2

45101

46101

bull TFS

bull PowerShell

bull SharePoint

bull Active Directory

bull Exchange Mail and

Calendaring

bull Local Security

bull Scheduled Tasks

bull Utilities

bull Social media (Twitter)

bull Text Manipulation

bull F5

bull VMWare

bull Configuration Manager

2007

bull 4 BMC IPs- Kelverion

bull Dell -AIM IP

bull NetApp- OCPM IP

bull Cisco- UCS IP

bull Cisco- NCM

JaxMPFyrsoft

bull Kelverion- DBs IP

bull Kelverion-ServiceNow IP

bull Kelverion-Data

Manipulation IP

bull Kelverion-HTTP

Applications IP

bull Vision Solutions-

DoubleTake IP

bull VMWare vSphere

bull IBM Tivoli Netcool

bull HP OM

bull HP SM

bull HP iLo

bull Active Directory

bull MS Exchange User

bull MS Exchange Admin

bull FTP

bull New features added to

VMWare vSphere

bull REST

bull SharePoint

bull Windows Azure

微軟 協力廠商 Codeplex 社群

47101

httpwwwmicrosoftcomen-usdownloaddetailsaspxid=39622

httptechnetmicrosoftcomen-uslibraryhh295851aspx

Codeplex社群 httporchestratorcodeplexcom

48101

49101

httpmsdnmicrosoftcomen-uslibraryhh855855aspx

很容易擴展的平臺

50101

很容易擴展的平臺

51101

52101

Runbook偵錯與事件記錄

53101

54101

55101

56101

57101

58101

ltruntimegt

ltgeneratePublisherEvidence enabled=falsegt

ltruntimegt

59101

aspt RunbookServer1 40

aspt 40

60101

Service Management Automation (SMA) 介紹

61101

Azure

監控系統

變動控制系統

其它

開發適用於 Azure 的 Runbook建立 Runbook 來自動化所有雲端的操作例如部署監控最佳化hellip

具備高可用性的引擎支援各種規模與高可用性以 PowerShell 工作流程為基礎獨立隔離的 Runbook工作

整合其它系統匯入 PowerShell 模組建立其它模組與 Runbook

連接到 Azure 服務或其它第三方系統

自動化

62101

httpgallerytechnetmicrosoftcomsystemcenterService-Management-fcd75828

63101

PowerShell 工

作流程

bull 使用Windows PowerShell 語法

bull 使用單一工作完成複雜需要面對面的

人工作業

bull 自動化錯誤復原

bull 連線與活動重試

集中式

儲存區

bull 身份資訊 憑證

bull 全域變數與連線

bull 模組

bull Runbooks (草稿與發佈)

bull 排程

高可用性

bull 多部 Runbook伺服器

bull OData Web Service

bull SQL Server 叢集 Always On

歷程分析

bull Runbook執行歷程

bull Excel PowerPivot 報表

bull Runbook使用狀況

PowerShell 工作流程

集中式儲存區

高可用性

歷程分析

Service Management Automation

(SMA)

64101

ODATA REST Web Service

Runbooks

Jobs

Modules amp Activies

Submit requests

Return results

Http RequestHttp Response

Persist State

Pick up Jobs

SQL DatabaseRunbook Workers

Service Management Portal

bull 撰寫

bull 操作

Service Management Portal

bull PowerShell 工作流程

bull PowerShell 模組

Runbook Workers

bull REST OData

bull 授權

Web Service

bull 管理

bull 操作

Powershell Cmdlets

bull Runbook資源

bull Runbook工作狀況

SMA Database

PowerShell

Module

HTTP

65101

整合 Orchestrator 與 SMA ndash混合雲環境

66101

整合

httpblogstechnetcomborchestratorarchive20140209service-management-automation-integration-with-orchestratoraspx

67101

68101

SMA 整合 PowerShell 與 OData

69101

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 18: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

18101

19101

20101

Runbook設計與執行

21101

22101

23101

24101

通知 稽核

流程

錯誤處理

25101

26101

27101

28101

29101

2 定義迴圈結束條件

1 啓用迴圈

30101

31101

32101

撰寫指令碼

33101

34101

$p1 = aaa從 初始化資料

$p2 = bbb 從 初始化資料

$Session = New-PSSession -ComputerName SVR1

$ResultArray = Invoke-Command -Session $Session

-ArgumentList $p1 $p2 $p3 -ScriptBlock

Param ( $p1 $p2 $p3 )

要執行的指令Return (xxx yyy hellip)

Remove-PSSession -Session $Session

$data1 = ResultArray[0] 取得 xxx

$data2 = ResultArray[1] 取得 yyy

35101

[SystemReflectionAssembly]LoadWithPartialName(SystemWindowsForms)

$MsgBox = [SystemWindowsFormsMessageBox]

$MsgBoxShow(Hello World)

$result = $MsgBoxShow(Are you sure Title 4)

if ($result -eq Yes)

$MsgBoxShow(YES)

else

$MsgBoxShow(NO)

36101

37101

httpmsdnmicrosoftcomen-uslibraryhh921685aspx

httporchestratorcodeplexcomreleasesview87873

httporchestratorcodeplexcomreleasesview82959

38101

51f9b950-6e33-465d-bc77-4d33e61831ff

39101

-getparameters

40101

41101

42101

43101

整合其它系統 ndash Integration Packs

44101

1

2

45101

46101

bull TFS

bull PowerShell

bull SharePoint

bull Active Directory

bull Exchange Mail and

Calendaring

bull Local Security

bull Scheduled Tasks

bull Utilities

bull Social media (Twitter)

bull Text Manipulation

bull F5

bull VMWare

bull Configuration Manager

2007

bull 4 BMC IPs- Kelverion

bull Dell -AIM IP

bull NetApp- OCPM IP

bull Cisco- UCS IP

bull Cisco- NCM

JaxMPFyrsoft

bull Kelverion- DBs IP

bull Kelverion-ServiceNow IP

bull Kelverion-Data

Manipulation IP

bull Kelverion-HTTP

Applications IP

bull Vision Solutions-

DoubleTake IP

bull VMWare vSphere

bull IBM Tivoli Netcool

bull HP OM

bull HP SM

bull HP iLo

bull Active Directory

bull MS Exchange User

bull MS Exchange Admin

bull FTP

bull New features added to

VMWare vSphere

bull REST

bull SharePoint

bull Windows Azure

微軟 協力廠商 Codeplex 社群

47101

httpwwwmicrosoftcomen-usdownloaddetailsaspxid=39622

httptechnetmicrosoftcomen-uslibraryhh295851aspx

Codeplex社群 httporchestratorcodeplexcom

48101

49101

httpmsdnmicrosoftcomen-uslibraryhh855855aspx

很容易擴展的平臺

50101

很容易擴展的平臺

51101

52101

Runbook偵錯與事件記錄

53101

54101

55101

56101

57101

58101

ltruntimegt

ltgeneratePublisherEvidence enabled=falsegt

ltruntimegt

59101

aspt RunbookServer1 40

aspt 40

60101

Service Management Automation (SMA) 介紹

61101

Azure

監控系統

變動控制系統

其它

開發適用於 Azure 的 Runbook建立 Runbook 來自動化所有雲端的操作例如部署監控最佳化hellip

具備高可用性的引擎支援各種規模與高可用性以 PowerShell 工作流程為基礎獨立隔離的 Runbook工作

整合其它系統匯入 PowerShell 模組建立其它模組與 Runbook

連接到 Azure 服務或其它第三方系統

自動化

62101

httpgallerytechnetmicrosoftcomsystemcenterService-Management-fcd75828

63101

PowerShell 工

作流程

bull 使用Windows PowerShell 語法

bull 使用單一工作完成複雜需要面對面的

人工作業

bull 自動化錯誤復原

bull 連線與活動重試

集中式

儲存區

bull 身份資訊 憑證

bull 全域變數與連線

bull 模組

bull Runbooks (草稿與發佈)

bull 排程

高可用性

bull 多部 Runbook伺服器

bull OData Web Service

bull SQL Server 叢集 Always On

歷程分析

bull Runbook執行歷程

bull Excel PowerPivot 報表

bull Runbook使用狀況

PowerShell 工作流程

集中式儲存區

高可用性

歷程分析

Service Management Automation

(SMA)

64101

ODATA REST Web Service

Runbooks

Jobs

Modules amp Activies

Submit requests

Return results

Http RequestHttp Response

Persist State

Pick up Jobs

SQL DatabaseRunbook Workers

Service Management Portal

bull 撰寫

bull 操作

Service Management Portal

bull PowerShell 工作流程

bull PowerShell 模組

Runbook Workers

bull REST OData

bull 授權

Web Service

bull 管理

bull 操作

Powershell Cmdlets

bull Runbook資源

bull Runbook工作狀況

SMA Database

PowerShell

Module

HTTP

65101

整合 Orchestrator 與 SMA ndash混合雲環境

66101

整合

httpblogstechnetcomborchestratorarchive20140209service-management-automation-integration-with-orchestratoraspx

67101

68101

SMA 整合 PowerShell 與 OData

69101

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 19: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

19101

20101

Runbook設計與執行

21101

22101

23101

24101

通知 稽核

流程

錯誤處理

25101

26101

27101

28101

29101

2 定義迴圈結束條件

1 啓用迴圈

30101

31101

32101

撰寫指令碼

33101

34101

$p1 = aaa從 初始化資料

$p2 = bbb 從 初始化資料

$Session = New-PSSession -ComputerName SVR1

$ResultArray = Invoke-Command -Session $Session

-ArgumentList $p1 $p2 $p3 -ScriptBlock

Param ( $p1 $p2 $p3 )

要執行的指令Return (xxx yyy hellip)

Remove-PSSession -Session $Session

$data1 = ResultArray[0] 取得 xxx

$data2 = ResultArray[1] 取得 yyy

35101

[SystemReflectionAssembly]LoadWithPartialName(SystemWindowsForms)

$MsgBox = [SystemWindowsFormsMessageBox]

$MsgBoxShow(Hello World)

$result = $MsgBoxShow(Are you sure Title 4)

if ($result -eq Yes)

$MsgBoxShow(YES)

else

$MsgBoxShow(NO)

36101

37101

httpmsdnmicrosoftcomen-uslibraryhh921685aspx

httporchestratorcodeplexcomreleasesview87873

httporchestratorcodeplexcomreleasesview82959

38101

51f9b950-6e33-465d-bc77-4d33e61831ff

39101

-getparameters

40101

41101

42101

43101

整合其它系統 ndash Integration Packs

44101

1

2

45101

46101

bull TFS

bull PowerShell

bull SharePoint

bull Active Directory

bull Exchange Mail and

Calendaring

bull Local Security

bull Scheduled Tasks

bull Utilities

bull Social media (Twitter)

bull Text Manipulation

bull F5

bull VMWare

bull Configuration Manager

2007

bull 4 BMC IPs- Kelverion

bull Dell -AIM IP

bull NetApp- OCPM IP

bull Cisco- UCS IP

bull Cisco- NCM

JaxMPFyrsoft

bull Kelverion- DBs IP

bull Kelverion-ServiceNow IP

bull Kelverion-Data

Manipulation IP

bull Kelverion-HTTP

Applications IP

bull Vision Solutions-

DoubleTake IP

bull VMWare vSphere

bull IBM Tivoli Netcool

bull HP OM

bull HP SM

bull HP iLo

bull Active Directory

bull MS Exchange User

bull MS Exchange Admin

bull FTP

bull New features added to

VMWare vSphere

bull REST

bull SharePoint

bull Windows Azure

微軟 協力廠商 Codeplex 社群

47101

httpwwwmicrosoftcomen-usdownloaddetailsaspxid=39622

httptechnetmicrosoftcomen-uslibraryhh295851aspx

Codeplex社群 httporchestratorcodeplexcom

48101

49101

httpmsdnmicrosoftcomen-uslibraryhh855855aspx

很容易擴展的平臺

50101

很容易擴展的平臺

51101

52101

Runbook偵錯與事件記錄

53101

54101

55101

56101

57101

58101

ltruntimegt

ltgeneratePublisherEvidence enabled=falsegt

ltruntimegt

59101

aspt RunbookServer1 40

aspt 40

60101

Service Management Automation (SMA) 介紹

61101

Azure

監控系統

變動控制系統

其它

開發適用於 Azure 的 Runbook建立 Runbook 來自動化所有雲端的操作例如部署監控最佳化hellip

具備高可用性的引擎支援各種規模與高可用性以 PowerShell 工作流程為基礎獨立隔離的 Runbook工作

整合其它系統匯入 PowerShell 模組建立其它模組與 Runbook

連接到 Azure 服務或其它第三方系統

自動化

62101

httpgallerytechnetmicrosoftcomsystemcenterService-Management-fcd75828

63101

PowerShell 工

作流程

bull 使用Windows PowerShell 語法

bull 使用單一工作完成複雜需要面對面的

人工作業

bull 自動化錯誤復原

bull 連線與活動重試

集中式

儲存區

bull 身份資訊 憑證

bull 全域變數與連線

bull 模組

bull Runbooks (草稿與發佈)

bull 排程

高可用性

bull 多部 Runbook伺服器

bull OData Web Service

bull SQL Server 叢集 Always On

歷程分析

bull Runbook執行歷程

bull Excel PowerPivot 報表

bull Runbook使用狀況

PowerShell 工作流程

集中式儲存區

高可用性

歷程分析

Service Management Automation

(SMA)

64101

ODATA REST Web Service

Runbooks

Jobs

Modules amp Activies

Submit requests

Return results

Http RequestHttp Response

Persist State

Pick up Jobs

SQL DatabaseRunbook Workers

Service Management Portal

bull 撰寫

bull 操作

Service Management Portal

bull PowerShell 工作流程

bull PowerShell 模組

Runbook Workers

bull REST OData

bull 授權

Web Service

bull 管理

bull 操作

Powershell Cmdlets

bull Runbook資源

bull Runbook工作狀況

SMA Database

PowerShell

Module

HTTP

65101

整合 Orchestrator 與 SMA ndash混合雲環境

66101

整合

httpblogstechnetcomborchestratorarchive20140209service-management-automation-integration-with-orchestratoraspx

67101

68101

SMA 整合 PowerShell 與 OData

69101

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 20: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

20101

Runbook設計與執行

21101

22101

23101

24101

通知 稽核

流程

錯誤處理

25101

26101

27101

28101

29101

2 定義迴圈結束條件

1 啓用迴圈

30101

31101

32101

撰寫指令碼

33101

34101

$p1 = aaa從 初始化資料

$p2 = bbb 從 初始化資料

$Session = New-PSSession -ComputerName SVR1

$ResultArray = Invoke-Command -Session $Session

-ArgumentList $p1 $p2 $p3 -ScriptBlock

Param ( $p1 $p2 $p3 )

要執行的指令Return (xxx yyy hellip)

Remove-PSSession -Session $Session

$data1 = ResultArray[0] 取得 xxx

$data2 = ResultArray[1] 取得 yyy

35101

[SystemReflectionAssembly]LoadWithPartialName(SystemWindowsForms)

$MsgBox = [SystemWindowsFormsMessageBox]

$MsgBoxShow(Hello World)

$result = $MsgBoxShow(Are you sure Title 4)

if ($result -eq Yes)

$MsgBoxShow(YES)

else

$MsgBoxShow(NO)

36101

37101

httpmsdnmicrosoftcomen-uslibraryhh921685aspx

httporchestratorcodeplexcomreleasesview87873

httporchestratorcodeplexcomreleasesview82959

38101

51f9b950-6e33-465d-bc77-4d33e61831ff

39101

-getparameters

40101

41101

42101

43101

整合其它系統 ndash Integration Packs

44101

1

2

45101

46101

bull TFS

bull PowerShell

bull SharePoint

bull Active Directory

bull Exchange Mail and

Calendaring

bull Local Security

bull Scheduled Tasks

bull Utilities

bull Social media (Twitter)

bull Text Manipulation

bull F5

bull VMWare

bull Configuration Manager

2007

bull 4 BMC IPs- Kelverion

bull Dell -AIM IP

bull NetApp- OCPM IP

bull Cisco- UCS IP

bull Cisco- NCM

JaxMPFyrsoft

bull Kelverion- DBs IP

bull Kelverion-ServiceNow IP

bull Kelverion-Data

Manipulation IP

bull Kelverion-HTTP

Applications IP

bull Vision Solutions-

DoubleTake IP

bull VMWare vSphere

bull IBM Tivoli Netcool

bull HP OM

bull HP SM

bull HP iLo

bull Active Directory

bull MS Exchange User

bull MS Exchange Admin

bull FTP

bull New features added to

VMWare vSphere

bull REST

bull SharePoint

bull Windows Azure

微軟 協力廠商 Codeplex 社群

47101

httpwwwmicrosoftcomen-usdownloaddetailsaspxid=39622

httptechnetmicrosoftcomen-uslibraryhh295851aspx

Codeplex社群 httporchestratorcodeplexcom

48101

49101

httpmsdnmicrosoftcomen-uslibraryhh855855aspx

很容易擴展的平臺

50101

很容易擴展的平臺

51101

52101

Runbook偵錯與事件記錄

53101

54101

55101

56101

57101

58101

ltruntimegt

ltgeneratePublisherEvidence enabled=falsegt

ltruntimegt

59101

aspt RunbookServer1 40

aspt 40

60101

Service Management Automation (SMA) 介紹

61101

Azure

監控系統

變動控制系統

其它

開發適用於 Azure 的 Runbook建立 Runbook 來自動化所有雲端的操作例如部署監控最佳化hellip

具備高可用性的引擎支援各種規模與高可用性以 PowerShell 工作流程為基礎獨立隔離的 Runbook工作

整合其它系統匯入 PowerShell 模組建立其它模組與 Runbook

連接到 Azure 服務或其它第三方系統

自動化

62101

httpgallerytechnetmicrosoftcomsystemcenterService-Management-fcd75828

63101

PowerShell 工

作流程

bull 使用Windows PowerShell 語法

bull 使用單一工作完成複雜需要面對面的

人工作業

bull 自動化錯誤復原

bull 連線與活動重試

集中式

儲存區

bull 身份資訊 憑證

bull 全域變數與連線

bull 模組

bull Runbooks (草稿與發佈)

bull 排程

高可用性

bull 多部 Runbook伺服器

bull OData Web Service

bull SQL Server 叢集 Always On

歷程分析

bull Runbook執行歷程

bull Excel PowerPivot 報表

bull Runbook使用狀況

PowerShell 工作流程

集中式儲存區

高可用性

歷程分析

Service Management Automation

(SMA)

64101

ODATA REST Web Service

Runbooks

Jobs

Modules amp Activies

Submit requests

Return results

Http RequestHttp Response

Persist State

Pick up Jobs

SQL DatabaseRunbook Workers

Service Management Portal

bull 撰寫

bull 操作

Service Management Portal

bull PowerShell 工作流程

bull PowerShell 模組

Runbook Workers

bull REST OData

bull 授權

Web Service

bull 管理

bull 操作

Powershell Cmdlets

bull Runbook資源

bull Runbook工作狀況

SMA Database

PowerShell

Module

HTTP

65101

整合 Orchestrator 與 SMA ndash混合雲環境

66101

整合

httpblogstechnetcomborchestratorarchive20140209service-management-automation-integration-with-orchestratoraspx

67101

68101

SMA 整合 PowerShell 與 OData

69101

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 21: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

21101

22101

23101

24101

通知 稽核

流程

錯誤處理

25101

26101

27101

28101

29101

2 定義迴圈結束條件

1 啓用迴圈

30101

31101

32101

撰寫指令碼

33101

34101

$p1 = aaa從 初始化資料

$p2 = bbb 從 初始化資料

$Session = New-PSSession -ComputerName SVR1

$ResultArray = Invoke-Command -Session $Session

-ArgumentList $p1 $p2 $p3 -ScriptBlock

Param ( $p1 $p2 $p3 )

要執行的指令Return (xxx yyy hellip)

Remove-PSSession -Session $Session

$data1 = ResultArray[0] 取得 xxx

$data2 = ResultArray[1] 取得 yyy

35101

[SystemReflectionAssembly]LoadWithPartialName(SystemWindowsForms)

$MsgBox = [SystemWindowsFormsMessageBox]

$MsgBoxShow(Hello World)

$result = $MsgBoxShow(Are you sure Title 4)

if ($result -eq Yes)

$MsgBoxShow(YES)

else

$MsgBoxShow(NO)

36101

37101

httpmsdnmicrosoftcomen-uslibraryhh921685aspx

httporchestratorcodeplexcomreleasesview87873

httporchestratorcodeplexcomreleasesview82959

38101

51f9b950-6e33-465d-bc77-4d33e61831ff

39101

-getparameters

40101

41101

42101

43101

整合其它系統 ndash Integration Packs

44101

1

2

45101

46101

bull TFS

bull PowerShell

bull SharePoint

bull Active Directory

bull Exchange Mail and

Calendaring

bull Local Security

bull Scheduled Tasks

bull Utilities

bull Social media (Twitter)

bull Text Manipulation

bull F5

bull VMWare

bull Configuration Manager

2007

bull 4 BMC IPs- Kelverion

bull Dell -AIM IP

bull NetApp- OCPM IP

bull Cisco- UCS IP

bull Cisco- NCM

JaxMPFyrsoft

bull Kelverion- DBs IP

bull Kelverion-ServiceNow IP

bull Kelverion-Data

Manipulation IP

bull Kelverion-HTTP

Applications IP

bull Vision Solutions-

DoubleTake IP

bull VMWare vSphere

bull IBM Tivoli Netcool

bull HP OM

bull HP SM

bull HP iLo

bull Active Directory

bull MS Exchange User

bull MS Exchange Admin

bull FTP

bull New features added to

VMWare vSphere

bull REST

bull SharePoint

bull Windows Azure

微軟 協力廠商 Codeplex 社群

47101

httpwwwmicrosoftcomen-usdownloaddetailsaspxid=39622

httptechnetmicrosoftcomen-uslibraryhh295851aspx

Codeplex社群 httporchestratorcodeplexcom

48101

49101

httpmsdnmicrosoftcomen-uslibraryhh855855aspx

很容易擴展的平臺

50101

很容易擴展的平臺

51101

52101

Runbook偵錯與事件記錄

53101

54101

55101

56101

57101

58101

ltruntimegt

ltgeneratePublisherEvidence enabled=falsegt

ltruntimegt

59101

aspt RunbookServer1 40

aspt 40

60101

Service Management Automation (SMA) 介紹

61101

Azure

監控系統

變動控制系統

其它

開發適用於 Azure 的 Runbook建立 Runbook 來自動化所有雲端的操作例如部署監控最佳化hellip

具備高可用性的引擎支援各種規模與高可用性以 PowerShell 工作流程為基礎獨立隔離的 Runbook工作

整合其它系統匯入 PowerShell 模組建立其它模組與 Runbook

連接到 Azure 服務或其它第三方系統

自動化

62101

httpgallerytechnetmicrosoftcomsystemcenterService-Management-fcd75828

63101

PowerShell 工

作流程

bull 使用Windows PowerShell 語法

bull 使用單一工作完成複雜需要面對面的

人工作業

bull 自動化錯誤復原

bull 連線與活動重試

集中式

儲存區

bull 身份資訊 憑證

bull 全域變數與連線

bull 模組

bull Runbooks (草稿與發佈)

bull 排程

高可用性

bull 多部 Runbook伺服器

bull OData Web Service

bull SQL Server 叢集 Always On

歷程分析

bull Runbook執行歷程

bull Excel PowerPivot 報表

bull Runbook使用狀況

PowerShell 工作流程

集中式儲存區

高可用性

歷程分析

Service Management Automation

(SMA)

64101

ODATA REST Web Service

Runbooks

Jobs

Modules amp Activies

Submit requests

Return results

Http RequestHttp Response

Persist State

Pick up Jobs

SQL DatabaseRunbook Workers

Service Management Portal

bull 撰寫

bull 操作

Service Management Portal

bull PowerShell 工作流程

bull PowerShell 模組

Runbook Workers

bull REST OData

bull 授權

Web Service

bull 管理

bull 操作

Powershell Cmdlets

bull Runbook資源

bull Runbook工作狀況

SMA Database

PowerShell

Module

HTTP

65101

整合 Orchestrator 與 SMA ndash混合雲環境

66101

整合

httpblogstechnetcomborchestratorarchive20140209service-management-automation-integration-with-orchestratoraspx

67101

68101

SMA 整合 PowerShell 與 OData

69101

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 22: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

22101

23101

24101

通知 稽核

流程

錯誤處理

25101

26101

27101

28101

29101

2 定義迴圈結束條件

1 啓用迴圈

30101

31101

32101

撰寫指令碼

33101

34101

$p1 = aaa從 初始化資料

$p2 = bbb 從 初始化資料

$Session = New-PSSession -ComputerName SVR1

$ResultArray = Invoke-Command -Session $Session

-ArgumentList $p1 $p2 $p3 -ScriptBlock

Param ( $p1 $p2 $p3 )

要執行的指令Return (xxx yyy hellip)

Remove-PSSession -Session $Session

$data1 = ResultArray[0] 取得 xxx

$data2 = ResultArray[1] 取得 yyy

35101

[SystemReflectionAssembly]LoadWithPartialName(SystemWindowsForms)

$MsgBox = [SystemWindowsFormsMessageBox]

$MsgBoxShow(Hello World)

$result = $MsgBoxShow(Are you sure Title 4)

if ($result -eq Yes)

$MsgBoxShow(YES)

else

$MsgBoxShow(NO)

36101

37101

httpmsdnmicrosoftcomen-uslibraryhh921685aspx

httporchestratorcodeplexcomreleasesview87873

httporchestratorcodeplexcomreleasesview82959

38101

51f9b950-6e33-465d-bc77-4d33e61831ff

39101

-getparameters

40101

41101

42101

43101

整合其它系統 ndash Integration Packs

44101

1

2

45101

46101

bull TFS

bull PowerShell

bull SharePoint

bull Active Directory

bull Exchange Mail and

Calendaring

bull Local Security

bull Scheduled Tasks

bull Utilities

bull Social media (Twitter)

bull Text Manipulation

bull F5

bull VMWare

bull Configuration Manager

2007

bull 4 BMC IPs- Kelverion

bull Dell -AIM IP

bull NetApp- OCPM IP

bull Cisco- UCS IP

bull Cisco- NCM

JaxMPFyrsoft

bull Kelverion- DBs IP

bull Kelverion-ServiceNow IP

bull Kelverion-Data

Manipulation IP

bull Kelverion-HTTP

Applications IP

bull Vision Solutions-

DoubleTake IP

bull VMWare vSphere

bull IBM Tivoli Netcool

bull HP OM

bull HP SM

bull HP iLo

bull Active Directory

bull MS Exchange User

bull MS Exchange Admin

bull FTP

bull New features added to

VMWare vSphere

bull REST

bull SharePoint

bull Windows Azure

微軟 協力廠商 Codeplex 社群

47101

httpwwwmicrosoftcomen-usdownloaddetailsaspxid=39622

httptechnetmicrosoftcomen-uslibraryhh295851aspx

Codeplex社群 httporchestratorcodeplexcom

48101

49101

httpmsdnmicrosoftcomen-uslibraryhh855855aspx

很容易擴展的平臺

50101

很容易擴展的平臺

51101

52101

Runbook偵錯與事件記錄

53101

54101

55101

56101

57101

58101

ltruntimegt

ltgeneratePublisherEvidence enabled=falsegt

ltruntimegt

59101

aspt RunbookServer1 40

aspt 40

60101

Service Management Automation (SMA) 介紹

61101

Azure

監控系統

變動控制系統

其它

開發適用於 Azure 的 Runbook建立 Runbook 來自動化所有雲端的操作例如部署監控最佳化hellip

具備高可用性的引擎支援各種規模與高可用性以 PowerShell 工作流程為基礎獨立隔離的 Runbook工作

整合其它系統匯入 PowerShell 模組建立其它模組與 Runbook

連接到 Azure 服務或其它第三方系統

自動化

62101

httpgallerytechnetmicrosoftcomsystemcenterService-Management-fcd75828

63101

PowerShell 工

作流程

bull 使用Windows PowerShell 語法

bull 使用單一工作完成複雜需要面對面的

人工作業

bull 自動化錯誤復原

bull 連線與活動重試

集中式

儲存區

bull 身份資訊 憑證

bull 全域變數與連線

bull 模組

bull Runbooks (草稿與發佈)

bull 排程

高可用性

bull 多部 Runbook伺服器

bull OData Web Service

bull SQL Server 叢集 Always On

歷程分析

bull Runbook執行歷程

bull Excel PowerPivot 報表

bull Runbook使用狀況

PowerShell 工作流程

集中式儲存區

高可用性

歷程分析

Service Management Automation

(SMA)

64101

ODATA REST Web Service

Runbooks

Jobs

Modules amp Activies

Submit requests

Return results

Http RequestHttp Response

Persist State

Pick up Jobs

SQL DatabaseRunbook Workers

Service Management Portal

bull 撰寫

bull 操作

Service Management Portal

bull PowerShell 工作流程

bull PowerShell 模組

Runbook Workers

bull REST OData

bull 授權

Web Service

bull 管理

bull 操作

Powershell Cmdlets

bull Runbook資源

bull Runbook工作狀況

SMA Database

PowerShell

Module

HTTP

65101

整合 Orchestrator 與 SMA ndash混合雲環境

66101

整合

httpblogstechnetcomborchestratorarchive20140209service-management-automation-integration-with-orchestratoraspx

67101

68101

SMA 整合 PowerShell 與 OData

69101

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 23: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

23101

24101

通知 稽核

流程

錯誤處理

25101

26101

27101

28101

29101

2 定義迴圈結束條件

1 啓用迴圈

30101

31101

32101

撰寫指令碼

33101

34101

$p1 = aaa從 初始化資料

$p2 = bbb 從 初始化資料

$Session = New-PSSession -ComputerName SVR1

$ResultArray = Invoke-Command -Session $Session

-ArgumentList $p1 $p2 $p3 -ScriptBlock

Param ( $p1 $p2 $p3 )

要執行的指令Return (xxx yyy hellip)

Remove-PSSession -Session $Session

$data1 = ResultArray[0] 取得 xxx

$data2 = ResultArray[1] 取得 yyy

35101

[SystemReflectionAssembly]LoadWithPartialName(SystemWindowsForms)

$MsgBox = [SystemWindowsFormsMessageBox]

$MsgBoxShow(Hello World)

$result = $MsgBoxShow(Are you sure Title 4)

if ($result -eq Yes)

$MsgBoxShow(YES)

else

$MsgBoxShow(NO)

36101

37101

httpmsdnmicrosoftcomen-uslibraryhh921685aspx

httporchestratorcodeplexcomreleasesview87873

httporchestratorcodeplexcomreleasesview82959

38101

51f9b950-6e33-465d-bc77-4d33e61831ff

39101

-getparameters

40101

41101

42101

43101

整合其它系統 ndash Integration Packs

44101

1

2

45101

46101

bull TFS

bull PowerShell

bull SharePoint

bull Active Directory

bull Exchange Mail and

Calendaring

bull Local Security

bull Scheduled Tasks

bull Utilities

bull Social media (Twitter)

bull Text Manipulation

bull F5

bull VMWare

bull Configuration Manager

2007

bull 4 BMC IPs- Kelverion

bull Dell -AIM IP

bull NetApp- OCPM IP

bull Cisco- UCS IP

bull Cisco- NCM

JaxMPFyrsoft

bull Kelverion- DBs IP

bull Kelverion-ServiceNow IP

bull Kelverion-Data

Manipulation IP

bull Kelverion-HTTP

Applications IP

bull Vision Solutions-

DoubleTake IP

bull VMWare vSphere

bull IBM Tivoli Netcool

bull HP OM

bull HP SM

bull HP iLo

bull Active Directory

bull MS Exchange User

bull MS Exchange Admin

bull FTP

bull New features added to

VMWare vSphere

bull REST

bull SharePoint

bull Windows Azure

微軟 協力廠商 Codeplex 社群

47101

httpwwwmicrosoftcomen-usdownloaddetailsaspxid=39622

httptechnetmicrosoftcomen-uslibraryhh295851aspx

Codeplex社群 httporchestratorcodeplexcom

48101

49101

httpmsdnmicrosoftcomen-uslibraryhh855855aspx

很容易擴展的平臺

50101

很容易擴展的平臺

51101

52101

Runbook偵錯與事件記錄

53101

54101

55101

56101

57101

58101

ltruntimegt

ltgeneratePublisherEvidence enabled=falsegt

ltruntimegt

59101

aspt RunbookServer1 40

aspt 40

60101

Service Management Automation (SMA) 介紹

61101

Azure

監控系統

變動控制系統

其它

開發適用於 Azure 的 Runbook建立 Runbook 來自動化所有雲端的操作例如部署監控最佳化hellip

具備高可用性的引擎支援各種規模與高可用性以 PowerShell 工作流程為基礎獨立隔離的 Runbook工作

整合其它系統匯入 PowerShell 模組建立其它模組與 Runbook

連接到 Azure 服務或其它第三方系統

自動化

62101

httpgallerytechnetmicrosoftcomsystemcenterService-Management-fcd75828

63101

PowerShell 工

作流程

bull 使用Windows PowerShell 語法

bull 使用單一工作完成複雜需要面對面的

人工作業

bull 自動化錯誤復原

bull 連線與活動重試

集中式

儲存區

bull 身份資訊 憑證

bull 全域變數與連線

bull 模組

bull Runbooks (草稿與發佈)

bull 排程

高可用性

bull 多部 Runbook伺服器

bull OData Web Service

bull SQL Server 叢集 Always On

歷程分析

bull Runbook執行歷程

bull Excel PowerPivot 報表

bull Runbook使用狀況

PowerShell 工作流程

集中式儲存區

高可用性

歷程分析

Service Management Automation

(SMA)

64101

ODATA REST Web Service

Runbooks

Jobs

Modules amp Activies

Submit requests

Return results

Http RequestHttp Response

Persist State

Pick up Jobs

SQL DatabaseRunbook Workers

Service Management Portal

bull 撰寫

bull 操作

Service Management Portal

bull PowerShell 工作流程

bull PowerShell 模組

Runbook Workers

bull REST OData

bull 授權

Web Service

bull 管理

bull 操作

Powershell Cmdlets

bull Runbook資源

bull Runbook工作狀況

SMA Database

PowerShell

Module

HTTP

65101

整合 Orchestrator 與 SMA ndash混合雲環境

66101

整合

httpblogstechnetcomborchestratorarchive20140209service-management-automation-integration-with-orchestratoraspx

67101

68101

SMA 整合 PowerShell 與 OData

69101

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 24: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

24101

通知 稽核

流程

錯誤處理

25101

26101

27101

28101

29101

2 定義迴圈結束條件

1 啓用迴圈

30101

31101

32101

撰寫指令碼

33101

34101

$p1 = aaa從 初始化資料

$p2 = bbb 從 初始化資料

$Session = New-PSSession -ComputerName SVR1

$ResultArray = Invoke-Command -Session $Session

-ArgumentList $p1 $p2 $p3 -ScriptBlock

Param ( $p1 $p2 $p3 )

要執行的指令Return (xxx yyy hellip)

Remove-PSSession -Session $Session

$data1 = ResultArray[0] 取得 xxx

$data2 = ResultArray[1] 取得 yyy

35101

[SystemReflectionAssembly]LoadWithPartialName(SystemWindowsForms)

$MsgBox = [SystemWindowsFormsMessageBox]

$MsgBoxShow(Hello World)

$result = $MsgBoxShow(Are you sure Title 4)

if ($result -eq Yes)

$MsgBoxShow(YES)

else

$MsgBoxShow(NO)

36101

37101

httpmsdnmicrosoftcomen-uslibraryhh921685aspx

httporchestratorcodeplexcomreleasesview87873

httporchestratorcodeplexcomreleasesview82959

38101

51f9b950-6e33-465d-bc77-4d33e61831ff

39101

-getparameters

40101

41101

42101

43101

整合其它系統 ndash Integration Packs

44101

1

2

45101

46101

bull TFS

bull PowerShell

bull SharePoint

bull Active Directory

bull Exchange Mail and

Calendaring

bull Local Security

bull Scheduled Tasks

bull Utilities

bull Social media (Twitter)

bull Text Manipulation

bull F5

bull VMWare

bull Configuration Manager

2007

bull 4 BMC IPs- Kelverion

bull Dell -AIM IP

bull NetApp- OCPM IP

bull Cisco- UCS IP

bull Cisco- NCM

JaxMPFyrsoft

bull Kelverion- DBs IP

bull Kelverion-ServiceNow IP

bull Kelverion-Data

Manipulation IP

bull Kelverion-HTTP

Applications IP

bull Vision Solutions-

DoubleTake IP

bull VMWare vSphere

bull IBM Tivoli Netcool

bull HP OM

bull HP SM

bull HP iLo

bull Active Directory

bull MS Exchange User

bull MS Exchange Admin

bull FTP

bull New features added to

VMWare vSphere

bull REST

bull SharePoint

bull Windows Azure

微軟 協力廠商 Codeplex 社群

47101

httpwwwmicrosoftcomen-usdownloaddetailsaspxid=39622

httptechnetmicrosoftcomen-uslibraryhh295851aspx

Codeplex社群 httporchestratorcodeplexcom

48101

49101

httpmsdnmicrosoftcomen-uslibraryhh855855aspx

很容易擴展的平臺

50101

很容易擴展的平臺

51101

52101

Runbook偵錯與事件記錄

53101

54101

55101

56101

57101

58101

ltruntimegt

ltgeneratePublisherEvidence enabled=falsegt

ltruntimegt

59101

aspt RunbookServer1 40

aspt 40

60101

Service Management Automation (SMA) 介紹

61101

Azure

監控系統

變動控制系統

其它

開發適用於 Azure 的 Runbook建立 Runbook 來自動化所有雲端的操作例如部署監控最佳化hellip

具備高可用性的引擎支援各種規模與高可用性以 PowerShell 工作流程為基礎獨立隔離的 Runbook工作

整合其它系統匯入 PowerShell 模組建立其它模組與 Runbook

連接到 Azure 服務或其它第三方系統

自動化

62101

httpgallerytechnetmicrosoftcomsystemcenterService-Management-fcd75828

63101

PowerShell 工

作流程

bull 使用Windows PowerShell 語法

bull 使用單一工作完成複雜需要面對面的

人工作業

bull 自動化錯誤復原

bull 連線與活動重試

集中式

儲存區

bull 身份資訊 憑證

bull 全域變數與連線

bull 模組

bull Runbooks (草稿與發佈)

bull 排程

高可用性

bull 多部 Runbook伺服器

bull OData Web Service

bull SQL Server 叢集 Always On

歷程分析

bull Runbook執行歷程

bull Excel PowerPivot 報表

bull Runbook使用狀況

PowerShell 工作流程

集中式儲存區

高可用性

歷程分析

Service Management Automation

(SMA)

64101

ODATA REST Web Service

Runbooks

Jobs

Modules amp Activies

Submit requests

Return results

Http RequestHttp Response

Persist State

Pick up Jobs

SQL DatabaseRunbook Workers

Service Management Portal

bull 撰寫

bull 操作

Service Management Portal

bull PowerShell 工作流程

bull PowerShell 模組

Runbook Workers

bull REST OData

bull 授權

Web Service

bull 管理

bull 操作

Powershell Cmdlets

bull Runbook資源

bull Runbook工作狀況

SMA Database

PowerShell

Module

HTTP

65101

整合 Orchestrator 與 SMA ndash混合雲環境

66101

整合

httpblogstechnetcomborchestratorarchive20140209service-management-automation-integration-with-orchestratoraspx

67101

68101

SMA 整合 PowerShell 與 OData

69101

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 25: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

25101

26101

27101

28101

29101

2 定義迴圈結束條件

1 啓用迴圈

30101

31101

32101

撰寫指令碼

33101

34101

$p1 = aaa從 初始化資料

$p2 = bbb 從 初始化資料

$Session = New-PSSession -ComputerName SVR1

$ResultArray = Invoke-Command -Session $Session

-ArgumentList $p1 $p2 $p3 -ScriptBlock

Param ( $p1 $p2 $p3 )

要執行的指令Return (xxx yyy hellip)

Remove-PSSession -Session $Session

$data1 = ResultArray[0] 取得 xxx

$data2 = ResultArray[1] 取得 yyy

35101

[SystemReflectionAssembly]LoadWithPartialName(SystemWindowsForms)

$MsgBox = [SystemWindowsFormsMessageBox]

$MsgBoxShow(Hello World)

$result = $MsgBoxShow(Are you sure Title 4)

if ($result -eq Yes)

$MsgBoxShow(YES)

else

$MsgBoxShow(NO)

36101

37101

httpmsdnmicrosoftcomen-uslibraryhh921685aspx

httporchestratorcodeplexcomreleasesview87873

httporchestratorcodeplexcomreleasesview82959

38101

51f9b950-6e33-465d-bc77-4d33e61831ff

39101

-getparameters

40101

41101

42101

43101

整合其它系統 ndash Integration Packs

44101

1

2

45101

46101

bull TFS

bull PowerShell

bull SharePoint

bull Active Directory

bull Exchange Mail and

Calendaring

bull Local Security

bull Scheduled Tasks

bull Utilities

bull Social media (Twitter)

bull Text Manipulation

bull F5

bull VMWare

bull Configuration Manager

2007

bull 4 BMC IPs- Kelverion

bull Dell -AIM IP

bull NetApp- OCPM IP

bull Cisco- UCS IP

bull Cisco- NCM

JaxMPFyrsoft

bull Kelverion- DBs IP

bull Kelverion-ServiceNow IP

bull Kelverion-Data

Manipulation IP

bull Kelverion-HTTP

Applications IP

bull Vision Solutions-

DoubleTake IP

bull VMWare vSphere

bull IBM Tivoli Netcool

bull HP OM

bull HP SM

bull HP iLo

bull Active Directory

bull MS Exchange User

bull MS Exchange Admin

bull FTP

bull New features added to

VMWare vSphere

bull REST

bull SharePoint

bull Windows Azure

微軟 協力廠商 Codeplex 社群

47101

httpwwwmicrosoftcomen-usdownloaddetailsaspxid=39622

httptechnetmicrosoftcomen-uslibraryhh295851aspx

Codeplex社群 httporchestratorcodeplexcom

48101

49101

httpmsdnmicrosoftcomen-uslibraryhh855855aspx

很容易擴展的平臺

50101

很容易擴展的平臺

51101

52101

Runbook偵錯與事件記錄

53101

54101

55101

56101

57101

58101

ltruntimegt

ltgeneratePublisherEvidence enabled=falsegt

ltruntimegt

59101

aspt RunbookServer1 40

aspt 40

60101

Service Management Automation (SMA) 介紹

61101

Azure

監控系統

變動控制系統

其它

開發適用於 Azure 的 Runbook建立 Runbook 來自動化所有雲端的操作例如部署監控最佳化hellip

具備高可用性的引擎支援各種規模與高可用性以 PowerShell 工作流程為基礎獨立隔離的 Runbook工作

整合其它系統匯入 PowerShell 模組建立其它模組與 Runbook

連接到 Azure 服務或其它第三方系統

自動化

62101

httpgallerytechnetmicrosoftcomsystemcenterService-Management-fcd75828

63101

PowerShell 工

作流程

bull 使用Windows PowerShell 語法

bull 使用單一工作完成複雜需要面對面的

人工作業

bull 自動化錯誤復原

bull 連線與活動重試

集中式

儲存區

bull 身份資訊 憑證

bull 全域變數與連線

bull 模組

bull Runbooks (草稿與發佈)

bull 排程

高可用性

bull 多部 Runbook伺服器

bull OData Web Service

bull SQL Server 叢集 Always On

歷程分析

bull Runbook執行歷程

bull Excel PowerPivot 報表

bull Runbook使用狀況

PowerShell 工作流程

集中式儲存區

高可用性

歷程分析

Service Management Automation

(SMA)

64101

ODATA REST Web Service

Runbooks

Jobs

Modules amp Activies

Submit requests

Return results

Http RequestHttp Response

Persist State

Pick up Jobs

SQL DatabaseRunbook Workers

Service Management Portal

bull 撰寫

bull 操作

Service Management Portal

bull PowerShell 工作流程

bull PowerShell 模組

Runbook Workers

bull REST OData

bull 授權

Web Service

bull 管理

bull 操作

Powershell Cmdlets

bull Runbook資源

bull Runbook工作狀況

SMA Database

PowerShell

Module

HTTP

65101

整合 Orchestrator 與 SMA ndash混合雲環境

66101

整合

httpblogstechnetcomborchestratorarchive20140209service-management-automation-integration-with-orchestratoraspx

67101

68101

SMA 整合 PowerShell 與 OData

69101

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 26: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

26101

27101

28101

29101

2 定義迴圈結束條件

1 啓用迴圈

30101

31101

32101

撰寫指令碼

33101

34101

$p1 = aaa從 初始化資料

$p2 = bbb 從 初始化資料

$Session = New-PSSession -ComputerName SVR1

$ResultArray = Invoke-Command -Session $Session

-ArgumentList $p1 $p2 $p3 -ScriptBlock

Param ( $p1 $p2 $p3 )

要執行的指令Return (xxx yyy hellip)

Remove-PSSession -Session $Session

$data1 = ResultArray[0] 取得 xxx

$data2 = ResultArray[1] 取得 yyy

35101

[SystemReflectionAssembly]LoadWithPartialName(SystemWindowsForms)

$MsgBox = [SystemWindowsFormsMessageBox]

$MsgBoxShow(Hello World)

$result = $MsgBoxShow(Are you sure Title 4)

if ($result -eq Yes)

$MsgBoxShow(YES)

else

$MsgBoxShow(NO)

36101

37101

httpmsdnmicrosoftcomen-uslibraryhh921685aspx

httporchestratorcodeplexcomreleasesview87873

httporchestratorcodeplexcomreleasesview82959

38101

51f9b950-6e33-465d-bc77-4d33e61831ff

39101

-getparameters

40101

41101

42101

43101

整合其它系統 ndash Integration Packs

44101

1

2

45101

46101

bull TFS

bull PowerShell

bull SharePoint

bull Active Directory

bull Exchange Mail and

Calendaring

bull Local Security

bull Scheduled Tasks

bull Utilities

bull Social media (Twitter)

bull Text Manipulation

bull F5

bull VMWare

bull Configuration Manager

2007

bull 4 BMC IPs- Kelverion

bull Dell -AIM IP

bull NetApp- OCPM IP

bull Cisco- UCS IP

bull Cisco- NCM

JaxMPFyrsoft

bull Kelverion- DBs IP

bull Kelverion-ServiceNow IP

bull Kelverion-Data

Manipulation IP

bull Kelverion-HTTP

Applications IP

bull Vision Solutions-

DoubleTake IP

bull VMWare vSphere

bull IBM Tivoli Netcool

bull HP OM

bull HP SM

bull HP iLo

bull Active Directory

bull MS Exchange User

bull MS Exchange Admin

bull FTP

bull New features added to

VMWare vSphere

bull REST

bull SharePoint

bull Windows Azure

微軟 協力廠商 Codeplex 社群

47101

httpwwwmicrosoftcomen-usdownloaddetailsaspxid=39622

httptechnetmicrosoftcomen-uslibraryhh295851aspx

Codeplex社群 httporchestratorcodeplexcom

48101

49101

httpmsdnmicrosoftcomen-uslibraryhh855855aspx

很容易擴展的平臺

50101

很容易擴展的平臺

51101

52101

Runbook偵錯與事件記錄

53101

54101

55101

56101

57101

58101

ltruntimegt

ltgeneratePublisherEvidence enabled=falsegt

ltruntimegt

59101

aspt RunbookServer1 40

aspt 40

60101

Service Management Automation (SMA) 介紹

61101

Azure

監控系統

變動控制系統

其它

開發適用於 Azure 的 Runbook建立 Runbook 來自動化所有雲端的操作例如部署監控最佳化hellip

具備高可用性的引擎支援各種規模與高可用性以 PowerShell 工作流程為基礎獨立隔離的 Runbook工作

整合其它系統匯入 PowerShell 模組建立其它模組與 Runbook

連接到 Azure 服務或其它第三方系統

自動化

62101

httpgallerytechnetmicrosoftcomsystemcenterService-Management-fcd75828

63101

PowerShell 工

作流程

bull 使用Windows PowerShell 語法

bull 使用單一工作完成複雜需要面對面的

人工作業

bull 自動化錯誤復原

bull 連線與活動重試

集中式

儲存區

bull 身份資訊 憑證

bull 全域變數與連線

bull 模組

bull Runbooks (草稿與發佈)

bull 排程

高可用性

bull 多部 Runbook伺服器

bull OData Web Service

bull SQL Server 叢集 Always On

歷程分析

bull Runbook執行歷程

bull Excel PowerPivot 報表

bull Runbook使用狀況

PowerShell 工作流程

集中式儲存區

高可用性

歷程分析

Service Management Automation

(SMA)

64101

ODATA REST Web Service

Runbooks

Jobs

Modules amp Activies

Submit requests

Return results

Http RequestHttp Response

Persist State

Pick up Jobs

SQL DatabaseRunbook Workers

Service Management Portal

bull 撰寫

bull 操作

Service Management Portal

bull PowerShell 工作流程

bull PowerShell 模組

Runbook Workers

bull REST OData

bull 授權

Web Service

bull 管理

bull 操作

Powershell Cmdlets

bull Runbook資源

bull Runbook工作狀況

SMA Database

PowerShell

Module

HTTP

65101

整合 Orchestrator 與 SMA ndash混合雲環境

66101

整合

httpblogstechnetcomborchestratorarchive20140209service-management-automation-integration-with-orchestratoraspx

67101

68101

SMA 整合 PowerShell 與 OData

69101

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 27: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

27101

28101

29101

2 定義迴圈結束條件

1 啓用迴圈

30101

31101

32101

撰寫指令碼

33101

34101

$p1 = aaa從 初始化資料

$p2 = bbb 從 初始化資料

$Session = New-PSSession -ComputerName SVR1

$ResultArray = Invoke-Command -Session $Session

-ArgumentList $p1 $p2 $p3 -ScriptBlock

Param ( $p1 $p2 $p3 )

要執行的指令Return (xxx yyy hellip)

Remove-PSSession -Session $Session

$data1 = ResultArray[0] 取得 xxx

$data2 = ResultArray[1] 取得 yyy

35101

[SystemReflectionAssembly]LoadWithPartialName(SystemWindowsForms)

$MsgBox = [SystemWindowsFormsMessageBox]

$MsgBoxShow(Hello World)

$result = $MsgBoxShow(Are you sure Title 4)

if ($result -eq Yes)

$MsgBoxShow(YES)

else

$MsgBoxShow(NO)

36101

37101

httpmsdnmicrosoftcomen-uslibraryhh921685aspx

httporchestratorcodeplexcomreleasesview87873

httporchestratorcodeplexcomreleasesview82959

38101

51f9b950-6e33-465d-bc77-4d33e61831ff

39101

-getparameters

40101

41101

42101

43101

整合其它系統 ndash Integration Packs

44101

1

2

45101

46101

bull TFS

bull PowerShell

bull SharePoint

bull Active Directory

bull Exchange Mail and

Calendaring

bull Local Security

bull Scheduled Tasks

bull Utilities

bull Social media (Twitter)

bull Text Manipulation

bull F5

bull VMWare

bull Configuration Manager

2007

bull 4 BMC IPs- Kelverion

bull Dell -AIM IP

bull NetApp- OCPM IP

bull Cisco- UCS IP

bull Cisco- NCM

JaxMPFyrsoft

bull Kelverion- DBs IP

bull Kelverion-ServiceNow IP

bull Kelverion-Data

Manipulation IP

bull Kelverion-HTTP

Applications IP

bull Vision Solutions-

DoubleTake IP

bull VMWare vSphere

bull IBM Tivoli Netcool

bull HP OM

bull HP SM

bull HP iLo

bull Active Directory

bull MS Exchange User

bull MS Exchange Admin

bull FTP

bull New features added to

VMWare vSphere

bull REST

bull SharePoint

bull Windows Azure

微軟 協力廠商 Codeplex 社群

47101

httpwwwmicrosoftcomen-usdownloaddetailsaspxid=39622

httptechnetmicrosoftcomen-uslibraryhh295851aspx

Codeplex社群 httporchestratorcodeplexcom

48101

49101

httpmsdnmicrosoftcomen-uslibraryhh855855aspx

很容易擴展的平臺

50101

很容易擴展的平臺

51101

52101

Runbook偵錯與事件記錄

53101

54101

55101

56101

57101

58101

ltruntimegt

ltgeneratePublisherEvidence enabled=falsegt

ltruntimegt

59101

aspt RunbookServer1 40

aspt 40

60101

Service Management Automation (SMA) 介紹

61101

Azure

監控系統

變動控制系統

其它

開發適用於 Azure 的 Runbook建立 Runbook 來自動化所有雲端的操作例如部署監控最佳化hellip

具備高可用性的引擎支援各種規模與高可用性以 PowerShell 工作流程為基礎獨立隔離的 Runbook工作

整合其它系統匯入 PowerShell 模組建立其它模組與 Runbook

連接到 Azure 服務或其它第三方系統

自動化

62101

httpgallerytechnetmicrosoftcomsystemcenterService-Management-fcd75828

63101

PowerShell 工

作流程

bull 使用Windows PowerShell 語法

bull 使用單一工作完成複雜需要面對面的

人工作業

bull 自動化錯誤復原

bull 連線與活動重試

集中式

儲存區

bull 身份資訊 憑證

bull 全域變數與連線

bull 模組

bull Runbooks (草稿與發佈)

bull 排程

高可用性

bull 多部 Runbook伺服器

bull OData Web Service

bull SQL Server 叢集 Always On

歷程分析

bull Runbook執行歷程

bull Excel PowerPivot 報表

bull Runbook使用狀況

PowerShell 工作流程

集中式儲存區

高可用性

歷程分析

Service Management Automation

(SMA)

64101

ODATA REST Web Service

Runbooks

Jobs

Modules amp Activies

Submit requests

Return results

Http RequestHttp Response

Persist State

Pick up Jobs

SQL DatabaseRunbook Workers

Service Management Portal

bull 撰寫

bull 操作

Service Management Portal

bull PowerShell 工作流程

bull PowerShell 模組

Runbook Workers

bull REST OData

bull 授權

Web Service

bull 管理

bull 操作

Powershell Cmdlets

bull Runbook資源

bull Runbook工作狀況

SMA Database

PowerShell

Module

HTTP

65101

整合 Orchestrator 與 SMA ndash混合雲環境

66101

整合

httpblogstechnetcomborchestratorarchive20140209service-management-automation-integration-with-orchestratoraspx

67101

68101

SMA 整合 PowerShell 與 OData

69101

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 28: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

28101

29101

2 定義迴圈結束條件

1 啓用迴圈

30101

31101

32101

撰寫指令碼

33101

34101

$p1 = aaa從 初始化資料

$p2 = bbb 從 初始化資料

$Session = New-PSSession -ComputerName SVR1

$ResultArray = Invoke-Command -Session $Session

-ArgumentList $p1 $p2 $p3 -ScriptBlock

Param ( $p1 $p2 $p3 )

要執行的指令Return (xxx yyy hellip)

Remove-PSSession -Session $Session

$data1 = ResultArray[0] 取得 xxx

$data2 = ResultArray[1] 取得 yyy

35101

[SystemReflectionAssembly]LoadWithPartialName(SystemWindowsForms)

$MsgBox = [SystemWindowsFormsMessageBox]

$MsgBoxShow(Hello World)

$result = $MsgBoxShow(Are you sure Title 4)

if ($result -eq Yes)

$MsgBoxShow(YES)

else

$MsgBoxShow(NO)

36101

37101

httpmsdnmicrosoftcomen-uslibraryhh921685aspx

httporchestratorcodeplexcomreleasesview87873

httporchestratorcodeplexcomreleasesview82959

38101

51f9b950-6e33-465d-bc77-4d33e61831ff

39101

-getparameters

40101

41101

42101

43101

整合其它系統 ndash Integration Packs

44101

1

2

45101

46101

bull TFS

bull PowerShell

bull SharePoint

bull Active Directory

bull Exchange Mail and

Calendaring

bull Local Security

bull Scheduled Tasks

bull Utilities

bull Social media (Twitter)

bull Text Manipulation

bull F5

bull VMWare

bull Configuration Manager

2007

bull 4 BMC IPs- Kelverion

bull Dell -AIM IP

bull NetApp- OCPM IP

bull Cisco- UCS IP

bull Cisco- NCM

JaxMPFyrsoft

bull Kelverion- DBs IP

bull Kelverion-ServiceNow IP

bull Kelverion-Data

Manipulation IP

bull Kelverion-HTTP

Applications IP

bull Vision Solutions-

DoubleTake IP

bull VMWare vSphere

bull IBM Tivoli Netcool

bull HP OM

bull HP SM

bull HP iLo

bull Active Directory

bull MS Exchange User

bull MS Exchange Admin

bull FTP

bull New features added to

VMWare vSphere

bull REST

bull SharePoint

bull Windows Azure

微軟 協力廠商 Codeplex 社群

47101

httpwwwmicrosoftcomen-usdownloaddetailsaspxid=39622

httptechnetmicrosoftcomen-uslibraryhh295851aspx

Codeplex社群 httporchestratorcodeplexcom

48101

49101

httpmsdnmicrosoftcomen-uslibraryhh855855aspx

很容易擴展的平臺

50101

很容易擴展的平臺

51101

52101

Runbook偵錯與事件記錄

53101

54101

55101

56101

57101

58101

ltruntimegt

ltgeneratePublisherEvidence enabled=falsegt

ltruntimegt

59101

aspt RunbookServer1 40

aspt 40

60101

Service Management Automation (SMA) 介紹

61101

Azure

監控系統

變動控制系統

其它

開發適用於 Azure 的 Runbook建立 Runbook 來自動化所有雲端的操作例如部署監控最佳化hellip

具備高可用性的引擎支援各種規模與高可用性以 PowerShell 工作流程為基礎獨立隔離的 Runbook工作

整合其它系統匯入 PowerShell 模組建立其它模組與 Runbook

連接到 Azure 服務或其它第三方系統

自動化

62101

httpgallerytechnetmicrosoftcomsystemcenterService-Management-fcd75828

63101

PowerShell 工

作流程

bull 使用Windows PowerShell 語法

bull 使用單一工作完成複雜需要面對面的

人工作業

bull 自動化錯誤復原

bull 連線與活動重試

集中式

儲存區

bull 身份資訊 憑證

bull 全域變數與連線

bull 模組

bull Runbooks (草稿與發佈)

bull 排程

高可用性

bull 多部 Runbook伺服器

bull OData Web Service

bull SQL Server 叢集 Always On

歷程分析

bull Runbook執行歷程

bull Excel PowerPivot 報表

bull Runbook使用狀況

PowerShell 工作流程

集中式儲存區

高可用性

歷程分析

Service Management Automation

(SMA)

64101

ODATA REST Web Service

Runbooks

Jobs

Modules amp Activies

Submit requests

Return results

Http RequestHttp Response

Persist State

Pick up Jobs

SQL DatabaseRunbook Workers

Service Management Portal

bull 撰寫

bull 操作

Service Management Portal

bull PowerShell 工作流程

bull PowerShell 模組

Runbook Workers

bull REST OData

bull 授權

Web Service

bull 管理

bull 操作

Powershell Cmdlets

bull Runbook資源

bull Runbook工作狀況

SMA Database

PowerShell

Module

HTTP

65101

整合 Orchestrator 與 SMA ndash混合雲環境

66101

整合

httpblogstechnetcomborchestratorarchive20140209service-management-automation-integration-with-orchestratoraspx

67101

68101

SMA 整合 PowerShell 與 OData

69101

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 29: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

29101

2 定義迴圈結束條件

1 啓用迴圈

30101

31101

32101

撰寫指令碼

33101

34101

$p1 = aaa從 初始化資料

$p2 = bbb 從 初始化資料

$Session = New-PSSession -ComputerName SVR1

$ResultArray = Invoke-Command -Session $Session

-ArgumentList $p1 $p2 $p3 -ScriptBlock

Param ( $p1 $p2 $p3 )

要執行的指令Return (xxx yyy hellip)

Remove-PSSession -Session $Session

$data1 = ResultArray[0] 取得 xxx

$data2 = ResultArray[1] 取得 yyy

35101

[SystemReflectionAssembly]LoadWithPartialName(SystemWindowsForms)

$MsgBox = [SystemWindowsFormsMessageBox]

$MsgBoxShow(Hello World)

$result = $MsgBoxShow(Are you sure Title 4)

if ($result -eq Yes)

$MsgBoxShow(YES)

else

$MsgBoxShow(NO)

36101

37101

httpmsdnmicrosoftcomen-uslibraryhh921685aspx

httporchestratorcodeplexcomreleasesview87873

httporchestratorcodeplexcomreleasesview82959

38101

51f9b950-6e33-465d-bc77-4d33e61831ff

39101

-getparameters

40101

41101

42101

43101

整合其它系統 ndash Integration Packs

44101

1

2

45101

46101

bull TFS

bull PowerShell

bull SharePoint

bull Active Directory

bull Exchange Mail and

Calendaring

bull Local Security

bull Scheduled Tasks

bull Utilities

bull Social media (Twitter)

bull Text Manipulation

bull F5

bull VMWare

bull Configuration Manager

2007

bull 4 BMC IPs- Kelverion

bull Dell -AIM IP

bull NetApp- OCPM IP

bull Cisco- UCS IP

bull Cisco- NCM

JaxMPFyrsoft

bull Kelverion- DBs IP

bull Kelverion-ServiceNow IP

bull Kelverion-Data

Manipulation IP

bull Kelverion-HTTP

Applications IP

bull Vision Solutions-

DoubleTake IP

bull VMWare vSphere

bull IBM Tivoli Netcool

bull HP OM

bull HP SM

bull HP iLo

bull Active Directory

bull MS Exchange User

bull MS Exchange Admin

bull FTP

bull New features added to

VMWare vSphere

bull REST

bull SharePoint

bull Windows Azure

微軟 協力廠商 Codeplex 社群

47101

httpwwwmicrosoftcomen-usdownloaddetailsaspxid=39622

httptechnetmicrosoftcomen-uslibraryhh295851aspx

Codeplex社群 httporchestratorcodeplexcom

48101

49101

httpmsdnmicrosoftcomen-uslibraryhh855855aspx

很容易擴展的平臺

50101

很容易擴展的平臺

51101

52101

Runbook偵錯與事件記錄

53101

54101

55101

56101

57101

58101

ltruntimegt

ltgeneratePublisherEvidence enabled=falsegt

ltruntimegt

59101

aspt RunbookServer1 40

aspt 40

60101

Service Management Automation (SMA) 介紹

61101

Azure

監控系統

變動控制系統

其它

開發適用於 Azure 的 Runbook建立 Runbook 來自動化所有雲端的操作例如部署監控最佳化hellip

具備高可用性的引擎支援各種規模與高可用性以 PowerShell 工作流程為基礎獨立隔離的 Runbook工作

整合其它系統匯入 PowerShell 模組建立其它模組與 Runbook

連接到 Azure 服務或其它第三方系統

自動化

62101

httpgallerytechnetmicrosoftcomsystemcenterService-Management-fcd75828

63101

PowerShell 工

作流程

bull 使用Windows PowerShell 語法

bull 使用單一工作完成複雜需要面對面的

人工作業

bull 自動化錯誤復原

bull 連線與活動重試

集中式

儲存區

bull 身份資訊 憑證

bull 全域變數與連線

bull 模組

bull Runbooks (草稿與發佈)

bull 排程

高可用性

bull 多部 Runbook伺服器

bull OData Web Service

bull SQL Server 叢集 Always On

歷程分析

bull Runbook執行歷程

bull Excel PowerPivot 報表

bull Runbook使用狀況

PowerShell 工作流程

集中式儲存區

高可用性

歷程分析

Service Management Automation

(SMA)

64101

ODATA REST Web Service

Runbooks

Jobs

Modules amp Activies

Submit requests

Return results

Http RequestHttp Response

Persist State

Pick up Jobs

SQL DatabaseRunbook Workers

Service Management Portal

bull 撰寫

bull 操作

Service Management Portal

bull PowerShell 工作流程

bull PowerShell 模組

Runbook Workers

bull REST OData

bull 授權

Web Service

bull 管理

bull 操作

Powershell Cmdlets

bull Runbook資源

bull Runbook工作狀況

SMA Database

PowerShell

Module

HTTP

65101

整合 Orchestrator 與 SMA ndash混合雲環境

66101

整合

httpblogstechnetcomborchestratorarchive20140209service-management-automation-integration-with-orchestratoraspx

67101

68101

SMA 整合 PowerShell 與 OData

69101

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 30: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

30101

31101

32101

撰寫指令碼

33101

34101

$p1 = aaa從 初始化資料

$p2 = bbb 從 初始化資料

$Session = New-PSSession -ComputerName SVR1

$ResultArray = Invoke-Command -Session $Session

-ArgumentList $p1 $p2 $p3 -ScriptBlock

Param ( $p1 $p2 $p3 )

要執行的指令Return (xxx yyy hellip)

Remove-PSSession -Session $Session

$data1 = ResultArray[0] 取得 xxx

$data2 = ResultArray[1] 取得 yyy

35101

[SystemReflectionAssembly]LoadWithPartialName(SystemWindowsForms)

$MsgBox = [SystemWindowsFormsMessageBox]

$MsgBoxShow(Hello World)

$result = $MsgBoxShow(Are you sure Title 4)

if ($result -eq Yes)

$MsgBoxShow(YES)

else

$MsgBoxShow(NO)

36101

37101

httpmsdnmicrosoftcomen-uslibraryhh921685aspx

httporchestratorcodeplexcomreleasesview87873

httporchestratorcodeplexcomreleasesview82959

38101

51f9b950-6e33-465d-bc77-4d33e61831ff

39101

-getparameters

40101

41101

42101

43101

整合其它系統 ndash Integration Packs

44101

1

2

45101

46101

bull TFS

bull PowerShell

bull SharePoint

bull Active Directory

bull Exchange Mail and

Calendaring

bull Local Security

bull Scheduled Tasks

bull Utilities

bull Social media (Twitter)

bull Text Manipulation

bull F5

bull VMWare

bull Configuration Manager

2007

bull 4 BMC IPs- Kelverion

bull Dell -AIM IP

bull NetApp- OCPM IP

bull Cisco- UCS IP

bull Cisco- NCM

JaxMPFyrsoft

bull Kelverion- DBs IP

bull Kelverion-ServiceNow IP

bull Kelverion-Data

Manipulation IP

bull Kelverion-HTTP

Applications IP

bull Vision Solutions-

DoubleTake IP

bull VMWare vSphere

bull IBM Tivoli Netcool

bull HP OM

bull HP SM

bull HP iLo

bull Active Directory

bull MS Exchange User

bull MS Exchange Admin

bull FTP

bull New features added to

VMWare vSphere

bull REST

bull SharePoint

bull Windows Azure

微軟 協力廠商 Codeplex 社群

47101

httpwwwmicrosoftcomen-usdownloaddetailsaspxid=39622

httptechnetmicrosoftcomen-uslibraryhh295851aspx

Codeplex社群 httporchestratorcodeplexcom

48101

49101

httpmsdnmicrosoftcomen-uslibraryhh855855aspx

很容易擴展的平臺

50101

很容易擴展的平臺

51101

52101

Runbook偵錯與事件記錄

53101

54101

55101

56101

57101

58101

ltruntimegt

ltgeneratePublisherEvidence enabled=falsegt

ltruntimegt

59101

aspt RunbookServer1 40

aspt 40

60101

Service Management Automation (SMA) 介紹

61101

Azure

監控系統

變動控制系統

其它

開發適用於 Azure 的 Runbook建立 Runbook 來自動化所有雲端的操作例如部署監控最佳化hellip

具備高可用性的引擎支援各種規模與高可用性以 PowerShell 工作流程為基礎獨立隔離的 Runbook工作

整合其它系統匯入 PowerShell 模組建立其它模組與 Runbook

連接到 Azure 服務或其它第三方系統

自動化

62101

httpgallerytechnetmicrosoftcomsystemcenterService-Management-fcd75828

63101

PowerShell 工

作流程

bull 使用Windows PowerShell 語法

bull 使用單一工作完成複雜需要面對面的

人工作業

bull 自動化錯誤復原

bull 連線與活動重試

集中式

儲存區

bull 身份資訊 憑證

bull 全域變數與連線

bull 模組

bull Runbooks (草稿與發佈)

bull 排程

高可用性

bull 多部 Runbook伺服器

bull OData Web Service

bull SQL Server 叢集 Always On

歷程分析

bull Runbook執行歷程

bull Excel PowerPivot 報表

bull Runbook使用狀況

PowerShell 工作流程

集中式儲存區

高可用性

歷程分析

Service Management Automation

(SMA)

64101

ODATA REST Web Service

Runbooks

Jobs

Modules amp Activies

Submit requests

Return results

Http RequestHttp Response

Persist State

Pick up Jobs

SQL DatabaseRunbook Workers

Service Management Portal

bull 撰寫

bull 操作

Service Management Portal

bull PowerShell 工作流程

bull PowerShell 模組

Runbook Workers

bull REST OData

bull 授權

Web Service

bull 管理

bull 操作

Powershell Cmdlets

bull Runbook資源

bull Runbook工作狀況

SMA Database

PowerShell

Module

HTTP

65101

整合 Orchestrator 與 SMA ndash混合雲環境

66101

整合

httpblogstechnetcomborchestratorarchive20140209service-management-automation-integration-with-orchestratoraspx

67101

68101

SMA 整合 PowerShell 與 OData

69101

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 31: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

31101

32101

撰寫指令碼

33101

34101

$p1 = aaa從 初始化資料

$p2 = bbb 從 初始化資料

$Session = New-PSSession -ComputerName SVR1

$ResultArray = Invoke-Command -Session $Session

-ArgumentList $p1 $p2 $p3 -ScriptBlock

Param ( $p1 $p2 $p3 )

要執行的指令Return (xxx yyy hellip)

Remove-PSSession -Session $Session

$data1 = ResultArray[0] 取得 xxx

$data2 = ResultArray[1] 取得 yyy

35101

[SystemReflectionAssembly]LoadWithPartialName(SystemWindowsForms)

$MsgBox = [SystemWindowsFormsMessageBox]

$MsgBoxShow(Hello World)

$result = $MsgBoxShow(Are you sure Title 4)

if ($result -eq Yes)

$MsgBoxShow(YES)

else

$MsgBoxShow(NO)

36101

37101

httpmsdnmicrosoftcomen-uslibraryhh921685aspx

httporchestratorcodeplexcomreleasesview87873

httporchestratorcodeplexcomreleasesview82959

38101

51f9b950-6e33-465d-bc77-4d33e61831ff

39101

-getparameters

40101

41101

42101

43101

整合其它系統 ndash Integration Packs

44101

1

2

45101

46101

bull TFS

bull PowerShell

bull SharePoint

bull Active Directory

bull Exchange Mail and

Calendaring

bull Local Security

bull Scheduled Tasks

bull Utilities

bull Social media (Twitter)

bull Text Manipulation

bull F5

bull VMWare

bull Configuration Manager

2007

bull 4 BMC IPs- Kelverion

bull Dell -AIM IP

bull NetApp- OCPM IP

bull Cisco- UCS IP

bull Cisco- NCM

JaxMPFyrsoft

bull Kelverion- DBs IP

bull Kelverion-ServiceNow IP

bull Kelverion-Data

Manipulation IP

bull Kelverion-HTTP

Applications IP

bull Vision Solutions-

DoubleTake IP

bull VMWare vSphere

bull IBM Tivoli Netcool

bull HP OM

bull HP SM

bull HP iLo

bull Active Directory

bull MS Exchange User

bull MS Exchange Admin

bull FTP

bull New features added to

VMWare vSphere

bull REST

bull SharePoint

bull Windows Azure

微軟 協力廠商 Codeplex 社群

47101

httpwwwmicrosoftcomen-usdownloaddetailsaspxid=39622

httptechnetmicrosoftcomen-uslibraryhh295851aspx

Codeplex社群 httporchestratorcodeplexcom

48101

49101

httpmsdnmicrosoftcomen-uslibraryhh855855aspx

很容易擴展的平臺

50101

很容易擴展的平臺

51101

52101

Runbook偵錯與事件記錄

53101

54101

55101

56101

57101

58101

ltruntimegt

ltgeneratePublisherEvidence enabled=falsegt

ltruntimegt

59101

aspt RunbookServer1 40

aspt 40

60101

Service Management Automation (SMA) 介紹

61101

Azure

監控系統

變動控制系統

其它

開發適用於 Azure 的 Runbook建立 Runbook 來自動化所有雲端的操作例如部署監控最佳化hellip

具備高可用性的引擎支援各種規模與高可用性以 PowerShell 工作流程為基礎獨立隔離的 Runbook工作

整合其它系統匯入 PowerShell 模組建立其它模組與 Runbook

連接到 Azure 服務或其它第三方系統

自動化

62101

httpgallerytechnetmicrosoftcomsystemcenterService-Management-fcd75828

63101

PowerShell 工

作流程

bull 使用Windows PowerShell 語法

bull 使用單一工作完成複雜需要面對面的

人工作業

bull 自動化錯誤復原

bull 連線與活動重試

集中式

儲存區

bull 身份資訊 憑證

bull 全域變數與連線

bull 模組

bull Runbooks (草稿與發佈)

bull 排程

高可用性

bull 多部 Runbook伺服器

bull OData Web Service

bull SQL Server 叢集 Always On

歷程分析

bull Runbook執行歷程

bull Excel PowerPivot 報表

bull Runbook使用狀況

PowerShell 工作流程

集中式儲存區

高可用性

歷程分析

Service Management Automation

(SMA)

64101

ODATA REST Web Service

Runbooks

Jobs

Modules amp Activies

Submit requests

Return results

Http RequestHttp Response

Persist State

Pick up Jobs

SQL DatabaseRunbook Workers

Service Management Portal

bull 撰寫

bull 操作

Service Management Portal

bull PowerShell 工作流程

bull PowerShell 模組

Runbook Workers

bull REST OData

bull 授權

Web Service

bull 管理

bull 操作

Powershell Cmdlets

bull Runbook資源

bull Runbook工作狀況

SMA Database

PowerShell

Module

HTTP

65101

整合 Orchestrator 與 SMA ndash混合雲環境

66101

整合

httpblogstechnetcomborchestratorarchive20140209service-management-automation-integration-with-orchestratoraspx

67101

68101

SMA 整合 PowerShell 與 OData

69101

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 32: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

32101

撰寫指令碼

33101

34101

$p1 = aaa從 初始化資料

$p2 = bbb 從 初始化資料

$Session = New-PSSession -ComputerName SVR1

$ResultArray = Invoke-Command -Session $Session

-ArgumentList $p1 $p2 $p3 -ScriptBlock

Param ( $p1 $p2 $p3 )

要執行的指令Return (xxx yyy hellip)

Remove-PSSession -Session $Session

$data1 = ResultArray[0] 取得 xxx

$data2 = ResultArray[1] 取得 yyy

35101

[SystemReflectionAssembly]LoadWithPartialName(SystemWindowsForms)

$MsgBox = [SystemWindowsFormsMessageBox]

$MsgBoxShow(Hello World)

$result = $MsgBoxShow(Are you sure Title 4)

if ($result -eq Yes)

$MsgBoxShow(YES)

else

$MsgBoxShow(NO)

36101

37101

httpmsdnmicrosoftcomen-uslibraryhh921685aspx

httporchestratorcodeplexcomreleasesview87873

httporchestratorcodeplexcomreleasesview82959

38101

51f9b950-6e33-465d-bc77-4d33e61831ff

39101

-getparameters

40101

41101

42101

43101

整合其它系統 ndash Integration Packs

44101

1

2

45101

46101

bull TFS

bull PowerShell

bull SharePoint

bull Active Directory

bull Exchange Mail and

Calendaring

bull Local Security

bull Scheduled Tasks

bull Utilities

bull Social media (Twitter)

bull Text Manipulation

bull F5

bull VMWare

bull Configuration Manager

2007

bull 4 BMC IPs- Kelverion

bull Dell -AIM IP

bull NetApp- OCPM IP

bull Cisco- UCS IP

bull Cisco- NCM

JaxMPFyrsoft

bull Kelverion- DBs IP

bull Kelverion-ServiceNow IP

bull Kelverion-Data

Manipulation IP

bull Kelverion-HTTP

Applications IP

bull Vision Solutions-

DoubleTake IP

bull VMWare vSphere

bull IBM Tivoli Netcool

bull HP OM

bull HP SM

bull HP iLo

bull Active Directory

bull MS Exchange User

bull MS Exchange Admin

bull FTP

bull New features added to

VMWare vSphere

bull REST

bull SharePoint

bull Windows Azure

微軟 協力廠商 Codeplex 社群

47101

httpwwwmicrosoftcomen-usdownloaddetailsaspxid=39622

httptechnetmicrosoftcomen-uslibraryhh295851aspx

Codeplex社群 httporchestratorcodeplexcom

48101

49101

httpmsdnmicrosoftcomen-uslibraryhh855855aspx

很容易擴展的平臺

50101

很容易擴展的平臺

51101

52101

Runbook偵錯與事件記錄

53101

54101

55101

56101

57101

58101

ltruntimegt

ltgeneratePublisherEvidence enabled=falsegt

ltruntimegt

59101

aspt RunbookServer1 40

aspt 40

60101

Service Management Automation (SMA) 介紹

61101

Azure

監控系統

變動控制系統

其它

開發適用於 Azure 的 Runbook建立 Runbook 來自動化所有雲端的操作例如部署監控最佳化hellip

具備高可用性的引擎支援各種規模與高可用性以 PowerShell 工作流程為基礎獨立隔離的 Runbook工作

整合其它系統匯入 PowerShell 模組建立其它模組與 Runbook

連接到 Azure 服務或其它第三方系統

自動化

62101

httpgallerytechnetmicrosoftcomsystemcenterService-Management-fcd75828

63101

PowerShell 工

作流程

bull 使用Windows PowerShell 語法

bull 使用單一工作完成複雜需要面對面的

人工作業

bull 自動化錯誤復原

bull 連線與活動重試

集中式

儲存區

bull 身份資訊 憑證

bull 全域變數與連線

bull 模組

bull Runbooks (草稿與發佈)

bull 排程

高可用性

bull 多部 Runbook伺服器

bull OData Web Service

bull SQL Server 叢集 Always On

歷程分析

bull Runbook執行歷程

bull Excel PowerPivot 報表

bull Runbook使用狀況

PowerShell 工作流程

集中式儲存區

高可用性

歷程分析

Service Management Automation

(SMA)

64101

ODATA REST Web Service

Runbooks

Jobs

Modules amp Activies

Submit requests

Return results

Http RequestHttp Response

Persist State

Pick up Jobs

SQL DatabaseRunbook Workers

Service Management Portal

bull 撰寫

bull 操作

Service Management Portal

bull PowerShell 工作流程

bull PowerShell 模組

Runbook Workers

bull REST OData

bull 授權

Web Service

bull 管理

bull 操作

Powershell Cmdlets

bull Runbook資源

bull Runbook工作狀況

SMA Database

PowerShell

Module

HTTP

65101

整合 Orchestrator 與 SMA ndash混合雲環境

66101

整合

httpblogstechnetcomborchestratorarchive20140209service-management-automation-integration-with-orchestratoraspx

67101

68101

SMA 整合 PowerShell 與 OData

69101

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 33: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

33101

34101

$p1 = aaa從 初始化資料

$p2 = bbb 從 初始化資料

$Session = New-PSSession -ComputerName SVR1

$ResultArray = Invoke-Command -Session $Session

-ArgumentList $p1 $p2 $p3 -ScriptBlock

Param ( $p1 $p2 $p3 )

要執行的指令Return (xxx yyy hellip)

Remove-PSSession -Session $Session

$data1 = ResultArray[0] 取得 xxx

$data2 = ResultArray[1] 取得 yyy

35101

[SystemReflectionAssembly]LoadWithPartialName(SystemWindowsForms)

$MsgBox = [SystemWindowsFormsMessageBox]

$MsgBoxShow(Hello World)

$result = $MsgBoxShow(Are you sure Title 4)

if ($result -eq Yes)

$MsgBoxShow(YES)

else

$MsgBoxShow(NO)

36101

37101

httpmsdnmicrosoftcomen-uslibraryhh921685aspx

httporchestratorcodeplexcomreleasesview87873

httporchestratorcodeplexcomreleasesview82959

38101

51f9b950-6e33-465d-bc77-4d33e61831ff

39101

-getparameters

40101

41101

42101

43101

整合其它系統 ndash Integration Packs

44101

1

2

45101

46101

bull TFS

bull PowerShell

bull SharePoint

bull Active Directory

bull Exchange Mail and

Calendaring

bull Local Security

bull Scheduled Tasks

bull Utilities

bull Social media (Twitter)

bull Text Manipulation

bull F5

bull VMWare

bull Configuration Manager

2007

bull 4 BMC IPs- Kelverion

bull Dell -AIM IP

bull NetApp- OCPM IP

bull Cisco- UCS IP

bull Cisco- NCM

JaxMPFyrsoft

bull Kelverion- DBs IP

bull Kelverion-ServiceNow IP

bull Kelverion-Data

Manipulation IP

bull Kelverion-HTTP

Applications IP

bull Vision Solutions-

DoubleTake IP

bull VMWare vSphere

bull IBM Tivoli Netcool

bull HP OM

bull HP SM

bull HP iLo

bull Active Directory

bull MS Exchange User

bull MS Exchange Admin

bull FTP

bull New features added to

VMWare vSphere

bull REST

bull SharePoint

bull Windows Azure

微軟 協力廠商 Codeplex 社群

47101

httpwwwmicrosoftcomen-usdownloaddetailsaspxid=39622

httptechnetmicrosoftcomen-uslibraryhh295851aspx

Codeplex社群 httporchestratorcodeplexcom

48101

49101

httpmsdnmicrosoftcomen-uslibraryhh855855aspx

很容易擴展的平臺

50101

很容易擴展的平臺

51101

52101

Runbook偵錯與事件記錄

53101

54101

55101

56101

57101

58101

ltruntimegt

ltgeneratePublisherEvidence enabled=falsegt

ltruntimegt

59101

aspt RunbookServer1 40

aspt 40

60101

Service Management Automation (SMA) 介紹

61101

Azure

監控系統

變動控制系統

其它

開發適用於 Azure 的 Runbook建立 Runbook 來自動化所有雲端的操作例如部署監控最佳化hellip

具備高可用性的引擎支援各種規模與高可用性以 PowerShell 工作流程為基礎獨立隔離的 Runbook工作

整合其它系統匯入 PowerShell 模組建立其它模組與 Runbook

連接到 Azure 服務或其它第三方系統

自動化

62101

httpgallerytechnetmicrosoftcomsystemcenterService-Management-fcd75828

63101

PowerShell 工

作流程

bull 使用Windows PowerShell 語法

bull 使用單一工作完成複雜需要面對面的

人工作業

bull 自動化錯誤復原

bull 連線與活動重試

集中式

儲存區

bull 身份資訊 憑證

bull 全域變數與連線

bull 模組

bull Runbooks (草稿與發佈)

bull 排程

高可用性

bull 多部 Runbook伺服器

bull OData Web Service

bull SQL Server 叢集 Always On

歷程分析

bull Runbook執行歷程

bull Excel PowerPivot 報表

bull Runbook使用狀況

PowerShell 工作流程

集中式儲存區

高可用性

歷程分析

Service Management Automation

(SMA)

64101

ODATA REST Web Service

Runbooks

Jobs

Modules amp Activies

Submit requests

Return results

Http RequestHttp Response

Persist State

Pick up Jobs

SQL DatabaseRunbook Workers

Service Management Portal

bull 撰寫

bull 操作

Service Management Portal

bull PowerShell 工作流程

bull PowerShell 模組

Runbook Workers

bull REST OData

bull 授權

Web Service

bull 管理

bull 操作

Powershell Cmdlets

bull Runbook資源

bull Runbook工作狀況

SMA Database

PowerShell

Module

HTTP

65101

整合 Orchestrator 與 SMA ndash混合雲環境

66101

整合

httpblogstechnetcomborchestratorarchive20140209service-management-automation-integration-with-orchestratoraspx

67101

68101

SMA 整合 PowerShell 與 OData

69101

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 34: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

34101

$p1 = aaa從 初始化資料

$p2 = bbb 從 初始化資料

$Session = New-PSSession -ComputerName SVR1

$ResultArray = Invoke-Command -Session $Session

-ArgumentList $p1 $p2 $p3 -ScriptBlock

Param ( $p1 $p2 $p3 )

要執行的指令Return (xxx yyy hellip)

Remove-PSSession -Session $Session

$data1 = ResultArray[0] 取得 xxx

$data2 = ResultArray[1] 取得 yyy

35101

[SystemReflectionAssembly]LoadWithPartialName(SystemWindowsForms)

$MsgBox = [SystemWindowsFormsMessageBox]

$MsgBoxShow(Hello World)

$result = $MsgBoxShow(Are you sure Title 4)

if ($result -eq Yes)

$MsgBoxShow(YES)

else

$MsgBoxShow(NO)

36101

37101

httpmsdnmicrosoftcomen-uslibraryhh921685aspx

httporchestratorcodeplexcomreleasesview87873

httporchestratorcodeplexcomreleasesview82959

38101

51f9b950-6e33-465d-bc77-4d33e61831ff

39101

-getparameters

40101

41101

42101

43101

整合其它系統 ndash Integration Packs

44101

1

2

45101

46101

bull TFS

bull PowerShell

bull SharePoint

bull Active Directory

bull Exchange Mail and

Calendaring

bull Local Security

bull Scheduled Tasks

bull Utilities

bull Social media (Twitter)

bull Text Manipulation

bull F5

bull VMWare

bull Configuration Manager

2007

bull 4 BMC IPs- Kelverion

bull Dell -AIM IP

bull NetApp- OCPM IP

bull Cisco- UCS IP

bull Cisco- NCM

JaxMPFyrsoft

bull Kelverion- DBs IP

bull Kelverion-ServiceNow IP

bull Kelverion-Data

Manipulation IP

bull Kelverion-HTTP

Applications IP

bull Vision Solutions-

DoubleTake IP

bull VMWare vSphere

bull IBM Tivoli Netcool

bull HP OM

bull HP SM

bull HP iLo

bull Active Directory

bull MS Exchange User

bull MS Exchange Admin

bull FTP

bull New features added to

VMWare vSphere

bull REST

bull SharePoint

bull Windows Azure

微軟 協力廠商 Codeplex 社群

47101

httpwwwmicrosoftcomen-usdownloaddetailsaspxid=39622

httptechnetmicrosoftcomen-uslibraryhh295851aspx

Codeplex社群 httporchestratorcodeplexcom

48101

49101

httpmsdnmicrosoftcomen-uslibraryhh855855aspx

很容易擴展的平臺

50101

很容易擴展的平臺

51101

52101

Runbook偵錯與事件記錄

53101

54101

55101

56101

57101

58101

ltruntimegt

ltgeneratePublisherEvidence enabled=falsegt

ltruntimegt

59101

aspt RunbookServer1 40

aspt 40

60101

Service Management Automation (SMA) 介紹

61101

Azure

監控系統

變動控制系統

其它

開發適用於 Azure 的 Runbook建立 Runbook 來自動化所有雲端的操作例如部署監控最佳化hellip

具備高可用性的引擎支援各種規模與高可用性以 PowerShell 工作流程為基礎獨立隔離的 Runbook工作

整合其它系統匯入 PowerShell 模組建立其它模組與 Runbook

連接到 Azure 服務或其它第三方系統

自動化

62101

httpgallerytechnetmicrosoftcomsystemcenterService-Management-fcd75828

63101

PowerShell 工

作流程

bull 使用Windows PowerShell 語法

bull 使用單一工作完成複雜需要面對面的

人工作業

bull 自動化錯誤復原

bull 連線與活動重試

集中式

儲存區

bull 身份資訊 憑證

bull 全域變數與連線

bull 模組

bull Runbooks (草稿與發佈)

bull 排程

高可用性

bull 多部 Runbook伺服器

bull OData Web Service

bull SQL Server 叢集 Always On

歷程分析

bull Runbook執行歷程

bull Excel PowerPivot 報表

bull Runbook使用狀況

PowerShell 工作流程

集中式儲存區

高可用性

歷程分析

Service Management Automation

(SMA)

64101

ODATA REST Web Service

Runbooks

Jobs

Modules amp Activies

Submit requests

Return results

Http RequestHttp Response

Persist State

Pick up Jobs

SQL DatabaseRunbook Workers

Service Management Portal

bull 撰寫

bull 操作

Service Management Portal

bull PowerShell 工作流程

bull PowerShell 模組

Runbook Workers

bull REST OData

bull 授權

Web Service

bull 管理

bull 操作

Powershell Cmdlets

bull Runbook資源

bull Runbook工作狀況

SMA Database

PowerShell

Module

HTTP

65101

整合 Orchestrator 與 SMA ndash混合雲環境

66101

整合

httpblogstechnetcomborchestratorarchive20140209service-management-automation-integration-with-orchestratoraspx

67101

68101

SMA 整合 PowerShell 與 OData

69101

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 35: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

35101

[SystemReflectionAssembly]LoadWithPartialName(SystemWindowsForms)

$MsgBox = [SystemWindowsFormsMessageBox]

$MsgBoxShow(Hello World)

$result = $MsgBoxShow(Are you sure Title 4)

if ($result -eq Yes)

$MsgBoxShow(YES)

else

$MsgBoxShow(NO)

36101

37101

httpmsdnmicrosoftcomen-uslibraryhh921685aspx

httporchestratorcodeplexcomreleasesview87873

httporchestratorcodeplexcomreleasesview82959

38101

51f9b950-6e33-465d-bc77-4d33e61831ff

39101

-getparameters

40101

41101

42101

43101

整合其它系統 ndash Integration Packs

44101

1

2

45101

46101

bull TFS

bull PowerShell

bull SharePoint

bull Active Directory

bull Exchange Mail and

Calendaring

bull Local Security

bull Scheduled Tasks

bull Utilities

bull Social media (Twitter)

bull Text Manipulation

bull F5

bull VMWare

bull Configuration Manager

2007

bull 4 BMC IPs- Kelverion

bull Dell -AIM IP

bull NetApp- OCPM IP

bull Cisco- UCS IP

bull Cisco- NCM

JaxMPFyrsoft

bull Kelverion- DBs IP

bull Kelverion-ServiceNow IP

bull Kelverion-Data

Manipulation IP

bull Kelverion-HTTP

Applications IP

bull Vision Solutions-

DoubleTake IP

bull VMWare vSphere

bull IBM Tivoli Netcool

bull HP OM

bull HP SM

bull HP iLo

bull Active Directory

bull MS Exchange User

bull MS Exchange Admin

bull FTP

bull New features added to

VMWare vSphere

bull REST

bull SharePoint

bull Windows Azure

微軟 協力廠商 Codeplex 社群

47101

httpwwwmicrosoftcomen-usdownloaddetailsaspxid=39622

httptechnetmicrosoftcomen-uslibraryhh295851aspx

Codeplex社群 httporchestratorcodeplexcom

48101

49101

httpmsdnmicrosoftcomen-uslibraryhh855855aspx

很容易擴展的平臺

50101

很容易擴展的平臺

51101

52101

Runbook偵錯與事件記錄

53101

54101

55101

56101

57101

58101

ltruntimegt

ltgeneratePublisherEvidence enabled=falsegt

ltruntimegt

59101

aspt RunbookServer1 40

aspt 40

60101

Service Management Automation (SMA) 介紹

61101

Azure

監控系統

變動控制系統

其它

開發適用於 Azure 的 Runbook建立 Runbook 來自動化所有雲端的操作例如部署監控最佳化hellip

具備高可用性的引擎支援各種規模與高可用性以 PowerShell 工作流程為基礎獨立隔離的 Runbook工作

整合其它系統匯入 PowerShell 模組建立其它模組與 Runbook

連接到 Azure 服務或其它第三方系統

自動化

62101

httpgallerytechnetmicrosoftcomsystemcenterService-Management-fcd75828

63101

PowerShell 工

作流程

bull 使用Windows PowerShell 語法

bull 使用單一工作完成複雜需要面對面的

人工作業

bull 自動化錯誤復原

bull 連線與活動重試

集中式

儲存區

bull 身份資訊 憑證

bull 全域變數與連線

bull 模組

bull Runbooks (草稿與發佈)

bull 排程

高可用性

bull 多部 Runbook伺服器

bull OData Web Service

bull SQL Server 叢集 Always On

歷程分析

bull Runbook執行歷程

bull Excel PowerPivot 報表

bull Runbook使用狀況

PowerShell 工作流程

集中式儲存區

高可用性

歷程分析

Service Management Automation

(SMA)

64101

ODATA REST Web Service

Runbooks

Jobs

Modules amp Activies

Submit requests

Return results

Http RequestHttp Response

Persist State

Pick up Jobs

SQL DatabaseRunbook Workers

Service Management Portal

bull 撰寫

bull 操作

Service Management Portal

bull PowerShell 工作流程

bull PowerShell 模組

Runbook Workers

bull REST OData

bull 授權

Web Service

bull 管理

bull 操作

Powershell Cmdlets

bull Runbook資源

bull Runbook工作狀況

SMA Database

PowerShell

Module

HTTP

65101

整合 Orchestrator 與 SMA ndash混合雲環境

66101

整合

httpblogstechnetcomborchestratorarchive20140209service-management-automation-integration-with-orchestratoraspx

67101

68101

SMA 整合 PowerShell 與 OData

69101

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 36: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

36101

37101

httpmsdnmicrosoftcomen-uslibraryhh921685aspx

httporchestratorcodeplexcomreleasesview87873

httporchestratorcodeplexcomreleasesview82959

38101

51f9b950-6e33-465d-bc77-4d33e61831ff

39101

-getparameters

40101

41101

42101

43101

整合其它系統 ndash Integration Packs

44101

1

2

45101

46101

bull TFS

bull PowerShell

bull SharePoint

bull Active Directory

bull Exchange Mail and

Calendaring

bull Local Security

bull Scheduled Tasks

bull Utilities

bull Social media (Twitter)

bull Text Manipulation

bull F5

bull VMWare

bull Configuration Manager

2007

bull 4 BMC IPs- Kelverion

bull Dell -AIM IP

bull NetApp- OCPM IP

bull Cisco- UCS IP

bull Cisco- NCM

JaxMPFyrsoft

bull Kelverion- DBs IP

bull Kelverion-ServiceNow IP

bull Kelverion-Data

Manipulation IP

bull Kelverion-HTTP

Applications IP

bull Vision Solutions-

DoubleTake IP

bull VMWare vSphere

bull IBM Tivoli Netcool

bull HP OM

bull HP SM

bull HP iLo

bull Active Directory

bull MS Exchange User

bull MS Exchange Admin

bull FTP

bull New features added to

VMWare vSphere

bull REST

bull SharePoint

bull Windows Azure

微軟 協力廠商 Codeplex 社群

47101

httpwwwmicrosoftcomen-usdownloaddetailsaspxid=39622

httptechnetmicrosoftcomen-uslibraryhh295851aspx

Codeplex社群 httporchestratorcodeplexcom

48101

49101

httpmsdnmicrosoftcomen-uslibraryhh855855aspx

很容易擴展的平臺

50101

很容易擴展的平臺

51101

52101

Runbook偵錯與事件記錄

53101

54101

55101

56101

57101

58101

ltruntimegt

ltgeneratePublisherEvidence enabled=falsegt

ltruntimegt

59101

aspt RunbookServer1 40

aspt 40

60101

Service Management Automation (SMA) 介紹

61101

Azure

監控系統

變動控制系統

其它

開發適用於 Azure 的 Runbook建立 Runbook 來自動化所有雲端的操作例如部署監控最佳化hellip

具備高可用性的引擎支援各種規模與高可用性以 PowerShell 工作流程為基礎獨立隔離的 Runbook工作

整合其它系統匯入 PowerShell 模組建立其它模組與 Runbook

連接到 Azure 服務或其它第三方系統

自動化

62101

httpgallerytechnetmicrosoftcomsystemcenterService-Management-fcd75828

63101

PowerShell 工

作流程

bull 使用Windows PowerShell 語法

bull 使用單一工作完成複雜需要面對面的

人工作業

bull 自動化錯誤復原

bull 連線與活動重試

集中式

儲存區

bull 身份資訊 憑證

bull 全域變數與連線

bull 模組

bull Runbooks (草稿與發佈)

bull 排程

高可用性

bull 多部 Runbook伺服器

bull OData Web Service

bull SQL Server 叢集 Always On

歷程分析

bull Runbook執行歷程

bull Excel PowerPivot 報表

bull Runbook使用狀況

PowerShell 工作流程

集中式儲存區

高可用性

歷程分析

Service Management Automation

(SMA)

64101

ODATA REST Web Service

Runbooks

Jobs

Modules amp Activies

Submit requests

Return results

Http RequestHttp Response

Persist State

Pick up Jobs

SQL DatabaseRunbook Workers

Service Management Portal

bull 撰寫

bull 操作

Service Management Portal

bull PowerShell 工作流程

bull PowerShell 模組

Runbook Workers

bull REST OData

bull 授權

Web Service

bull 管理

bull 操作

Powershell Cmdlets

bull Runbook資源

bull Runbook工作狀況

SMA Database

PowerShell

Module

HTTP

65101

整合 Orchestrator 與 SMA ndash混合雲環境

66101

整合

httpblogstechnetcomborchestratorarchive20140209service-management-automation-integration-with-orchestratoraspx

67101

68101

SMA 整合 PowerShell 與 OData

69101

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 37: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

37101

httpmsdnmicrosoftcomen-uslibraryhh921685aspx

httporchestratorcodeplexcomreleasesview87873

httporchestratorcodeplexcomreleasesview82959

38101

51f9b950-6e33-465d-bc77-4d33e61831ff

39101

-getparameters

40101

41101

42101

43101

整合其它系統 ndash Integration Packs

44101

1

2

45101

46101

bull TFS

bull PowerShell

bull SharePoint

bull Active Directory

bull Exchange Mail and

Calendaring

bull Local Security

bull Scheduled Tasks

bull Utilities

bull Social media (Twitter)

bull Text Manipulation

bull F5

bull VMWare

bull Configuration Manager

2007

bull 4 BMC IPs- Kelverion

bull Dell -AIM IP

bull NetApp- OCPM IP

bull Cisco- UCS IP

bull Cisco- NCM

JaxMPFyrsoft

bull Kelverion- DBs IP

bull Kelverion-ServiceNow IP

bull Kelverion-Data

Manipulation IP

bull Kelverion-HTTP

Applications IP

bull Vision Solutions-

DoubleTake IP

bull VMWare vSphere

bull IBM Tivoli Netcool

bull HP OM

bull HP SM

bull HP iLo

bull Active Directory

bull MS Exchange User

bull MS Exchange Admin

bull FTP

bull New features added to

VMWare vSphere

bull REST

bull SharePoint

bull Windows Azure

微軟 協力廠商 Codeplex 社群

47101

httpwwwmicrosoftcomen-usdownloaddetailsaspxid=39622

httptechnetmicrosoftcomen-uslibraryhh295851aspx

Codeplex社群 httporchestratorcodeplexcom

48101

49101

httpmsdnmicrosoftcomen-uslibraryhh855855aspx

很容易擴展的平臺

50101

很容易擴展的平臺

51101

52101

Runbook偵錯與事件記錄

53101

54101

55101

56101

57101

58101

ltruntimegt

ltgeneratePublisherEvidence enabled=falsegt

ltruntimegt

59101

aspt RunbookServer1 40

aspt 40

60101

Service Management Automation (SMA) 介紹

61101

Azure

監控系統

變動控制系統

其它

開發適用於 Azure 的 Runbook建立 Runbook 來自動化所有雲端的操作例如部署監控最佳化hellip

具備高可用性的引擎支援各種規模與高可用性以 PowerShell 工作流程為基礎獨立隔離的 Runbook工作

整合其它系統匯入 PowerShell 模組建立其它模組與 Runbook

連接到 Azure 服務或其它第三方系統

自動化

62101

httpgallerytechnetmicrosoftcomsystemcenterService-Management-fcd75828

63101

PowerShell 工

作流程

bull 使用Windows PowerShell 語法

bull 使用單一工作完成複雜需要面對面的

人工作業

bull 自動化錯誤復原

bull 連線與活動重試

集中式

儲存區

bull 身份資訊 憑證

bull 全域變數與連線

bull 模組

bull Runbooks (草稿與發佈)

bull 排程

高可用性

bull 多部 Runbook伺服器

bull OData Web Service

bull SQL Server 叢集 Always On

歷程分析

bull Runbook執行歷程

bull Excel PowerPivot 報表

bull Runbook使用狀況

PowerShell 工作流程

集中式儲存區

高可用性

歷程分析

Service Management Automation

(SMA)

64101

ODATA REST Web Service

Runbooks

Jobs

Modules amp Activies

Submit requests

Return results

Http RequestHttp Response

Persist State

Pick up Jobs

SQL DatabaseRunbook Workers

Service Management Portal

bull 撰寫

bull 操作

Service Management Portal

bull PowerShell 工作流程

bull PowerShell 模組

Runbook Workers

bull REST OData

bull 授權

Web Service

bull 管理

bull 操作

Powershell Cmdlets

bull Runbook資源

bull Runbook工作狀況

SMA Database

PowerShell

Module

HTTP

65101

整合 Orchestrator 與 SMA ndash混合雲環境

66101

整合

httpblogstechnetcomborchestratorarchive20140209service-management-automation-integration-with-orchestratoraspx

67101

68101

SMA 整合 PowerShell 與 OData

69101

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 38: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

38101

51f9b950-6e33-465d-bc77-4d33e61831ff

39101

-getparameters

40101

41101

42101

43101

整合其它系統 ndash Integration Packs

44101

1

2

45101

46101

bull TFS

bull PowerShell

bull SharePoint

bull Active Directory

bull Exchange Mail and

Calendaring

bull Local Security

bull Scheduled Tasks

bull Utilities

bull Social media (Twitter)

bull Text Manipulation

bull F5

bull VMWare

bull Configuration Manager

2007

bull 4 BMC IPs- Kelverion

bull Dell -AIM IP

bull NetApp- OCPM IP

bull Cisco- UCS IP

bull Cisco- NCM

JaxMPFyrsoft

bull Kelverion- DBs IP

bull Kelverion-ServiceNow IP

bull Kelverion-Data

Manipulation IP

bull Kelverion-HTTP

Applications IP

bull Vision Solutions-

DoubleTake IP

bull VMWare vSphere

bull IBM Tivoli Netcool

bull HP OM

bull HP SM

bull HP iLo

bull Active Directory

bull MS Exchange User

bull MS Exchange Admin

bull FTP

bull New features added to

VMWare vSphere

bull REST

bull SharePoint

bull Windows Azure

微軟 協力廠商 Codeplex 社群

47101

httpwwwmicrosoftcomen-usdownloaddetailsaspxid=39622

httptechnetmicrosoftcomen-uslibraryhh295851aspx

Codeplex社群 httporchestratorcodeplexcom

48101

49101

httpmsdnmicrosoftcomen-uslibraryhh855855aspx

很容易擴展的平臺

50101

很容易擴展的平臺

51101

52101

Runbook偵錯與事件記錄

53101

54101

55101

56101

57101

58101

ltruntimegt

ltgeneratePublisherEvidence enabled=falsegt

ltruntimegt

59101

aspt RunbookServer1 40

aspt 40

60101

Service Management Automation (SMA) 介紹

61101

Azure

監控系統

變動控制系統

其它

開發適用於 Azure 的 Runbook建立 Runbook 來自動化所有雲端的操作例如部署監控最佳化hellip

具備高可用性的引擎支援各種規模與高可用性以 PowerShell 工作流程為基礎獨立隔離的 Runbook工作

整合其它系統匯入 PowerShell 模組建立其它模組與 Runbook

連接到 Azure 服務或其它第三方系統

自動化

62101

httpgallerytechnetmicrosoftcomsystemcenterService-Management-fcd75828

63101

PowerShell 工

作流程

bull 使用Windows PowerShell 語法

bull 使用單一工作完成複雜需要面對面的

人工作業

bull 自動化錯誤復原

bull 連線與活動重試

集中式

儲存區

bull 身份資訊 憑證

bull 全域變數與連線

bull 模組

bull Runbooks (草稿與發佈)

bull 排程

高可用性

bull 多部 Runbook伺服器

bull OData Web Service

bull SQL Server 叢集 Always On

歷程分析

bull Runbook執行歷程

bull Excel PowerPivot 報表

bull Runbook使用狀況

PowerShell 工作流程

集中式儲存區

高可用性

歷程分析

Service Management Automation

(SMA)

64101

ODATA REST Web Service

Runbooks

Jobs

Modules amp Activies

Submit requests

Return results

Http RequestHttp Response

Persist State

Pick up Jobs

SQL DatabaseRunbook Workers

Service Management Portal

bull 撰寫

bull 操作

Service Management Portal

bull PowerShell 工作流程

bull PowerShell 模組

Runbook Workers

bull REST OData

bull 授權

Web Service

bull 管理

bull 操作

Powershell Cmdlets

bull Runbook資源

bull Runbook工作狀況

SMA Database

PowerShell

Module

HTTP

65101

整合 Orchestrator 與 SMA ndash混合雲環境

66101

整合

httpblogstechnetcomborchestratorarchive20140209service-management-automation-integration-with-orchestratoraspx

67101

68101

SMA 整合 PowerShell 與 OData

69101

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 39: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

39101

-getparameters

40101

41101

42101

43101

整合其它系統 ndash Integration Packs

44101

1

2

45101

46101

bull TFS

bull PowerShell

bull SharePoint

bull Active Directory

bull Exchange Mail and

Calendaring

bull Local Security

bull Scheduled Tasks

bull Utilities

bull Social media (Twitter)

bull Text Manipulation

bull F5

bull VMWare

bull Configuration Manager

2007

bull 4 BMC IPs- Kelverion

bull Dell -AIM IP

bull NetApp- OCPM IP

bull Cisco- UCS IP

bull Cisco- NCM

JaxMPFyrsoft

bull Kelverion- DBs IP

bull Kelverion-ServiceNow IP

bull Kelverion-Data

Manipulation IP

bull Kelverion-HTTP

Applications IP

bull Vision Solutions-

DoubleTake IP

bull VMWare vSphere

bull IBM Tivoli Netcool

bull HP OM

bull HP SM

bull HP iLo

bull Active Directory

bull MS Exchange User

bull MS Exchange Admin

bull FTP

bull New features added to

VMWare vSphere

bull REST

bull SharePoint

bull Windows Azure

微軟 協力廠商 Codeplex 社群

47101

httpwwwmicrosoftcomen-usdownloaddetailsaspxid=39622

httptechnetmicrosoftcomen-uslibraryhh295851aspx

Codeplex社群 httporchestratorcodeplexcom

48101

49101

httpmsdnmicrosoftcomen-uslibraryhh855855aspx

很容易擴展的平臺

50101

很容易擴展的平臺

51101

52101

Runbook偵錯與事件記錄

53101

54101

55101

56101

57101

58101

ltruntimegt

ltgeneratePublisherEvidence enabled=falsegt

ltruntimegt

59101

aspt RunbookServer1 40

aspt 40

60101

Service Management Automation (SMA) 介紹

61101

Azure

監控系統

變動控制系統

其它

開發適用於 Azure 的 Runbook建立 Runbook 來自動化所有雲端的操作例如部署監控最佳化hellip

具備高可用性的引擎支援各種規模與高可用性以 PowerShell 工作流程為基礎獨立隔離的 Runbook工作

整合其它系統匯入 PowerShell 模組建立其它模組與 Runbook

連接到 Azure 服務或其它第三方系統

自動化

62101

httpgallerytechnetmicrosoftcomsystemcenterService-Management-fcd75828

63101

PowerShell 工

作流程

bull 使用Windows PowerShell 語法

bull 使用單一工作完成複雜需要面對面的

人工作業

bull 自動化錯誤復原

bull 連線與活動重試

集中式

儲存區

bull 身份資訊 憑證

bull 全域變數與連線

bull 模組

bull Runbooks (草稿與發佈)

bull 排程

高可用性

bull 多部 Runbook伺服器

bull OData Web Service

bull SQL Server 叢集 Always On

歷程分析

bull Runbook執行歷程

bull Excel PowerPivot 報表

bull Runbook使用狀況

PowerShell 工作流程

集中式儲存區

高可用性

歷程分析

Service Management Automation

(SMA)

64101

ODATA REST Web Service

Runbooks

Jobs

Modules amp Activies

Submit requests

Return results

Http RequestHttp Response

Persist State

Pick up Jobs

SQL DatabaseRunbook Workers

Service Management Portal

bull 撰寫

bull 操作

Service Management Portal

bull PowerShell 工作流程

bull PowerShell 模組

Runbook Workers

bull REST OData

bull 授權

Web Service

bull 管理

bull 操作

Powershell Cmdlets

bull Runbook資源

bull Runbook工作狀況

SMA Database

PowerShell

Module

HTTP

65101

整合 Orchestrator 與 SMA ndash混合雲環境

66101

整合

httpblogstechnetcomborchestratorarchive20140209service-management-automation-integration-with-orchestratoraspx

67101

68101

SMA 整合 PowerShell 與 OData

69101

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 40: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

40101

41101

42101

43101

整合其它系統 ndash Integration Packs

44101

1

2

45101

46101

bull TFS

bull PowerShell

bull SharePoint

bull Active Directory

bull Exchange Mail and

Calendaring

bull Local Security

bull Scheduled Tasks

bull Utilities

bull Social media (Twitter)

bull Text Manipulation

bull F5

bull VMWare

bull Configuration Manager

2007

bull 4 BMC IPs- Kelverion

bull Dell -AIM IP

bull NetApp- OCPM IP

bull Cisco- UCS IP

bull Cisco- NCM

JaxMPFyrsoft

bull Kelverion- DBs IP

bull Kelverion-ServiceNow IP

bull Kelverion-Data

Manipulation IP

bull Kelverion-HTTP

Applications IP

bull Vision Solutions-

DoubleTake IP

bull VMWare vSphere

bull IBM Tivoli Netcool

bull HP OM

bull HP SM

bull HP iLo

bull Active Directory

bull MS Exchange User

bull MS Exchange Admin

bull FTP

bull New features added to

VMWare vSphere

bull REST

bull SharePoint

bull Windows Azure

微軟 協力廠商 Codeplex 社群

47101

httpwwwmicrosoftcomen-usdownloaddetailsaspxid=39622

httptechnetmicrosoftcomen-uslibraryhh295851aspx

Codeplex社群 httporchestratorcodeplexcom

48101

49101

httpmsdnmicrosoftcomen-uslibraryhh855855aspx

很容易擴展的平臺

50101

很容易擴展的平臺

51101

52101

Runbook偵錯與事件記錄

53101

54101

55101

56101

57101

58101

ltruntimegt

ltgeneratePublisherEvidence enabled=falsegt

ltruntimegt

59101

aspt RunbookServer1 40

aspt 40

60101

Service Management Automation (SMA) 介紹

61101

Azure

監控系統

變動控制系統

其它

開發適用於 Azure 的 Runbook建立 Runbook 來自動化所有雲端的操作例如部署監控最佳化hellip

具備高可用性的引擎支援各種規模與高可用性以 PowerShell 工作流程為基礎獨立隔離的 Runbook工作

整合其它系統匯入 PowerShell 模組建立其它模組與 Runbook

連接到 Azure 服務或其它第三方系統

自動化

62101

httpgallerytechnetmicrosoftcomsystemcenterService-Management-fcd75828

63101

PowerShell 工

作流程

bull 使用Windows PowerShell 語法

bull 使用單一工作完成複雜需要面對面的

人工作業

bull 自動化錯誤復原

bull 連線與活動重試

集中式

儲存區

bull 身份資訊 憑證

bull 全域變數與連線

bull 模組

bull Runbooks (草稿與發佈)

bull 排程

高可用性

bull 多部 Runbook伺服器

bull OData Web Service

bull SQL Server 叢集 Always On

歷程分析

bull Runbook執行歷程

bull Excel PowerPivot 報表

bull Runbook使用狀況

PowerShell 工作流程

集中式儲存區

高可用性

歷程分析

Service Management Automation

(SMA)

64101

ODATA REST Web Service

Runbooks

Jobs

Modules amp Activies

Submit requests

Return results

Http RequestHttp Response

Persist State

Pick up Jobs

SQL DatabaseRunbook Workers

Service Management Portal

bull 撰寫

bull 操作

Service Management Portal

bull PowerShell 工作流程

bull PowerShell 模組

Runbook Workers

bull REST OData

bull 授權

Web Service

bull 管理

bull 操作

Powershell Cmdlets

bull Runbook資源

bull Runbook工作狀況

SMA Database

PowerShell

Module

HTTP

65101

整合 Orchestrator 與 SMA ndash混合雲環境

66101

整合

httpblogstechnetcomborchestratorarchive20140209service-management-automation-integration-with-orchestratoraspx

67101

68101

SMA 整合 PowerShell 與 OData

69101

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 41: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

41101

42101

43101

整合其它系統 ndash Integration Packs

44101

1

2

45101

46101

bull TFS

bull PowerShell

bull SharePoint

bull Active Directory

bull Exchange Mail and

Calendaring

bull Local Security

bull Scheduled Tasks

bull Utilities

bull Social media (Twitter)

bull Text Manipulation

bull F5

bull VMWare

bull Configuration Manager

2007

bull 4 BMC IPs- Kelverion

bull Dell -AIM IP

bull NetApp- OCPM IP

bull Cisco- UCS IP

bull Cisco- NCM

JaxMPFyrsoft

bull Kelverion- DBs IP

bull Kelverion-ServiceNow IP

bull Kelverion-Data

Manipulation IP

bull Kelverion-HTTP

Applications IP

bull Vision Solutions-

DoubleTake IP

bull VMWare vSphere

bull IBM Tivoli Netcool

bull HP OM

bull HP SM

bull HP iLo

bull Active Directory

bull MS Exchange User

bull MS Exchange Admin

bull FTP

bull New features added to

VMWare vSphere

bull REST

bull SharePoint

bull Windows Azure

微軟 協力廠商 Codeplex 社群

47101

httpwwwmicrosoftcomen-usdownloaddetailsaspxid=39622

httptechnetmicrosoftcomen-uslibraryhh295851aspx

Codeplex社群 httporchestratorcodeplexcom

48101

49101

httpmsdnmicrosoftcomen-uslibraryhh855855aspx

很容易擴展的平臺

50101

很容易擴展的平臺

51101

52101

Runbook偵錯與事件記錄

53101

54101

55101

56101

57101

58101

ltruntimegt

ltgeneratePublisherEvidence enabled=falsegt

ltruntimegt

59101

aspt RunbookServer1 40

aspt 40

60101

Service Management Automation (SMA) 介紹

61101

Azure

監控系統

變動控制系統

其它

開發適用於 Azure 的 Runbook建立 Runbook 來自動化所有雲端的操作例如部署監控最佳化hellip

具備高可用性的引擎支援各種規模與高可用性以 PowerShell 工作流程為基礎獨立隔離的 Runbook工作

整合其它系統匯入 PowerShell 模組建立其它模組與 Runbook

連接到 Azure 服務或其它第三方系統

自動化

62101

httpgallerytechnetmicrosoftcomsystemcenterService-Management-fcd75828

63101

PowerShell 工

作流程

bull 使用Windows PowerShell 語法

bull 使用單一工作完成複雜需要面對面的

人工作業

bull 自動化錯誤復原

bull 連線與活動重試

集中式

儲存區

bull 身份資訊 憑證

bull 全域變數與連線

bull 模組

bull Runbooks (草稿與發佈)

bull 排程

高可用性

bull 多部 Runbook伺服器

bull OData Web Service

bull SQL Server 叢集 Always On

歷程分析

bull Runbook執行歷程

bull Excel PowerPivot 報表

bull Runbook使用狀況

PowerShell 工作流程

集中式儲存區

高可用性

歷程分析

Service Management Automation

(SMA)

64101

ODATA REST Web Service

Runbooks

Jobs

Modules amp Activies

Submit requests

Return results

Http RequestHttp Response

Persist State

Pick up Jobs

SQL DatabaseRunbook Workers

Service Management Portal

bull 撰寫

bull 操作

Service Management Portal

bull PowerShell 工作流程

bull PowerShell 模組

Runbook Workers

bull REST OData

bull 授權

Web Service

bull 管理

bull 操作

Powershell Cmdlets

bull Runbook資源

bull Runbook工作狀況

SMA Database

PowerShell

Module

HTTP

65101

整合 Orchestrator 與 SMA ndash混合雲環境

66101

整合

httpblogstechnetcomborchestratorarchive20140209service-management-automation-integration-with-orchestratoraspx

67101

68101

SMA 整合 PowerShell 與 OData

69101

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 42: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

42101

43101

整合其它系統 ndash Integration Packs

44101

1

2

45101

46101

bull TFS

bull PowerShell

bull SharePoint

bull Active Directory

bull Exchange Mail and

Calendaring

bull Local Security

bull Scheduled Tasks

bull Utilities

bull Social media (Twitter)

bull Text Manipulation

bull F5

bull VMWare

bull Configuration Manager

2007

bull 4 BMC IPs- Kelverion

bull Dell -AIM IP

bull NetApp- OCPM IP

bull Cisco- UCS IP

bull Cisco- NCM

JaxMPFyrsoft

bull Kelverion- DBs IP

bull Kelverion-ServiceNow IP

bull Kelverion-Data

Manipulation IP

bull Kelverion-HTTP

Applications IP

bull Vision Solutions-

DoubleTake IP

bull VMWare vSphere

bull IBM Tivoli Netcool

bull HP OM

bull HP SM

bull HP iLo

bull Active Directory

bull MS Exchange User

bull MS Exchange Admin

bull FTP

bull New features added to

VMWare vSphere

bull REST

bull SharePoint

bull Windows Azure

微軟 協力廠商 Codeplex 社群

47101

httpwwwmicrosoftcomen-usdownloaddetailsaspxid=39622

httptechnetmicrosoftcomen-uslibraryhh295851aspx

Codeplex社群 httporchestratorcodeplexcom

48101

49101

httpmsdnmicrosoftcomen-uslibraryhh855855aspx

很容易擴展的平臺

50101

很容易擴展的平臺

51101

52101

Runbook偵錯與事件記錄

53101

54101

55101

56101

57101

58101

ltruntimegt

ltgeneratePublisherEvidence enabled=falsegt

ltruntimegt

59101

aspt RunbookServer1 40

aspt 40

60101

Service Management Automation (SMA) 介紹

61101

Azure

監控系統

變動控制系統

其它

開發適用於 Azure 的 Runbook建立 Runbook 來自動化所有雲端的操作例如部署監控最佳化hellip

具備高可用性的引擎支援各種規模與高可用性以 PowerShell 工作流程為基礎獨立隔離的 Runbook工作

整合其它系統匯入 PowerShell 模組建立其它模組與 Runbook

連接到 Azure 服務或其它第三方系統

自動化

62101

httpgallerytechnetmicrosoftcomsystemcenterService-Management-fcd75828

63101

PowerShell 工

作流程

bull 使用Windows PowerShell 語法

bull 使用單一工作完成複雜需要面對面的

人工作業

bull 自動化錯誤復原

bull 連線與活動重試

集中式

儲存區

bull 身份資訊 憑證

bull 全域變數與連線

bull 模組

bull Runbooks (草稿與發佈)

bull 排程

高可用性

bull 多部 Runbook伺服器

bull OData Web Service

bull SQL Server 叢集 Always On

歷程分析

bull Runbook執行歷程

bull Excel PowerPivot 報表

bull Runbook使用狀況

PowerShell 工作流程

集中式儲存區

高可用性

歷程分析

Service Management Automation

(SMA)

64101

ODATA REST Web Service

Runbooks

Jobs

Modules amp Activies

Submit requests

Return results

Http RequestHttp Response

Persist State

Pick up Jobs

SQL DatabaseRunbook Workers

Service Management Portal

bull 撰寫

bull 操作

Service Management Portal

bull PowerShell 工作流程

bull PowerShell 模組

Runbook Workers

bull REST OData

bull 授權

Web Service

bull 管理

bull 操作

Powershell Cmdlets

bull Runbook資源

bull Runbook工作狀況

SMA Database

PowerShell

Module

HTTP

65101

整合 Orchestrator 與 SMA ndash混合雲環境

66101

整合

httpblogstechnetcomborchestratorarchive20140209service-management-automation-integration-with-orchestratoraspx

67101

68101

SMA 整合 PowerShell 與 OData

69101

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 43: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

43101

整合其它系統 ndash Integration Packs

44101

1

2

45101

46101

bull TFS

bull PowerShell

bull SharePoint

bull Active Directory

bull Exchange Mail and

Calendaring

bull Local Security

bull Scheduled Tasks

bull Utilities

bull Social media (Twitter)

bull Text Manipulation

bull F5

bull VMWare

bull Configuration Manager

2007

bull 4 BMC IPs- Kelverion

bull Dell -AIM IP

bull NetApp- OCPM IP

bull Cisco- UCS IP

bull Cisco- NCM

JaxMPFyrsoft

bull Kelverion- DBs IP

bull Kelverion-ServiceNow IP

bull Kelverion-Data

Manipulation IP

bull Kelverion-HTTP

Applications IP

bull Vision Solutions-

DoubleTake IP

bull VMWare vSphere

bull IBM Tivoli Netcool

bull HP OM

bull HP SM

bull HP iLo

bull Active Directory

bull MS Exchange User

bull MS Exchange Admin

bull FTP

bull New features added to

VMWare vSphere

bull REST

bull SharePoint

bull Windows Azure

微軟 協力廠商 Codeplex 社群

47101

httpwwwmicrosoftcomen-usdownloaddetailsaspxid=39622

httptechnetmicrosoftcomen-uslibraryhh295851aspx

Codeplex社群 httporchestratorcodeplexcom

48101

49101

httpmsdnmicrosoftcomen-uslibraryhh855855aspx

很容易擴展的平臺

50101

很容易擴展的平臺

51101

52101

Runbook偵錯與事件記錄

53101

54101

55101

56101

57101

58101

ltruntimegt

ltgeneratePublisherEvidence enabled=falsegt

ltruntimegt

59101

aspt RunbookServer1 40

aspt 40

60101

Service Management Automation (SMA) 介紹

61101

Azure

監控系統

變動控制系統

其它

開發適用於 Azure 的 Runbook建立 Runbook 來自動化所有雲端的操作例如部署監控最佳化hellip

具備高可用性的引擎支援各種規模與高可用性以 PowerShell 工作流程為基礎獨立隔離的 Runbook工作

整合其它系統匯入 PowerShell 模組建立其它模組與 Runbook

連接到 Azure 服務或其它第三方系統

自動化

62101

httpgallerytechnetmicrosoftcomsystemcenterService-Management-fcd75828

63101

PowerShell 工

作流程

bull 使用Windows PowerShell 語法

bull 使用單一工作完成複雜需要面對面的

人工作業

bull 自動化錯誤復原

bull 連線與活動重試

集中式

儲存區

bull 身份資訊 憑證

bull 全域變數與連線

bull 模組

bull Runbooks (草稿與發佈)

bull 排程

高可用性

bull 多部 Runbook伺服器

bull OData Web Service

bull SQL Server 叢集 Always On

歷程分析

bull Runbook執行歷程

bull Excel PowerPivot 報表

bull Runbook使用狀況

PowerShell 工作流程

集中式儲存區

高可用性

歷程分析

Service Management Automation

(SMA)

64101

ODATA REST Web Service

Runbooks

Jobs

Modules amp Activies

Submit requests

Return results

Http RequestHttp Response

Persist State

Pick up Jobs

SQL DatabaseRunbook Workers

Service Management Portal

bull 撰寫

bull 操作

Service Management Portal

bull PowerShell 工作流程

bull PowerShell 模組

Runbook Workers

bull REST OData

bull 授權

Web Service

bull 管理

bull 操作

Powershell Cmdlets

bull Runbook資源

bull Runbook工作狀況

SMA Database

PowerShell

Module

HTTP

65101

整合 Orchestrator 與 SMA ndash混合雲環境

66101

整合

httpblogstechnetcomborchestratorarchive20140209service-management-automation-integration-with-orchestratoraspx

67101

68101

SMA 整合 PowerShell 與 OData

69101

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 44: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

44101

1

2

45101

46101

bull TFS

bull PowerShell

bull SharePoint

bull Active Directory

bull Exchange Mail and

Calendaring

bull Local Security

bull Scheduled Tasks

bull Utilities

bull Social media (Twitter)

bull Text Manipulation

bull F5

bull VMWare

bull Configuration Manager

2007

bull 4 BMC IPs- Kelverion

bull Dell -AIM IP

bull NetApp- OCPM IP

bull Cisco- UCS IP

bull Cisco- NCM

JaxMPFyrsoft

bull Kelverion- DBs IP

bull Kelverion-ServiceNow IP

bull Kelverion-Data

Manipulation IP

bull Kelverion-HTTP

Applications IP

bull Vision Solutions-

DoubleTake IP

bull VMWare vSphere

bull IBM Tivoli Netcool

bull HP OM

bull HP SM

bull HP iLo

bull Active Directory

bull MS Exchange User

bull MS Exchange Admin

bull FTP

bull New features added to

VMWare vSphere

bull REST

bull SharePoint

bull Windows Azure

微軟 協力廠商 Codeplex 社群

47101

httpwwwmicrosoftcomen-usdownloaddetailsaspxid=39622

httptechnetmicrosoftcomen-uslibraryhh295851aspx

Codeplex社群 httporchestratorcodeplexcom

48101

49101

httpmsdnmicrosoftcomen-uslibraryhh855855aspx

很容易擴展的平臺

50101

很容易擴展的平臺

51101

52101

Runbook偵錯與事件記錄

53101

54101

55101

56101

57101

58101

ltruntimegt

ltgeneratePublisherEvidence enabled=falsegt

ltruntimegt

59101

aspt RunbookServer1 40

aspt 40

60101

Service Management Automation (SMA) 介紹

61101

Azure

監控系統

變動控制系統

其它

開發適用於 Azure 的 Runbook建立 Runbook 來自動化所有雲端的操作例如部署監控最佳化hellip

具備高可用性的引擎支援各種規模與高可用性以 PowerShell 工作流程為基礎獨立隔離的 Runbook工作

整合其它系統匯入 PowerShell 模組建立其它模組與 Runbook

連接到 Azure 服務或其它第三方系統

自動化

62101

httpgallerytechnetmicrosoftcomsystemcenterService-Management-fcd75828

63101

PowerShell 工

作流程

bull 使用Windows PowerShell 語法

bull 使用單一工作完成複雜需要面對面的

人工作業

bull 自動化錯誤復原

bull 連線與活動重試

集中式

儲存區

bull 身份資訊 憑證

bull 全域變數與連線

bull 模組

bull Runbooks (草稿與發佈)

bull 排程

高可用性

bull 多部 Runbook伺服器

bull OData Web Service

bull SQL Server 叢集 Always On

歷程分析

bull Runbook執行歷程

bull Excel PowerPivot 報表

bull Runbook使用狀況

PowerShell 工作流程

集中式儲存區

高可用性

歷程分析

Service Management Automation

(SMA)

64101

ODATA REST Web Service

Runbooks

Jobs

Modules amp Activies

Submit requests

Return results

Http RequestHttp Response

Persist State

Pick up Jobs

SQL DatabaseRunbook Workers

Service Management Portal

bull 撰寫

bull 操作

Service Management Portal

bull PowerShell 工作流程

bull PowerShell 模組

Runbook Workers

bull REST OData

bull 授權

Web Service

bull 管理

bull 操作

Powershell Cmdlets

bull Runbook資源

bull Runbook工作狀況

SMA Database

PowerShell

Module

HTTP

65101

整合 Orchestrator 與 SMA ndash混合雲環境

66101

整合

httpblogstechnetcomborchestratorarchive20140209service-management-automation-integration-with-orchestratoraspx

67101

68101

SMA 整合 PowerShell 與 OData

69101

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 45: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

45101

46101

bull TFS

bull PowerShell

bull SharePoint

bull Active Directory

bull Exchange Mail and

Calendaring

bull Local Security

bull Scheduled Tasks

bull Utilities

bull Social media (Twitter)

bull Text Manipulation

bull F5

bull VMWare

bull Configuration Manager

2007

bull 4 BMC IPs- Kelverion

bull Dell -AIM IP

bull NetApp- OCPM IP

bull Cisco- UCS IP

bull Cisco- NCM

JaxMPFyrsoft

bull Kelverion- DBs IP

bull Kelverion-ServiceNow IP

bull Kelverion-Data

Manipulation IP

bull Kelverion-HTTP

Applications IP

bull Vision Solutions-

DoubleTake IP

bull VMWare vSphere

bull IBM Tivoli Netcool

bull HP OM

bull HP SM

bull HP iLo

bull Active Directory

bull MS Exchange User

bull MS Exchange Admin

bull FTP

bull New features added to

VMWare vSphere

bull REST

bull SharePoint

bull Windows Azure

微軟 協力廠商 Codeplex 社群

47101

httpwwwmicrosoftcomen-usdownloaddetailsaspxid=39622

httptechnetmicrosoftcomen-uslibraryhh295851aspx

Codeplex社群 httporchestratorcodeplexcom

48101

49101

httpmsdnmicrosoftcomen-uslibraryhh855855aspx

很容易擴展的平臺

50101

很容易擴展的平臺

51101

52101

Runbook偵錯與事件記錄

53101

54101

55101

56101

57101

58101

ltruntimegt

ltgeneratePublisherEvidence enabled=falsegt

ltruntimegt

59101

aspt RunbookServer1 40

aspt 40

60101

Service Management Automation (SMA) 介紹

61101

Azure

監控系統

變動控制系統

其它

開發適用於 Azure 的 Runbook建立 Runbook 來自動化所有雲端的操作例如部署監控最佳化hellip

具備高可用性的引擎支援各種規模與高可用性以 PowerShell 工作流程為基礎獨立隔離的 Runbook工作

整合其它系統匯入 PowerShell 模組建立其它模組與 Runbook

連接到 Azure 服務或其它第三方系統

自動化

62101

httpgallerytechnetmicrosoftcomsystemcenterService-Management-fcd75828

63101

PowerShell 工

作流程

bull 使用Windows PowerShell 語法

bull 使用單一工作完成複雜需要面對面的

人工作業

bull 自動化錯誤復原

bull 連線與活動重試

集中式

儲存區

bull 身份資訊 憑證

bull 全域變數與連線

bull 模組

bull Runbooks (草稿與發佈)

bull 排程

高可用性

bull 多部 Runbook伺服器

bull OData Web Service

bull SQL Server 叢集 Always On

歷程分析

bull Runbook執行歷程

bull Excel PowerPivot 報表

bull Runbook使用狀況

PowerShell 工作流程

集中式儲存區

高可用性

歷程分析

Service Management Automation

(SMA)

64101

ODATA REST Web Service

Runbooks

Jobs

Modules amp Activies

Submit requests

Return results

Http RequestHttp Response

Persist State

Pick up Jobs

SQL DatabaseRunbook Workers

Service Management Portal

bull 撰寫

bull 操作

Service Management Portal

bull PowerShell 工作流程

bull PowerShell 模組

Runbook Workers

bull REST OData

bull 授權

Web Service

bull 管理

bull 操作

Powershell Cmdlets

bull Runbook資源

bull Runbook工作狀況

SMA Database

PowerShell

Module

HTTP

65101

整合 Orchestrator 與 SMA ndash混合雲環境

66101

整合

httpblogstechnetcomborchestratorarchive20140209service-management-automation-integration-with-orchestratoraspx

67101

68101

SMA 整合 PowerShell 與 OData

69101

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 46: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

46101

bull TFS

bull PowerShell

bull SharePoint

bull Active Directory

bull Exchange Mail and

Calendaring

bull Local Security

bull Scheduled Tasks

bull Utilities

bull Social media (Twitter)

bull Text Manipulation

bull F5

bull VMWare

bull Configuration Manager

2007

bull 4 BMC IPs- Kelverion

bull Dell -AIM IP

bull NetApp- OCPM IP

bull Cisco- UCS IP

bull Cisco- NCM

JaxMPFyrsoft

bull Kelverion- DBs IP

bull Kelverion-ServiceNow IP

bull Kelverion-Data

Manipulation IP

bull Kelverion-HTTP

Applications IP

bull Vision Solutions-

DoubleTake IP

bull VMWare vSphere

bull IBM Tivoli Netcool

bull HP OM

bull HP SM

bull HP iLo

bull Active Directory

bull MS Exchange User

bull MS Exchange Admin

bull FTP

bull New features added to

VMWare vSphere

bull REST

bull SharePoint

bull Windows Azure

微軟 協力廠商 Codeplex 社群

47101

httpwwwmicrosoftcomen-usdownloaddetailsaspxid=39622

httptechnetmicrosoftcomen-uslibraryhh295851aspx

Codeplex社群 httporchestratorcodeplexcom

48101

49101

httpmsdnmicrosoftcomen-uslibraryhh855855aspx

很容易擴展的平臺

50101

很容易擴展的平臺

51101

52101

Runbook偵錯與事件記錄

53101

54101

55101

56101

57101

58101

ltruntimegt

ltgeneratePublisherEvidence enabled=falsegt

ltruntimegt

59101

aspt RunbookServer1 40

aspt 40

60101

Service Management Automation (SMA) 介紹

61101

Azure

監控系統

變動控制系統

其它

開發適用於 Azure 的 Runbook建立 Runbook 來自動化所有雲端的操作例如部署監控最佳化hellip

具備高可用性的引擎支援各種規模與高可用性以 PowerShell 工作流程為基礎獨立隔離的 Runbook工作

整合其它系統匯入 PowerShell 模組建立其它模組與 Runbook

連接到 Azure 服務或其它第三方系統

自動化

62101

httpgallerytechnetmicrosoftcomsystemcenterService-Management-fcd75828

63101

PowerShell 工

作流程

bull 使用Windows PowerShell 語法

bull 使用單一工作完成複雜需要面對面的

人工作業

bull 自動化錯誤復原

bull 連線與活動重試

集中式

儲存區

bull 身份資訊 憑證

bull 全域變數與連線

bull 模組

bull Runbooks (草稿與發佈)

bull 排程

高可用性

bull 多部 Runbook伺服器

bull OData Web Service

bull SQL Server 叢集 Always On

歷程分析

bull Runbook執行歷程

bull Excel PowerPivot 報表

bull Runbook使用狀況

PowerShell 工作流程

集中式儲存區

高可用性

歷程分析

Service Management Automation

(SMA)

64101

ODATA REST Web Service

Runbooks

Jobs

Modules amp Activies

Submit requests

Return results

Http RequestHttp Response

Persist State

Pick up Jobs

SQL DatabaseRunbook Workers

Service Management Portal

bull 撰寫

bull 操作

Service Management Portal

bull PowerShell 工作流程

bull PowerShell 模組

Runbook Workers

bull REST OData

bull 授權

Web Service

bull 管理

bull 操作

Powershell Cmdlets

bull Runbook資源

bull Runbook工作狀況

SMA Database

PowerShell

Module

HTTP

65101

整合 Orchestrator 與 SMA ndash混合雲環境

66101

整合

httpblogstechnetcomborchestratorarchive20140209service-management-automation-integration-with-orchestratoraspx

67101

68101

SMA 整合 PowerShell 與 OData

69101

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 47: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

47101

httpwwwmicrosoftcomen-usdownloaddetailsaspxid=39622

httptechnetmicrosoftcomen-uslibraryhh295851aspx

Codeplex社群 httporchestratorcodeplexcom

48101

49101

httpmsdnmicrosoftcomen-uslibraryhh855855aspx

很容易擴展的平臺

50101

很容易擴展的平臺

51101

52101

Runbook偵錯與事件記錄

53101

54101

55101

56101

57101

58101

ltruntimegt

ltgeneratePublisherEvidence enabled=falsegt

ltruntimegt

59101

aspt RunbookServer1 40

aspt 40

60101

Service Management Automation (SMA) 介紹

61101

Azure

監控系統

變動控制系統

其它

開發適用於 Azure 的 Runbook建立 Runbook 來自動化所有雲端的操作例如部署監控最佳化hellip

具備高可用性的引擎支援各種規模與高可用性以 PowerShell 工作流程為基礎獨立隔離的 Runbook工作

整合其它系統匯入 PowerShell 模組建立其它模組與 Runbook

連接到 Azure 服務或其它第三方系統

自動化

62101

httpgallerytechnetmicrosoftcomsystemcenterService-Management-fcd75828

63101

PowerShell 工

作流程

bull 使用Windows PowerShell 語法

bull 使用單一工作完成複雜需要面對面的

人工作業

bull 自動化錯誤復原

bull 連線與活動重試

集中式

儲存區

bull 身份資訊 憑證

bull 全域變數與連線

bull 模組

bull Runbooks (草稿與發佈)

bull 排程

高可用性

bull 多部 Runbook伺服器

bull OData Web Service

bull SQL Server 叢集 Always On

歷程分析

bull Runbook執行歷程

bull Excel PowerPivot 報表

bull Runbook使用狀況

PowerShell 工作流程

集中式儲存區

高可用性

歷程分析

Service Management Automation

(SMA)

64101

ODATA REST Web Service

Runbooks

Jobs

Modules amp Activies

Submit requests

Return results

Http RequestHttp Response

Persist State

Pick up Jobs

SQL DatabaseRunbook Workers

Service Management Portal

bull 撰寫

bull 操作

Service Management Portal

bull PowerShell 工作流程

bull PowerShell 模組

Runbook Workers

bull REST OData

bull 授權

Web Service

bull 管理

bull 操作

Powershell Cmdlets

bull Runbook資源

bull Runbook工作狀況

SMA Database

PowerShell

Module

HTTP

65101

整合 Orchestrator 與 SMA ndash混合雲環境

66101

整合

httpblogstechnetcomborchestratorarchive20140209service-management-automation-integration-with-orchestratoraspx

67101

68101

SMA 整合 PowerShell 與 OData

69101

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 48: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

48101

49101

httpmsdnmicrosoftcomen-uslibraryhh855855aspx

很容易擴展的平臺

50101

很容易擴展的平臺

51101

52101

Runbook偵錯與事件記錄

53101

54101

55101

56101

57101

58101

ltruntimegt

ltgeneratePublisherEvidence enabled=falsegt

ltruntimegt

59101

aspt RunbookServer1 40

aspt 40

60101

Service Management Automation (SMA) 介紹

61101

Azure

監控系統

變動控制系統

其它

開發適用於 Azure 的 Runbook建立 Runbook 來自動化所有雲端的操作例如部署監控最佳化hellip

具備高可用性的引擎支援各種規模與高可用性以 PowerShell 工作流程為基礎獨立隔離的 Runbook工作

整合其它系統匯入 PowerShell 模組建立其它模組與 Runbook

連接到 Azure 服務或其它第三方系統

自動化

62101

httpgallerytechnetmicrosoftcomsystemcenterService-Management-fcd75828

63101

PowerShell 工

作流程

bull 使用Windows PowerShell 語法

bull 使用單一工作完成複雜需要面對面的

人工作業

bull 自動化錯誤復原

bull 連線與活動重試

集中式

儲存區

bull 身份資訊 憑證

bull 全域變數與連線

bull 模組

bull Runbooks (草稿與發佈)

bull 排程

高可用性

bull 多部 Runbook伺服器

bull OData Web Service

bull SQL Server 叢集 Always On

歷程分析

bull Runbook執行歷程

bull Excel PowerPivot 報表

bull Runbook使用狀況

PowerShell 工作流程

集中式儲存區

高可用性

歷程分析

Service Management Automation

(SMA)

64101

ODATA REST Web Service

Runbooks

Jobs

Modules amp Activies

Submit requests

Return results

Http RequestHttp Response

Persist State

Pick up Jobs

SQL DatabaseRunbook Workers

Service Management Portal

bull 撰寫

bull 操作

Service Management Portal

bull PowerShell 工作流程

bull PowerShell 模組

Runbook Workers

bull REST OData

bull 授權

Web Service

bull 管理

bull 操作

Powershell Cmdlets

bull Runbook資源

bull Runbook工作狀況

SMA Database

PowerShell

Module

HTTP

65101

整合 Orchestrator 與 SMA ndash混合雲環境

66101

整合

httpblogstechnetcomborchestratorarchive20140209service-management-automation-integration-with-orchestratoraspx

67101

68101

SMA 整合 PowerShell 與 OData

69101

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 49: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

49101

httpmsdnmicrosoftcomen-uslibraryhh855855aspx

很容易擴展的平臺

50101

很容易擴展的平臺

51101

52101

Runbook偵錯與事件記錄

53101

54101

55101

56101

57101

58101

ltruntimegt

ltgeneratePublisherEvidence enabled=falsegt

ltruntimegt

59101

aspt RunbookServer1 40

aspt 40

60101

Service Management Automation (SMA) 介紹

61101

Azure

監控系統

變動控制系統

其它

開發適用於 Azure 的 Runbook建立 Runbook 來自動化所有雲端的操作例如部署監控最佳化hellip

具備高可用性的引擎支援各種規模與高可用性以 PowerShell 工作流程為基礎獨立隔離的 Runbook工作

整合其它系統匯入 PowerShell 模組建立其它模組與 Runbook

連接到 Azure 服務或其它第三方系統

自動化

62101

httpgallerytechnetmicrosoftcomsystemcenterService-Management-fcd75828

63101

PowerShell 工

作流程

bull 使用Windows PowerShell 語法

bull 使用單一工作完成複雜需要面對面的

人工作業

bull 自動化錯誤復原

bull 連線與活動重試

集中式

儲存區

bull 身份資訊 憑證

bull 全域變數與連線

bull 模組

bull Runbooks (草稿與發佈)

bull 排程

高可用性

bull 多部 Runbook伺服器

bull OData Web Service

bull SQL Server 叢集 Always On

歷程分析

bull Runbook執行歷程

bull Excel PowerPivot 報表

bull Runbook使用狀況

PowerShell 工作流程

集中式儲存區

高可用性

歷程分析

Service Management Automation

(SMA)

64101

ODATA REST Web Service

Runbooks

Jobs

Modules amp Activies

Submit requests

Return results

Http RequestHttp Response

Persist State

Pick up Jobs

SQL DatabaseRunbook Workers

Service Management Portal

bull 撰寫

bull 操作

Service Management Portal

bull PowerShell 工作流程

bull PowerShell 模組

Runbook Workers

bull REST OData

bull 授權

Web Service

bull 管理

bull 操作

Powershell Cmdlets

bull Runbook資源

bull Runbook工作狀況

SMA Database

PowerShell

Module

HTTP

65101

整合 Orchestrator 與 SMA ndash混合雲環境

66101

整合

httpblogstechnetcomborchestratorarchive20140209service-management-automation-integration-with-orchestratoraspx

67101

68101

SMA 整合 PowerShell 與 OData

69101

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 50: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

50101

很容易擴展的平臺

51101

52101

Runbook偵錯與事件記錄

53101

54101

55101

56101

57101

58101

ltruntimegt

ltgeneratePublisherEvidence enabled=falsegt

ltruntimegt

59101

aspt RunbookServer1 40

aspt 40

60101

Service Management Automation (SMA) 介紹

61101

Azure

監控系統

變動控制系統

其它

開發適用於 Azure 的 Runbook建立 Runbook 來自動化所有雲端的操作例如部署監控最佳化hellip

具備高可用性的引擎支援各種規模與高可用性以 PowerShell 工作流程為基礎獨立隔離的 Runbook工作

整合其它系統匯入 PowerShell 模組建立其它模組與 Runbook

連接到 Azure 服務或其它第三方系統

自動化

62101

httpgallerytechnetmicrosoftcomsystemcenterService-Management-fcd75828

63101

PowerShell 工

作流程

bull 使用Windows PowerShell 語法

bull 使用單一工作完成複雜需要面對面的

人工作業

bull 自動化錯誤復原

bull 連線與活動重試

集中式

儲存區

bull 身份資訊 憑證

bull 全域變數與連線

bull 模組

bull Runbooks (草稿與發佈)

bull 排程

高可用性

bull 多部 Runbook伺服器

bull OData Web Service

bull SQL Server 叢集 Always On

歷程分析

bull Runbook執行歷程

bull Excel PowerPivot 報表

bull Runbook使用狀況

PowerShell 工作流程

集中式儲存區

高可用性

歷程分析

Service Management Automation

(SMA)

64101

ODATA REST Web Service

Runbooks

Jobs

Modules amp Activies

Submit requests

Return results

Http RequestHttp Response

Persist State

Pick up Jobs

SQL DatabaseRunbook Workers

Service Management Portal

bull 撰寫

bull 操作

Service Management Portal

bull PowerShell 工作流程

bull PowerShell 模組

Runbook Workers

bull REST OData

bull 授權

Web Service

bull 管理

bull 操作

Powershell Cmdlets

bull Runbook資源

bull Runbook工作狀況

SMA Database

PowerShell

Module

HTTP

65101

整合 Orchestrator 與 SMA ndash混合雲環境

66101

整合

httpblogstechnetcomborchestratorarchive20140209service-management-automation-integration-with-orchestratoraspx

67101

68101

SMA 整合 PowerShell 與 OData

69101

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 51: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

51101

52101

Runbook偵錯與事件記錄

53101

54101

55101

56101

57101

58101

ltruntimegt

ltgeneratePublisherEvidence enabled=falsegt

ltruntimegt

59101

aspt RunbookServer1 40

aspt 40

60101

Service Management Automation (SMA) 介紹

61101

Azure

監控系統

變動控制系統

其它

開發適用於 Azure 的 Runbook建立 Runbook 來自動化所有雲端的操作例如部署監控最佳化hellip

具備高可用性的引擎支援各種規模與高可用性以 PowerShell 工作流程為基礎獨立隔離的 Runbook工作

整合其它系統匯入 PowerShell 模組建立其它模組與 Runbook

連接到 Azure 服務或其它第三方系統

自動化

62101

httpgallerytechnetmicrosoftcomsystemcenterService-Management-fcd75828

63101

PowerShell 工

作流程

bull 使用Windows PowerShell 語法

bull 使用單一工作完成複雜需要面對面的

人工作業

bull 自動化錯誤復原

bull 連線與活動重試

集中式

儲存區

bull 身份資訊 憑證

bull 全域變數與連線

bull 模組

bull Runbooks (草稿與發佈)

bull 排程

高可用性

bull 多部 Runbook伺服器

bull OData Web Service

bull SQL Server 叢集 Always On

歷程分析

bull Runbook執行歷程

bull Excel PowerPivot 報表

bull Runbook使用狀況

PowerShell 工作流程

集中式儲存區

高可用性

歷程分析

Service Management Automation

(SMA)

64101

ODATA REST Web Service

Runbooks

Jobs

Modules amp Activies

Submit requests

Return results

Http RequestHttp Response

Persist State

Pick up Jobs

SQL DatabaseRunbook Workers

Service Management Portal

bull 撰寫

bull 操作

Service Management Portal

bull PowerShell 工作流程

bull PowerShell 模組

Runbook Workers

bull REST OData

bull 授權

Web Service

bull 管理

bull 操作

Powershell Cmdlets

bull Runbook資源

bull Runbook工作狀況

SMA Database

PowerShell

Module

HTTP

65101

整合 Orchestrator 與 SMA ndash混合雲環境

66101

整合

httpblogstechnetcomborchestratorarchive20140209service-management-automation-integration-with-orchestratoraspx

67101

68101

SMA 整合 PowerShell 與 OData

69101

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 52: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

52101

Runbook偵錯與事件記錄

53101

54101

55101

56101

57101

58101

ltruntimegt

ltgeneratePublisherEvidence enabled=falsegt

ltruntimegt

59101

aspt RunbookServer1 40

aspt 40

60101

Service Management Automation (SMA) 介紹

61101

Azure

監控系統

變動控制系統

其它

開發適用於 Azure 的 Runbook建立 Runbook 來自動化所有雲端的操作例如部署監控最佳化hellip

具備高可用性的引擎支援各種規模與高可用性以 PowerShell 工作流程為基礎獨立隔離的 Runbook工作

整合其它系統匯入 PowerShell 模組建立其它模組與 Runbook

連接到 Azure 服務或其它第三方系統

自動化

62101

httpgallerytechnetmicrosoftcomsystemcenterService-Management-fcd75828

63101

PowerShell 工

作流程

bull 使用Windows PowerShell 語法

bull 使用單一工作完成複雜需要面對面的

人工作業

bull 自動化錯誤復原

bull 連線與活動重試

集中式

儲存區

bull 身份資訊 憑證

bull 全域變數與連線

bull 模組

bull Runbooks (草稿與發佈)

bull 排程

高可用性

bull 多部 Runbook伺服器

bull OData Web Service

bull SQL Server 叢集 Always On

歷程分析

bull Runbook執行歷程

bull Excel PowerPivot 報表

bull Runbook使用狀況

PowerShell 工作流程

集中式儲存區

高可用性

歷程分析

Service Management Automation

(SMA)

64101

ODATA REST Web Service

Runbooks

Jobs

Modules amp Activies

Submit requests

Return results

Http RequestHttp Response

Persist State

Pick up Jobs

SQL DatabaseRunbook Workers

Service Management Portal

bull 撰寫

bull 操作

Service Management Portal

bull PowerShell 工作流程

bull PowerShell 模組

Runbook Workers

bull REST OData

bull 授權

Web Service

bull 管理

bull 操作

Powershell Cmdlets

bull Runbook資源

bull Runbook工作狀況

SMA Database

PowerShell

Module

HTTP

65101

整合 Orchestrator 與 SMA ndash混合雲環境

66101

整合

httpblogstechnetcomborchestratorarchive20140209service-management-automation-integration-with-orchestratoraspx

67101

68101

SMA 整合 PowerShell 與 OData

69101

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 53: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

53101

54101

55101

56101

57101

58101

ltruntimegt

ltgeneratePublisherEvidence enabled=falsegt

ltruntimegt

59101

aspt RunbookServer1 40

aspt 40

60101

Service Management Automation (SMA) 介紹

61101

Azure

監控系統

變動控制系統

其它

開發適用於 Azure 的 Runbook建立 Runbook 來自動化所有雲端的操作例如部署監控最佳化hellip

具備高可用性的引擎支援各種規模與高可用性以 PowerShell 工作流程為基礎獨立隔離的 Runbook工作

整合其它系統匯入 PowerShell 模組建立其它模組與 Runbook

連接到 Azure 服務或其它第三方系統

自動化

62101

httpgallerytechnetmicrosoftcomsystemcenterService-Management-fcd75828

63101

PowerShell 工

作流程

bull 使用Windows PowerShell 語法

bull 使用單一工作完成複雜需要面對面的

人工作業

bull 自動化錯誤復原

bull 連線與活動重試

集中式

儲存區

bull 身份資訊 憑證

bull 全域變數與連線

bull 模組

bull Runbooks (草稿與發佈)

bull 排程

高可用性

bull 多部 Runbook伺服器

bull OData Web Service

bull SQL Server 叢集 Always On

歷程分析

bull Runbook執行歷程

bull Excel PowerPivot 報表

bull Runbook使用狀況

PowerShell 工作流程

集中式儲存區

高可用性

歷程分析

Service Management Automation

(SMA)

64101

ODATA REST Web Service

Runbooks

Jobs

Modules amp Activies

Submit requests

Return results

Http RequestHttp Response

Persist State

Pick up Jobs

SQL DatabaseRunbook Workers

Service Management Portal

bull 撰寫

bull 操作

Service Management Portal

bull PowerShell 工作流程

bull PowerShell 模組

Runbook Workers

bull REST OData

bull 授權

Web Service

bull 管理

bull 操作

Powershell Cmdlets

bull Runbook資源

bull Runbook工作狀況

SMA Database

PowerShell

Module

HTTP

65101

整合 Orchestrator 與 SMA ndash混合雲環境

66101

整合

httpblogstechnetcomborchestratorarchive20140209service-management-automation-integration-with-orchestratoraspx

67101

68101

SMA 整合 PowerShell 與 OData

69101

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 54: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

54101

55101

56101

57101

58101

ltruntimegt

ltgeneratePublisherEvidence enabled=falsegt

ltruntimegt

59101

aspt RunbookServer1 40

aspt 40

60101

Service Management Automation (SMA) 介紹

61101

Azure

監控系統

變動控制系統

其它

開發適用於 Azure 的 Runbook建立 Runbook 來自動化所有雲端的操作例如部署監控最佳化hellip

具備高可用性的引擎支援各種規模與高可用性以 PowerShell 工作流程為基礎獨立隔離的 Runbook工作

整合其它系統匯入 PowerShell 模組建立其它模組與 Runbook

連接到 Azure 服務或其它第三方系統

自動化

62101

httpgallerytechnetmicrosoftcomsystemcenterService-Management-fcd75828

63101

PowerShell 工

作流程

bull 使用Windows PowerShell 語法

bull 使用單一工作完成複雜需要面對面的

人工作業

bull 自動化錯誤復原

bull 連線與活動重試

集中式

儲存區

bull 身份資訊 憑證

bull 全域變數與連線

bull 模組

bull Runbooks (草稿與發佈)

bull 排程

高可用性

bull 多部 Runbook伺服器

bull OData Web Service

bull SQL Server 叢集 Always On

歷程分析

bull Runbook執行歷程

bull Excel PowerPivot 報表

bull Runbook使用狀況

PowerShell 工作流程

集中式儲存區

高可用性

歷程分析

Service Management Automation

(SMA)

64101

ODATA REST Web Service

Runbooks

Jobs

Modules amp Activies

Submit requests

Return results

Http RequestHttp Response

Persist State

Pick up Jobs

SQL DatabaseRunbook Workers

Service Management Portal

bull 撰寫

bull 操作

Service Management Portal

bull PowerShell 工作流程

bull PowerShell 模組

Runbook Workers

bull REST OData

bull 授權

Web Service

bull 管理

bull 操作

Powershell Cmdlets

bull Runbook資源

bull Runbook工作狀況

SMA Database

PowerShell

Module

HTTP

65101

整合 Orchestrator 與 SMA ndash混合雲環境

66101

整合

httpblogstechnetcomborchestratorarchive20140209service-management-automation-integration-with-orchestratoraspx

67101

68101

SMA 整合 PowerShell 與 OData

69101

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 55: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

55101

56101

57101

58101

ltruntimegt

ltgeneratePublisherEvidence enabled=falsegt

ltruntimegt

59101

aspt RunbookServer1 40

aspt 40

60101

Service Management Automation (SMA) 介紹

61101

Azure

監控系統

變動控制系統

其它

開發適用於 Azure 的 Runbook建立 Runbook 來自動化所有雲端的操作例如部署監控最佳化hellip

具備高可用性的引擎支援各種規模與高可用性以 PowerShell 工作流程為基礎獨立隔離的 Runbook工作

整合其它系統匯入 PowerShell 模組建立其它模組與 Runbook

連接到 Azure 服務或其它第三方系統

自動化

62101

httpgallerytechnetmicrosoftcomsystemcenterService-Management-fcd75828

63101

PowerShell 工

作流程

bull 使用Windows PowerShell 語法

bull 使用單一工作完成複雜需要面對面的

人工作業

bull 自動化錯誤復原

bull 連線與活動重試

集中式

儲存區

bull 身份資訊 憑證

bull 全域變數與連線

bull 模組

bull Runbooks (草稿與發佈)

bull 排程

高可用性

bull 多部 Runbook伺服器

bull OData Web Service

bull SQL Server 叢集 Always On

歷程分析

bull Runbook執行歷程

bull Excel PowerPivot 報表

bull Runbook使用狀況

PowerShell 工作流程

集中式儲存區

高可用性

歷程分析

Service Management Automation

(SMA)

64101

ODATA REST Web Service

Runbooks

Jobs

Modules amp Activies

Submit requests

Return results

Http RequestHttp Response

Persist State

Pick up Jobs

SQL DatabaseRunbook Workers

Service Management Portal

bull 撰寫

bull 操作

Service Management Portal

bull PowerShell 工作流程

bull PowerShell 模組

Runbook Workers

bull REST OData

bull 授權

Web Service

bull 管理

bull 操作

Powershell Cmdlets

bull Runbook資源

bull Runbook工作狀況

SMA Database

PowerShell

Module

HTTP

65101

整合 Orchestrator 與 SMA ndash混合雲環境

66101

整合

httpblogstechnetcomborchestratorarchive20140209service-management-automation-integration-with-orchestratoraspx

67101

68101

SMA 整合 PowerShell 與 OData

69101

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 56: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

56101

57101

58101

ltruntimegt

ltgeneratePublisherEvidence enabled=falsegt

ltruntimegt

59101

aspt RunbookServer1 40

aspt 40

60101

Service Management Automation (SMA) 介紹

61101

Azure

監控系統

變動控制系統

其它

開發適用於 Azure 的 Runbook建立 Runbook 來自動化所有雲端的操作例如部署監控最佳化hellip

具備高可用性的引擎支援各種規模與高可用性以 PowerShell 工作流程為基礎獨立隔離的 Runbook工作

整合其它系統匯入 PowerShell 模組建立其它模組與 Runbook

連接到 Azure 服務或其它第三方系統

自動化

62101

httpgallerytechnetmicrosoftcomsystemcenterService-Management-fcd75828

63101

PowerShell 工

作流程

bull 使用Windows PowerShell 語法

bull 使用單一工作完成複雜需要面對面的

人工作業

bull 自動化錯誤復原

bull 連線與活動重試

集中式

儲存區

bull 身份資訊 憑證

bull 全域變數與連線

bull 模組

bull Runbooks (草稿與發佈)

bull 排程

高可用性

bull 多部 Runbook伺服器

bull OData Web Service

bull SQL Server 叢集 Always On

歷程分析

bull Runbook執行歷程

bull Excel PowerPivot 報表

bull Runbook使用狀況

PowerShell 工作流程

集中式儲存區

高可用性

歷程分析

Service Management Automation

(SMA)

64101

ODATA REST Web Service

Runbooks

Jobs

Modules amp Activies

Submit requests

Return results

Http RequestHttp Response

Persist State

Pick up Jobs

SQL DatabaseRunbook Workers

Service Management Portal

bull 撰寫

bull 操作

Service Management Portal

bull PowerShell 工作流程

bull PowerShell 模組

Runbook Workers

bull REST OData

bull 授權

Web Service

bull 管理

bull 操作

Powershell Cmdlets

bull Runbook資源

bull Runbook工作狀況

SMA Database

PowerShell

Module

HTTP

65101

整合 Orchestrator 與 SMA ndash混合雲環境

66101

整合

httpblogstechnetcomborchestratorarchive20140209service-management-automation-integration-with-orchestratoraspx

67101

68101

SMA 整合 PowerShell 與 OData

69101

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 57: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

57101

58101

ltruntimegt

ltgeneratePublisherEvidence enabled=falsegt

ltruntimegt

59101

aspt RunbookServer1 40

aspt 40

60101

Service Management Automation (SMA) 介紹

61101

Azure

監控系統

變動控制系統

其它

開發適用於 Azure 的 Runbook建立 Runbook 來自動化所有雲端的操作例如部署監控最佳化hellip

具備高可用性的引擎支援各種規模與高可用性以 PowerShell 工作流程為基礎獨立隔離的 Runbook工作

整合其它系統匯入 PowerShell 模組建立其它模組與 Runbook

連接到 Azure 服務或其它第三方系統

自動化

62101

httpgallerytechnetmicrosoftcomsystemcenterService-Management-fcd75828

63101

PowerShell 工

作流程

bull 使用Windows PowerShell 語法

bull 使用單一工作完成複雜需要面對面的

人工作業

bull 自動化錯誤復原

bull 連線與活動重試

集中式

儲存區

bull 身份資訊 憑證

bull 全域變數與連線

bull 模組

bull Runbooks (草稿與發佈)

bull 排程

高可用性

bull 多部 Runbook伺服器

bull OData Web Service

bull SQL Server 叢集 Always On

歷程分析

bull Runbook執行歷程

bull Excel PowerPivot 報表

bull Runbook使用狀況

PowerShell 工作流程

集中式儲存區

高可用性

歷程分析

Service Management Automation

(SMA)

64101

ODATA REST Web Service

Runbooks

Jobs

Modules amp Activies

Submit requests

Return results

Http RequestHttp Response

Persist State

Pick up Jobs

SQL DatabaseRunbook Workers

Service Management Portal

bull 撰寫

bull 操作

Service Management Portal

bull PowerShell 工作流程

bull PowerShell 模組

Runbook Workers

bull REST OData

bull 授權

Web Service

bull 管理

bull 操作

Powershell Cmdlets

bull Runbook資源

bull Runbook工作狀況

SMA Database

PowerShell

Module

HTTP

65101

整合 Orchestrator 與 SMA ndash混合雲環境

66101

整合

httpblogstechnetcomborchestratorarchive20140209service-management-automation-integration-with-orchestratoraspx

67101

68101

SMA 整合 PowerShell 與 OData

69101

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 58: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

58101

ltruntimegt

ltgeneratePublisherEvidence enabled=falsegt

ltruntimegt

59101

aspt RunbookServer1 40

aspt 40

60101

Service Management Automation (SMA) 介紹

61101

Azure

監控系統

變動控制系統

其它

開發適用於 Azure 的 Runbook建立 Runbook 來自動化所有雲端的操作例如部署監控最佳化hellip

具備高可用性的引擎支援各種規模與高可用性以 PowerShell 工作流程為基礎獨立隔離的 Runbook工作

整合其它系統匯入 PowerShell 模組建立其它模組與 Runbook

連接到 Azure 服務或其它第三方系統

自動化

62101

httpgallerytechnetmicrosoftcomsystemcenterService-Management-fcd75828

63101

PowerShell 工

作流程

bull 使用Windows PowerShell 語法

bull 使用單一工作完成複雜需要面對面的

人工作業

bull 自動化錯誤復原

bull 連線與活動重試

集中式

儲存區

bull 身份資訊 憑證

bull 全域變數與連線

bull 模組

bull Runbooks (草稿與發佈)

bull 排程

高可用性

bull 多部 Runbook伺服器

bull OData Web Service

bull SQL Server 叢集 Always On

歷程分析

bull Runbook執行歷程

bull Excel PowerPivot 報表

bull Runbook使用狀況

PowerShell 工作流程

集中式儲存區

高可用性

歷程分析

Service Management Automation

(SMA)

64101

ODATA REST Web Service

Runbooks

Jobs

Modules amp Activies

Submit requests

Return results

Http RequestHttp Response

Persist State

Pick up Jobs

SQL DatabaseRunbook Workers

Service Management Portal

bull 撰寫

bull 操作

Service Management Portal

bull PowerShell 工作流程

bull PowerShell 模組

Runbook Workers

bull REST OData

bull 授權

Web Service

bull 管理

bull 操作

Powershell Cmdlets

bull Runbook資源

bull Runbook工作狀況

SMA Database

PowerShell

Module

HTTP

65101

整合 Orchestrator 與 SMA ndash混合雲環境

66101

整合

httpblogstechnetcomborchestratorarchive20140209service-management-automation-integration-with-orchestratoraspx

67101

68101

SMA 整合 PowerShell 與 OData

69101

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 59: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

59101

aspt RunbookServer1 40

aspt 40

60101

Service Management Automation (SMA) 介紹

61101

Azure

監控系統

變動控制系統

其它

開發適用於 Azure 的 Runbook建立 Runbook 來自動化所有雲端的操作例如部署監控最佳化hellip

具備高可用性的引擎支援各種規模與高可用性以 PowerShell 工作流程為基礎獨立隔離的 Runbook工作

整合其它系統匯入 PowerShell 模組建立其它模組與 Runbook

連接到 Azure 服務或其它第三方系統

自動化

62101

httpgallerytechnetmicrosoftcomsystemcenterService-Management-fcd75828

63101

PowerShell 工

作流程

bull 使用Windows PowerShell 語法

bull 使用單一工作完成複雜需要面對面的

人工作業

bull 自動化錯誤復原

bull 連線與活動重試

集中式

儲存區

bull 身份資訊 憑證

bull 全域變數與連線

bull 模組

bull Runbooks (草稿與發佈)

bull 排程

高可用性

bull 多部 Runbook伺服器

bull OData Web Service

bull SQL Server 叢集 Always On

歷程分析

bull Runbook執行歷程

bull Excel PowerPivot 報表

bull Runbook使用狀況

PowerShell 工作流程

集中式儲存區

高可用性

歷程分析

Service Management Automation

(SMA)

64101

ODATA REST Web Service

Runbooks

Jobs

Modules amp Activies

Submit requests

Return results

Http RequestHttp Response

Persist State

Pick up Jobs

SQL DatabaseRunbook Workers

Service Management Portal

bull 撰寫

bull 操作

Service Management Portal

bull PowerShell 工作流程

bull PowerShell 模組

Runbook Workers

bull REST OData

bull 授權

Web Service

bull 管理

bull 操作

Powershell Cmdlets

bull Runbook資源

bull Runbook工作狀況

SMA Database

PowerShell

Module

HTTP

65101

整合 Orchestrator 與 SMA ndash混合雲環境

66101

整合

httpblogstechnetcomborchestratorarchive20140209service-management-automation-integration-with-orchestratoraspx

67101

68101

SMA 整合 PowerShell 與 OData

69101

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 60: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

60101

Service Management Automation (SMA) 介紹

61101

Azure

監控系統

變動控制系統

其它

開發適用於 Azure 的 Runbook建立 Runbook 來自動化所有雲端的操作例如部署監控最佳化hellip

具備高可用性的引擎支援各種規模與高可用性以 PowerShell 工作流程為基礎獨立隔離的 Runbook工作

整合其它系統匯入 PowerShell 模組建立其它模組與 Runbook

連接到 Azure 服務或其它第三方系統

自動化

62101

httpgallerytechnetmicrosoftcomsystemcenterService-Management-fcd75828

63101

PowerShell 工

作流程

bull 使用Windows PowerShell 語法

bull 使用單一工作完成複雜需要面對面的

人工作業

bull 自動化錯誤復原

bull 連線與活動重試

集中式

儲存區

bull 身份資訊 憑證

bull 全域變數與連線

bull 模組

bull Runbooks (草稿與發佈)

bull 排程

高可用性

bull 多部 Runbook伺服器

bull OData Web Service

bull SQL Server 叢集 Always On

歷程分析

bull Runbook執行歷程

bull Excel PowerPivot 報表

bull Runbook使用狀況

PowerShell 工作流程

集中式儲存區

高可用性

歷程分析

Service Management Automation

(SMA)

64101

ODATA REST Web Service

Runbooks

Jobs

Modules amp Activies

Submit requests

Return results

Http RequestHttp Response

Persist State

Pick up Jobs

SQL DatabaseRunbook Workers

Service Management Portal

bull 撰寫

bull 操作

Service Management Portal

bull PowerShell 工作流程

bull PowerShell 模組

Runbook Workers

bull REST OData

bull 授權

Web Service

bull 管理

bull 操作

Powershell Cmdlets

bull Runbook資源

bull Runbook工作狀況

SMA Database

PowerShell

Module

HTTP

65101

整合 Orchestrator 與 SMA ndash混合雲環境

66101

整合

httpblogstechnetcomborchestratorarchive20140209service-management-automation-integration-with-orchestratoraspx

67101

68101

SMA 整合 PowerShell 與 OData

69101

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 61: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

61101

Azure

監控系統

變動控制系統

其它

開發適用於 Azure 的 Runbook建立 Runbook 來自動化所有雲端的操作例如部署監控最佳化hellip

具備高可用性的引擎支援各種規模與高可用性以 PowerShell 工作流程為基礎獨立隔離的 Runbook工作

整合其它系統匯入 PowerShell 模組建立其它模組與 Runbook

連接到 Azure 服務或其它第三方系統

自動化

62101

httpgallerytechnetmicrosoftcomsystemcenterService-Management-fcd75828

63101

PowerShell 工

作流程

bull 使用Windows PowerShell 語法

bull 使用單一工作完成複雜需要面對面的

人工作業

bull 自動化錯誤復原

bull 連線與活動重試

集中式

儲存區

bull 身份資訊 憑證

bull 全域變數與連線

bull 模組

bull Runbooks (草稿與發佈)

bull 排程

高可用性

bull 多部 Runbook伺服器

bull OData Web Service

bull SQL Server 叢集 Always On

歷程分析

bull Runbook執行歷程

bull Excel PowerPivot 報表

bull Runbook使用狀況

PowerShell 工作流程

集中式儲存區

高可用性

歷程分析

Service Management Automation

(SMA)

64101

ODATA REST Web Service

Runbooks

Jobs

Modules amp Activies

Submit requests

Return results

Http RequestHttp Response

Persist State

Pick up Jobs

SQL DatabaseRunbook Workers

Service Management Portal

bull 撰寫

bull 操作

Service Management Portal

bull PowerShell 工作流程

bull PowerShell 模組

Runbook Workers

bull REST OData

bull 授權

Web Service

bull 管理

bull 操作

Powershell Cmdlets

bull Runbook資源

bull Runbook工作狀況

SMA Database

PowerShell

Module

HTTP

65101

整合 Orchestrator 與 SMA ndash混合雲環境

66101

整合

httpblogstechnetcomborchestratorarchive20140209service-management-automation-integration-with-orchestratoraspx

67101

68101

SMA 整合 PowerShell 與 OData

69101

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 62: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

62101

httpgallerytechnetmicrosoftcomsystemcenterService-Management-fcd75828

63101

PowerShell 工

作流程

bull 使用Windows PowerShell 語法

bull 使用單一工作完成複雜需要面對面的

人工作業

bull 自動化錯誤復原

bull 連線與活動重試

集中式

儲存區

bull 身份資訊 憑證

bull 全域變數與連線

bull 模組

bull Runbooks (草稿與發佈)

bull 排程

高可用性

bull 多部 Runbook伺服器

bull OData Web Service

bull SQL Server 叢集 Always On

歷程分析

bull Runbook執行歷程

bull Excel PowerPivot 報表

bull Runbook使用狀況

PowerShell 工作流程

集中式儲存區

高可用性

歷程分析

Service Management Automation

(SMA)

64101

ODATA REST Web Service

Runbooks

Jobs

Modules amp Activies

Submit requests

Return results

Http RequestHttp Response

Persist State

Pick up Jobs

SQL DatabaseRunbook Workers

Service Management Portal

bull 撰寫

bull 操作

Service Management Portal

bull PowerShell 工作流程

bull PowerShell 模組

Runbook Workers

bull REST OData

bull 授權

Web Service

bull 管理

bull 操作

Powershell Cmdlets

bull Runbook資源

bull Runbook工作狀況

SMA Database

PowerShell

Module

HTTP

65101

整合 Orchestrator 與 SMA ndash混合雲環境

66101

整合

httpblogstechnetcomborchestratorarchive20140209service-management-automation-integration-with-orchestratoraspx

67101

68101

SMA 整合 PowerShell 與 OData

69101

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 63: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

63101

PowerShell 工

作流程

bull 使用Windows PowerShell 語法

bull 使用單一工作完成複雜需要面對面的

人工作業

bull 自動化錯誤復原

bull 連線與活動重試

集中式

儲存區

bull 身份資訊 憑證

bull 全域變數與連線

bull 模組

bull Runbooks (草稿與發佈)

bull 排程

高可用性

bull 多部 Runbook伺服器

bull OData Web Service

bull SQL Server 叢集 Always On

歷程分析

bull Runbook執行歷程

bull Excel PowerPivot 報表

bull Runbook使用狀況

PowerShell 工作流程

集中式儲存區

高可用性

歷程分析

Service Management Automation

(SMA)

64101

ODATA REST Web Service

Runbooks

Jobs

Modules amp Activies

Submit requests

Return results

Http RequestHttp Response

Persist State

Pick up Jobs

SQL DatabaseRunbook Workers

Service Management Portal

bull 撰寫

bull 操作

Service Management Portal

bull PowerShell 工作流程

bull PowerShell 模組

Runbook Workers

bull REST OData

bull 授權

Web Service

bull 管理

bull 操作

Powershell Cmdlets

bull Runbook資源

bull Runbook工作狀況

SMA Database

PowerShell

Module

HTTP

65101

整合 Orchestrator 與 SMA ndash混合雲環境

66101

整合

httpblogstechnetcomborchestratorarchive20140209service-management-automation-integration-with-orchestratoraspx

67101

68101

SMA 整合 PowerShell 與 OData

69101

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 64: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

64101

ODATA REST Web Service

Runbooks

Jobs

Modules amp Activies

Submit requests

Return results

Http RequestHttp Response

Persist State

Pick up Jobs

SQL DatabaseRunbook Workers

Service Management Portal

bull 撰寫

bull 操作

Service Management Portal

bull PowerShell 工作流程

bull PowerShell 模組

Runbook Workers

bull REST OData

bull 授權

Web Service

bull 管理

bull 操作

Powershell Cmdlets

bull Runbook資源

bull Runbook工作狀況

SMA Database

PowerShell

Module

HTTP

65101

整合 Orchestrator 與 SMA ndash混合雲環境

66101

整合

httpblogstechnetcomborchestratorarchive20140209service-management-automation-integration-with-orchestratoraspx

67101

68101

SMA 整合 PowerShell 與 OData

69101

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 65: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

65101

整合 Orchestrator 與 SMA ndash混合雲環境

66101

整合

httpblogstechnetcomborchestratorarchive20140209service-management-automation-integration-with-orchestratoraspx

67101

68101

SMA 整合 PowerShell 與 OData

69101

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 66: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

66101

整合

httpblogstechnetcomborchestratorarchive20140209service-management-automation-integration-with-orchestratoraspx

67101

68101

SMA 整合 PowerShell 與 OData

69101

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 67: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

67101

68101

SMA 整合 PowerShell 與 OData

69101

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 68: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

68101

SMA 整合 PowerShell 與 OData

69101

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 69: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

69101

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 70: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

70101

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 71: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

71101

bull Script Workflow Activities

bull CheckPoint-Workflow

bull

bull

bull

bull

bull Cmdlet Activities

bull SMA 會自動以 InlineScript執行的指令

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspx

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 72: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

72101

bull Excluded Cmdlet

bull 沒有被實作成Workflow Activities 的指令

bull 不會自動以 InlineScript執行

bull 如果硬要執行 (不建議)

bull 參考 httptechnetmicrosoftcomen-uslibraryjj574194aspxBKMK_Excluded

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 73: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

73101

$con = Get-AutomationConnection -Name MyConnection

$securepassword = ConvertTo-SecureString-AsPlainText -String $conPassword ndashForce

$cred = New-Object -TypeName SystemManagementAutomationPSCredential-ArgumentList $conUsername $securepassword

InlineScript

ltCommandsgt

ndashPSComputer $conComputerName ndashPSCredential $cred

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 74: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

74101

bull httpgallerytechnetmicrosoftcomscriptcenter

bull 搜尋 SMA

bull SMA Runbook Update A SharePoint 2013 List Item

bull Monitor AWS amp VMware from SMA

bull SMA Runbook - Start SCOM Maintenance Mode

bull Calling an Orchestrator Runbook from a Service Management Automation (SMA)

bull Using DSC to keep SMA Runbook Workers up-to-date

bull hellip

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 75: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

75101

讓你的應用程式整合 SMA 的兩種方式1連接 SMA OData Web 服務

2 使用 SMA PowerShell 模組提供的指令

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 76: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

76101

-

-

httpso909000000000-0000-0000-0000-000000000000$metadata

httpso909000000000-0000-0000-0000-000000000000

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 77: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

77101

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 78: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

78101

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 79: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

79101

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 80: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

80101

整合第三方系統 ndash自訂 PowerShell 模組擴充 SMA

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 81: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

81101

bull

bull

bull

bull-

bull

bullhttpblogstechnetcomborchestratorarchive20140612authoring-integration-modules-for-smaaspx

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 82: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

82101

lt模組名稱gt-Automationjson

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 83: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

83101

bull

bull 只是標準模組的 stub

bull 參考

bull httpblogstechnetcomborchestratorarchive20131104service-management-automation-portable-modules-what-why-and-howaspx

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 84: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

84101

bull 標準模組可能使用到外部的 DLL

bull

bull 所以需要

bull

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 85: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

85101

bull

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 86: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

86101

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 87: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

87101Microsoft Azure Automation

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 88: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

88101

目前是預覽版httpsaccountwindowsazurecomPreviewFeatures

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 89: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

89101

1 建立 Automation 帳戶

2 建立憑證並匯出 pfx與 cer檔

3 匯入憑證到 Microsoft Azure (cer)

4 建立Windows PowerShell Credential

5 建立 Automation Connection

6 上傳 Runbook (ps1) 或建立新的 Runbook

7 測試發佈執行

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 90: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

90101

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 91: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

91101

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 92: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

92101

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 93: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

93101

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 94: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

94101

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 95: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

95101

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 96: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

96101

bull 匯出所有 Runbook

bull 保留所有整合模組 (zip)

bull 記錄所有 Automation 設定bull CONNECTION

bull CREDENTIAL

bull VARIABLE

bull SCHEDULE

bull 備份所有憑證

bull 記錄所有密碼bull 可以在 Runbook 中用 Get-AutomationPSCredential 查詢

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 97: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

97101

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 98: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

98101

httpwwwmicrosoftcomsystemcenter

httpsystemcenterpinpointmicrosoftcom

httpblogstechnetcomsystemcenter

httpakams682986pdf

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 99: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

99101

httpazuremicrosoftcomen-usdocumentationarticlesautomation-create-runbook-from-samples

httpblogstechnetcombprivatecloudarchive20140312managing-windows-azure-with-smaaspx

httpblogstechnetcomborchestratorarchive20140311sma-capabilities-in-depth-the-sma-powershell-moduleaspx

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 100: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

100101

httpblogstechnetcombkeithmayerarchive20140406step-by-step-getting-started-with-windows-azure-automationaspx

httpgallerytechnetmicrosoftcomscriptcentersitesearchf[0]Type=Userampf[0]Value=SC20Automation20Product20Teamampf[0]Text=SC20Automation20Product20Teamampf[1]Type=RootCategoryampf[1]Value=WindowsAzureampf[1]Text=Windows20Azure

101101

Page 101: 曹祖聖 台灣微軟資深講師 jimycao@syset.com  · MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP. 2/101. 3/101 ... •Monitor AWS & VMware from SMA •SMA Runbook - Start SCOM

101101