편집

다음을 통해 공유


Update-AzVirtualApplianceInboundSecurityRule

Update the Inbound Security Rule of a Network Virtual Appliance Resource

Syntax

Update-AzVirtualApplianceInboundSecurityRule
      -ResourceGroupName <String>
      -VirtualApplianceName <String>
      -Name <String>
      [-RuleType <String>]
      -Rule <System.Collections.Generic.List`1[Microsoft.Azure.Commands.Network.Models.PSInboundSecurityRulesProperty]>
      [-Force]
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Update-AzVirtualApplianceInboundSecurityRule
      -VirtualAppliance <PSNetworkVirtualAppliance>
      -Name <String>
      [-RuleType <String>]
      -Rule <System.Collections.Generic.List`1[Microsoft.Azure.Commands.Network.Models.PSInboundSecurityRulesProperty]>
      [-Force]
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Update-AzVirtualApplianceInboundSecurityRule
      -VirtualApplianceResourceId <String>
      -Name <String>
      [-RuleType <String>]
      -Rule <System.Collections.Generic.List`1[Microsoft.Azure.Commands.Network.Models.PSInboundSecurityRulesProperty]>
      [-Force]
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

The Update-AzVirtualApplianceInboundSecurityRule command updates/creates the Inbound Security Rule of a Network Virtual Appliance. The Inbound Security Rule creates an NSG rule on the NVA and a LB rule on the SLB attached to NVA if the rule type is defined as: Permanent

Examples

Example 1

Update-AzVirtualApplianceInboundSecurityRule -ResourceGroupName InboundRuleRg -VirtualApplianceName nva1 -Name ruleCollection1 -RuleType Permanent -Rule $inbound

The above command creates or updates the Inbound Security rule with the given Rule collection name: ruleCollection1 on the NVA: nva1 with rule type permanent having rules as defined in the rules property. The Inbound Security Rule will created an NSG rule & a SLB LB rule.

Example 2

Update-AzVirtualApplianceInboundSecurityRule -ResourceGroupName InboundRuleRg -VirtualApplianceName nva1 -Name ruleCollection2 -RuleType AutoExpire -Rule $inbound

The above command creates or updates the Inbound Security rule with the given Rule collection name: ruleCollection2 on the NVA: nva1 with rule type Auto Expire having rules as defined in the rules property. The Inbound Security Rule will created only an NSG rule.

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, InboundSecurityRuleCollectionName
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

-Rule

Individual rule of the Inbound Security

Type:List<T>[PSInboundSecurityRulesProperty]
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-RuleType

The Inbound Security Rule Type: AutoExpire or Permanent

Type:String
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

PSInboundSecurityRule