az network virtual-appliance inbound-security-rule
Manage Azure Network Virtual Appliance Inbound Security Rules.
Commands
Name | Description | Type | Status |
---|---|---|---|
az network virtual-appliance inbound-security-rule create |
Create the specified Network Virtual Appliance Inbound Security Rules. |
Core | GA |
az network virtual-appliance inbound-security-rule show |
Get the available specified Network Virtual Appliance Inbound Security Rules Collection. |
Core | GA |
az network virtual-appliance inbound-security-rule create
Create the specified Network Virtual Appliance Inbound Security Rules.
az network virtual-appliance inbound-security-rule create --name
--nva-name
--resource-group
[--id]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--rule-type {AutoExpire, Permanent}]
[--rules]
Examples
Create Inbound Security Rule of Permanent Rule Type
az network virtual-appliance inbound-security-rule create --network-virtual-appliance-name "MyName" -g "MyRG" --subscription {subID} --rule-type "Permanent" --name "PermanentRuleCollection" --rules "[{name:'inboundRule',protocol:'TCP',destination-port-ranges:['80-120'],applies-on:['slbIP'],source-address-prefix:'*'}]"
Create Inbound Security Rule of AutoExpire Rule Type
az network virtual-appliance inbound-security-rule create --network-virtual-appliance-name "MyName" -g "MyRG" --subscription {subID} --rule-type "AutoExpire" --name "TemporaryRuleCollection" --rules "[{name:'inboundRule',protocol:'TCP',destination-port-ranges:['80-120'],applies-on:['publicnicipconfig'],source-address-prefix:'20.0.0.0/32'}]"
Required Parameters
The name of security rule collection.
The name of the Network Virtual Appliance.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
Resource ID.
Do not wait for the long-running operation to finish.
Rule Type. This should be either AutoExpire or Permanent. Auto Expire Rule only creates NSG rules. Permanent Rule creates NSG rule and SLB LB Rule.
List of allowed rules. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az network virtual-appliance inbound-security-rule show
Get the available specified Network Virtual Appliance Inbound Security Rules Collection.
az network virtual-appliance inbound-security-rule show [--ids]
[--name]
[--nva-name]
[--resource-group]
[--subscription]
Examples
Get Inbound Security Rule
az network virtual-appliance inbound-security-rule show --nva-name "MyName" -g "MyRG" --subscription {subID} --name "InboundRuleCollection"
Optional Parameters
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
The name of security rule collection.
The name of the Network Virtual Appliance.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.