共用方式為


Update-AzDatabricksVNetPeering

更新工作區的 vNet 對等互連。

語法

Update-AzDatabricksVNetPeering
      -Name <String>
      -ResourceGroupName <String>
      -WorkspaceName <String>
      [-SubscriptionId <String>]
      [-AllowForwardedTraffic <Boolean>]
      [-AllowGatewayTransit <Boolean>]
      [-AllowVirtualNetworkAccess <Boolean>]
      [-DatabricksAddressSpacePrefix <String[]>]
      [-DatabricksVirtualNetworkId <String>]
      [-RemoteAddressSpacePrefix <String[]>]
      [-RemoteVirtualNetworkId <String>]
      [-UseRemoteGateway <Boolean>]
      [-DefaultProfile <PSObject>]
      [-AsJob]
      [-NoWait]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Update-AzDatabricksVNetPeering
      -InputObject <IDatabricksIdentity>
      [-AllowForwardedTraffic <Boolean>]
      [-AllowGatewayTransit <Boolean>]
      [-AllowVirtualNetworkAccess <Boolean>]
      [-DatabricksAddressSpacePrefix <String[]>]
      [-DatabricksVirtualNetworkId <String>]
      [-RemoteAddressSpacePrefix <String[]>]
      [-RemoteVirtualNetworkId <String>]
      [-UseRemoteGateway <Boolean>]
      [-DefaultProfile <PSObject>]
      [-AsJob]
      [-NoWait]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

更新工作區的 vNet 對等互連。

範例

範例 1:更新 vnet 對等互連的 AllowForwardedTraffic。

Update-AzDatabricksVNetPeering -Name vnet-peering-t1 -WorkspaceName azps-databricks-workspace-t1 -ResourceGroupName azps_test_gp_db -AllowForwardedTraffic $True

Name            ResourceGroupName
----            -----------------
vnet-peering-t1 azps_test_gp_db

此命令會更新 vnet 對等互連的 AllowForwardedTraffic。

範例 2:依 物件更新 vnet 對等互連的 AllowForwardedTraffic。

Get-AzDatabricksVNetPeering -WorkspaceName azps-databricks-workspace-t1 -ResourceGroupName azps_test_gp_db -Name vnet-peering-t1 | Update-AzDatabricksVNetPeering -AllowGatewayTransit $true

Name            ResourceGroupName
----            -----------------
vnet-peering-t1 azps_test_gp_db

此命令會依 物件更新 vnet 對等互連的 AllowForwardedTraffic。

參數

-AllowForwardedTraffic

[System.Management.Automation.SwitchParameter] 遠端虛擬網路中是否允許/不允許來自本機虛擬網络中 VM 的轉送流量。

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

-AllowGatewayTransit

[System.Management.Automation.SwitchParameter] 如果閘道連結可用於遠端虛擬網路,以連結至此虛擬網路。

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

-AllowVirtualNetworkAccess

[System.Management.Automation.SwitchParameter] 本機虛擬網络空間中的 VM 是否能夠存取遠端虛擬網路空間中的 VM。

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

-AsJob

以作業身分執行命令

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

-Confirm

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

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

-DatabricksAddressSpacePrefix

以 CIDR 表示法保留給此虛擬網路的位址區塊清單。

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

-DatabricksVirtualNetworkId

databricks 虛擬網路的標識碼。

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

-DefaultProfile

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

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

-InputObject

識別參數。 若要建構,請參閱 INPUTOBJECT 屬性的 NOTES 區段並建立哈希表。

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

-Name

VNetPeering 的名稱。

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

-NoWait

以異步方式執行命令

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

-RemoteAddressSpacePrefix

以 CIDR 表示法保留給此虛擬網路的位址區塊清單。

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

-RemoteVirtualNetworkId

遠端虛擬網路的識別碼。

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

-ResourceGroupName

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

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

-SubscriptionId

目標訂用帳戶的標識碼。

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

-UseRemoteGateway

[System.Management.Automation.SwitchParameter] 如果遠端閘道可用於此虛擬網路。 如果旗標設定為 true,而遠端對等互連上的 allowGatewayTransit 也是 true,虛擬網路將會使用遠端虛擬網路的閘道進行傳輸。 只有一個對等互連可以將此旗標設定為 true。 如果虛擬網路已經有閘道,則無法設定此旗標。

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

-WhatIf

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

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

-WorkspaceName

工作區的名稱。

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

輸入

IDatabricksIdentity

輸出

IVirtualNetworkPeering