共用方式為


Update-AzInsightsPrivateLinkScope

私人連結範圍的更新

語法

Update-AzInsightsPrivateLinkScope
      -ResourceGroupName <String>
      -Name <String>
      [-Tags <String[]>]
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Update-AzInsightsPrivateLinkScope
      -ResourceId <String>
      [-Tags <String[]>]
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Update-AzInsightsPrivateLinkScope
      -InputObject <PSMonitorPrivateLinkScope>
      [-Tags <String[]>]
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

私人連結範圍的更新

範例

範例 1

Update-AzInsightsPrivateLinkScope -ResourceGroupName "rg_name" -Name "scope_name" -Tags "key:value"

更新資源群組 “rg_name” 下名稱為 “scope_name” 的私人鏈接範圍,以使用卷標 “key:value”

範例 2

Update-AzInsightsPrivateLinkScope -ResourceId "/subscriptions/{subscriptionId}/resourceGroups/rg_name/providers/Microsoft.Insights/privateLinkScopes/scope_name" -Tags "key:value"

使用資源標識碼更新私人連結範圍,以使用標籤 “key:value”

範例 3

Get-AzInsightsPrivateLinkScope -ResourceGroupName "rg_name" -Name "scope_name" | Update-AzInsightsPrivateLinkScope -Tags "key:value"

使用輸入私人鏈接範圍物件更新私人鏈接範圍,以使用標記 “key:value”

參數

-Confirm

執行 Cmdlet 之前先提示您確認。

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

-DefaultProfile

用於與 Azure 通訊的認證、帳戶、租用戶和訂用帳戶。

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

-InputObject

PSMonitorPrivateLinkScope

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

-Name

Private Link 範圍名稱

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

-ResourceGroupName

資源群組名稱

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

-ResourceId

資源識別碼

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

-Tags

標籤

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

-WhatIf

顯示執行 Cmdlet 後會發生的情況。 未執行 Cmdlet。

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

輸入

PSMonitorPrivateLinkScope

String

輸出

PSMonitorPrivateLinkScope