Update-AzVirtualApplianceInboundSecurityRule
Update the Inbound Security Rule of a Network Virtual Appliance Resource
Syntax
ResourceNameParameterSet (Default)
Update-AzVirtualApplianceInboundSecurityRule
-ResourceGroupName <String>
-VirtualApplianceName <String>
-Name <String>
-Rule <System.Collections.Generic.List`1[Microsoft.Azure.Commands.Network.Models.PSInboundSecurityRulesProperty]>
[-RuleType <String>]
[-Force]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
ResourceObjectParameterSet
Update-AzVirtualApplianceInboundSecurityRule
-VirtualAppliance <PSNetworkVirtualAppliance>
-Name <String>
-Rule <System.Collections.Generic.List`1[Microsoft.Azure.Commands.Network.Models.PSInboundSecurityRulesProperty]>
[-RuleType <String>]
[-Force]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
ResourceIdParameterSet
Update-AzVirtualApplianceInboundSecurityRule
-VirtualApplianceResourceId <String>
-Name <String>
-Rule <System.Collections.Generic.List`1[Microsoft.Azure.Commands.Network.Models.PSInboundSecurityRulesProperty]>
[-RuleType <String>]
[-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.
Parameter properties
Type: SwitchParameter
Default value: None
Supports wildcards: False
DontShow: False
Aliases: cf
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
Parameter properties
Type: IAzureContextContainer
Default value: None
Supports wildcards: False
DontShow: False
Aliases: AzContext, AzureRmContext, AzureCredential
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-Force
Do not ask for confirmation if you want to overwrite a resource
Parameter properties
Type: SwitchParameter
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-Name
The resource name.
Parameter properties
Type: String
Default value: None
Supports wildcards: True
DontShow: False
Aliases: ResourceName, InboundSecurityRuleCollectionName
Parameter sets
(All)
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-ResourceGroupName
The resource group name.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
ResourceNameParameterSet
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-Rule
Individual rule of the Inbound Security
Parameter properties
Parameter sets
(All)
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-RuleType
The Inbound Security Rule Type: AutoExpire or Permanent
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-VirtualAppliance
The parent Network Virtual Appliance object for this connection.
Parameter properties
Type: PSNetworkVirtualAppliance
Default value: None
Supports wildcards: False
DontShow: False
Aliases: ParentNva, NetworkVirtualAppliance
Parameter sets
ResourceObjectParameterSet
Position: Named
Mandatory: True
Value from pipeline: True
Value from pipeline by property name: False
Value from remaining arguments: False
-VirtualApplianceName
The parent Network Virtual Appliance name.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Aliases: ParentNvaName, NetworkVirtualApplianceName
Parameter sets
ResourceNameParameterSet
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-VirtualApplianceResourceId
The resource id of the parent Network Virtual Appliance for this connection.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Aliases: ParentNvaId, NetworkVirtualApplianceId
Parameter sets
ResourceIdParameterSet
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: True
Value from remaining arguments: False
-WhatIf
Shows what would happen if the cmdlet runs.
The cmdlet is not run.
Parameter properties
Type: SwitchParameter
Default value: None
Supports wildcards: False
DontShow: False
Aliases: wi
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
about_CommonParameters .
Outputs