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 --rule-collection-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
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Resource ID.
Property | Value |
---|---|
Parameter group: | Parameters Arguments |
Do not wait for the long-running operation to finish.
Property | Value |
---|---|
Accepted values: | 0, 1, f, false, n, no, t, true, y, yes |
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.
Property | Value |
---|---|
Parameter group: | Properties Arguments |
Accepted values: | AutoExpire, Permanent |
List of allowed rules. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Property | Value |
---|---|
Parameter group: | Properties Arguments |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
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.
Property | Value |
---|---|
Default value: | False |
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 --rule-collection-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
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
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.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
The name of security rule collection.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
The name of the Network Virtual Appliance.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |