共用方式為


Update-AzWorkloadsSapLandscapeMonitor

修補指定訂用帳戶、資源群組和 SAP 監視器名稱的 SAP 橫向監視器儀錶板。

語法

Update-AzWorkloadsSapLandscapeMonitor
      -MonitorName <String>
      -ResourceGroupName <String>
      [-SubscriptionId <String>]
      [-GroupingLandscape <ISapLandscapeMonitorSidMapping[]>]
      [-GroupingSapApplication <ISapLandscapeMonitorSidMapping[]>]
      [-TopMetricsThreshold <ISapLandscapeMonitorMetricThresholds[]>]
      [-DefaultProfile <PSObject>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Update-AzWorkloadsSapLandscapeMonitor
      -InputObject <IMonitorsIdentity>
      [-GroupingLandscape <ISapLandscapeMonitorSidMapping[]>]
      [-GroupingSapApplication <ISapLandscapeMonitorSidMapping[]>]
      [-TopMetricsThreshold <ISapLandscapeMonitorMetricThresholds[]>]
      [-DefaultProfile <PSObject>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

修補指定訂用帳戶、資源群組和 SAP 監視器名稱的 SAP 橫向監視器儀錶板。

範例

範例 1:更新 SAP 橫向監視器

New-AzWorkloadsSapLandscapeMonitor -MonitorName suha-0202-ams9 -ResourceGroupName suha-0802-rg1 -SubscriptionId 49d64d54-e966-4c46-a868-1999802b762c -GroupingLandscape '{"name":"Prod","topSid":["SID1","SID2"]}' -GroupingSapApplication '{"name":"ERP1","topSid":["SID1","SID2"]}' -TopMetricsThreshold '{"name":"Instance Availability","green":90,"yellow":75,"red":50}'

GroupingLandscape            : {{
                                 "name": "Prod",
                                 "topSid": [ "SID1", "SID2" ]
                               }}
GroupingSapApplication       : {{
                                 "name": "ERP1",
                                 "topSid": [ "SID1", "SID2" ]
                               }}
Id                           : /subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/suha-0802-rg1/providers/Microsoft.
                               Workloads/monitors/suha-0202-ams9/sapLandscapeMonitor/default
Name                         : default
ProvisioningState            : Succeeded
ResourceGroupName            : suha-0802-rg1
SystemData                   : {
                                 "createdBy": "",
                                 "createdByType": "User",
                                 "createdAt": "2023-04-06T05:30:54.9427030Z",
                                 "lastModifiedBy": "",
                                 "lastModifiedByType": "User",
                                 "lastModifiedAt": "2023-04-06T05:31:18.7873209Z"
                               }
SystemDataCreatedAt          : 06-04-2023 05:30:54
SystemDataCreatedBy          : 
SystemDataCreatedByType      : User
SystemDataLastModifiedAt     : 06-04-2023 05:31:18
SystemDataLastModifiedBy     : 
SystemDataLastModifiedByType : User
TopMetricsThreshold          : {{
                                 "name": "Instance Availability",
                                 "green": 90,
                                 "yellow": 75,
                                 "red": 50
                               }}
Type                         : microsoft.workloads/monitors/saplandscapemonitor

更新AMS實例的SAP橫向監視器

參數

-Confirm

在執行 Cmdlet 之前,提示您進行確認。

類型:SwitchParameter
別名:cf
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-DefaultProfile

DefaultProfile 參數無法運作。 如果針對不同的訂用帳戶執行 Cmdlet,請使用 SubscriptionId 參數。

類型:PSObject
別名:AzureRMContext, AzureCredential
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-GroupingLandscape

取得或設定橫向清單至 SID 對應。 若要建構,請參閱 GROUPINGLANDSCAPE 屬性的 NOTES 一節,並建立哈希表。

類型:ISapLandscapeMonitorSidMapping[]
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-GroupingSapApplication

取得或設定 Sap 應用程式與 SID 對應的清單。 若要建構,請參閱 GROUPINGSAPAPPLICATION 屬性和建立哈希表的 NOTES 一節。

類型:ISapLandscapeMonitorSidMapping[]
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-InputObject

Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.

類型:IMonitorsIdentity
Position:Named
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-MonitorName

SAP 監視器資源的名稱。

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-ResourceGroupName

資源群組的名稱。 名稱不區分大小寫。

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-SubscriptionId

目標訂用帳戶的標識碼。

類型:String
Position:Named
預設值:(Get-AzContext).Subscription.Id
必要:False
接受管線輸入:False
接受萬用字元:False

-TopMetricsThreshold

取得或設定 SAP 橫向監視器儀錶板要建構的 Top Metric Thresholds 清單,請參閱 TOPMETRICSTHRESHOLD 屬性的 NOTES 區段,並建立哈希錶。

類型:ISapLandscapeMonitorMetricThresholds[]
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-WhatIf

顯示 Cmdlet 執行時會發生什麼事。 Cmdlet 未執行。

類型:SwitchParameter
別名:wi
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

輸入

IMonitorsIdentity

輸出

ISapLandscapeMonitor