編集

次の方法で共有


Update-AzNetworkVirtualApplianceConnection

Update or Change a Network Virtual Appliance Connection resource.

Syntax

Update-AzNetworkVirtualApplianceConnection
      -ResourceGroupName <String>
      -VirtualApplianceName <String>
      -Name <String>
      [-RoutingConfiguration <PSRoutingConfiguration>]
      [-Force]
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Update-AzNetworkVirtualApplianceConnection
      -VirtualAppliance <PSNetworkVirtualAppliance>
      -Name <String>
      [-RoutingConfiguration <PSRoutingConfiguration>]
      [-Force]
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Update-AzNetworkVirtualApplianceConnection
      -VirtualApplianceResourceId <String>
      -Name <String>
      [-RoutingConfiguration <PSRoutingConfiguration>]
      [-Force]
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

The Update-AzNetworkVirtualApplianceConnectiuon modifies a Network Virtual Appliance Connection resource.

Examples

Example 1

$rt1 = Get-AzVHubRouteTable -ResourceGroupName testrg -VirtualHubName vhub1 -Name "noneRouteTable"  
$routingconfig = New-AzRoutingConfiguration -AssociatedRouteTable $rt1.Id -Label @("none") -Id @($rt1.Id)       
Update-AzNetworkVirtualApplianceConnection -ResourceGroupName testrg -VirtualApplianceName nva -Name defaultConnection -RoutingConfiguration $routingconfig

Name                   : defaultConnection
ProvisioningState      : Succeeded
EnableInternetSecurity : False
BgpPeerAddress         : {10.2.112.5, 10.2.112.6}
Asn                    : 64512
TunnelIdentifier       : 0
RoutingConfiguration   : {
                           "AssociatedRouteTable": {
                             "Id": "/subscriptions/{subscriptionId}/resourceGroups/testrg/providers/Microsoft.Network/virtualHubs
                         /vhub1/hubRouteTables/noneRouteTable"
                           },
                           "PropagatedRouteTables": {
                             "Labels": [
                               "none"
                             ],
                             "Ids": [
                               {
                                 "Id": "/subscriptions/{subscriptionId}/resourceGroups/testrg/providers/Microsoft.Network/virtualHubs
                         /vhub1/hubRouteTables/noneRouteTable"
                               }
                             ]
                           },
                           "InboundRouteMap": {},
                           "OutboundRouteMap": {}
                         }

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with Azure.

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Force

Do not ask for confirmation if you want to overwrite a resource

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Name

The resource name.

Type:String
Aliases:ResourceName, NetworkVirtualApplianceConnectionName
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:True

-ResourceGroupName

The resource group name.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-RoutingConfiguration

The routing configuration for this nva connection

Type:PSRoutingConfiguration
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-VirtualAppliance

The parent Network Virtual Appliance object for this connection.

Type:PSNetworkVirtualAppliance
Aliases:ParentNva, NetworkVirtualAppliance
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-VirtualApplianceName

The parent Network Virtual Appliance name.

Type:String
Aliases:ParentNvaName, NetworkVirtualApplianceName
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-VirtualApplianceResourceId

The resource id of the parent Network Virtual Appliance for this connection.

Type:String
Aliases:ParentNvaId, NetworkVirtualApplianceId
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

PSNetworkVirtualAppliance

String

Outputs

PSNetworkVirtualApplianceConnection