Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ZengTaoxu committed Mar 3, 2023
1 parent 88f4264 commit 581e610
Show file tree
Hide file tree
Showing 28 changed files with 15,057 additions and 7,188 deletions.
6 changes: 3 additions & 3 deletions Commands/network/nsg/_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Create a network security group.

- Create an NSG in a resource group within a region with tags.
```bash
network nsg create -g MyResourceGroup -n MyNsg --tags super_secure no_80 no_22
network nsg create -g MyResourceGroup -n MyNsg --tags foo=bar
```

### [2017-10-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmtzZWN1cml0eWdyb3Vwcy97fQ==/2017-10-01.xml) **Stable**
Expand All @@ -23,7 +23,7 @@ Create a network security group.

- Create an NSG in a resource group within a region with tags.
```bash
network nsg create -g MyResourceGroup -n MyNsg --tags super_secure no_80 no_22
network nsg create -g MyResourceGroup -n MyNsg --tags foo=bar
```

### [2018-11-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmtzZWN1cml0eWdyb3Vwcy97fQ==/2018-11-01.xml) **Stable**
Expand All @@ -34,7 +34,7 @@ Create a network security group.

- Create an NSG in a resource group within a region with tags.
```bash
network nsg create -g MyResourceGroup -n MyNsg --tags super_secure no_80 no_22
network nsg create -g MyResourceGroup -n MyNsg --tags foo=bar
```

### [2021-08-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmtzZWN1cml0eWdyb3Vwcy97fQ==/2021-08-01.xml) **Stable**
Expand Down
12 changes: 6 additions & 6 deletions Commands/network/nsg/rule/_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ Create a network security group rule.
network nsg rule create -g MyResourceGroup --nsg-name MyNsg -n MyNsgRule --priority 4096 --source-address-prefixes 208.130.28.0/24 --source-port-ranges 80 --destination-address-prefixes '*' --destination-port-ranges 80 8080 --access Deny --protocol Tcp --description "Deny from specific IP address ranges on 80 and 8080."
```

- Create a security rule using service tags. For more details visit https://aka.ms/servicetags
- Create a security rule using service tags (https://aka.ms/servicetags).
```bash
network nsg rule create -g MyResourceGroup --nsg-name MyNsg -n MyNsgRuleWithTags --priority 400 --source-address-prefixes VirtualNetwork --destination-address-prefixes Storage --destination-port-ranges '*' --direction Outbound --access Allow --protocol Tcp --description "Allow VirtualNetwork to Storage."
```

- Create a security rule using application security groups. https://aka.ms/applicationsecuritygroups
- Create a security rule using application security groups (https://aka.ms/applicationsecuritygroups).
```bash
network nsg rule create -g MyResourceGroup --nsg-name MyNsg -n MyNsgRuleWithAsg --priority 500 --source-address-prefixes Internet --destination-port-ranges 80 8080 --destination-asgs Web --access Allow --protocol Tcp --description "Allow Internet to Web ASG on ports 80,8080."
```
Expand All @@ -46,12 +46,12 @@ Create a network security group rule.
network nsg rule create -g MyResourceGroup --nsg-name MyNsg -n MyNsgRule --priority 4096 --source-address-prefixes 208.130.28.0/24 --source-port-ranges 80 --destination-address-prefixes '*' --destination-port-ranges 80 8080 --access Deny --protocol Tcp --description "Deny from specific IP address ranges on 80 and 8080."
```

- Create a security rule using service tags. For more details visit https://aka.ms/servicetags
- Create a security rule using service tags (https://aka.ms/servicetags).
```bash
network nsg rule create -g MyResourceGroup --nsg-name MyNsg -n MyNsgRuleWithTags --priority 400 --source-address-prefixes VirtualNetwork --destination-address-prefixes Storage --destination-port-ranges '*' --direction Outbound --access Allow --protocol Tcp --description "Allow VirtualNetwork to Storage."
```

- Create a security rule using application security groups. https://aka.ms/applicationsecuritygroups
- Create a security rule using application security groups (https://aka.ms/applicationsecuritygroups).
```bash
network nsg rule create -g MyResourceGroup --nsg-name MyNsg -n MyNsgRuleWithAsg --priority 500 --source-address-prefixes Internet --destination-port-ranges 80 8080 --destination-asgs Web --access Allow --protocol Tcp --description "Allow Internet to Web ASG on ports 80,8080."
```
Expand All @@ -72,12 +72,12 @@ Create a network security group rule.
network nsg rule create -g MyResourceGroup --nsg-name MyNsg -n MyNsgRule --priority 4096 --source-address-prefixes 208.130.28.0/24 --source-port-ranges 80 --destination-address-prefixes '*' --destination-port-ranges 80 8080 --access Deny --protocol Tcp --description "Deny from specific IP address ranges on 80 and 8080."
```

- Create a security rule using service tags. For more details visit https://aka.ms/servicetags
- Create a security rule using service tags (https://aka.ms/servicetags).
```bash
network nsg rule create -g MyResourceGroup --nsg-name MyNsg -n MyNsgRuleWithTags --priority 400 --source-address-prefixes VirtualNetwork --destination-address-prefixes Storage --destination-port-ranges '*' --direction Outbound --access Allow --protocol Tcp --description "Allow VirtualNetwork to Storage."
```

- Create a security rule using application security groups. https://aka.ms/applicationsecuritygroups
- Create a security rule using application security groups (https://aka.ms/applicationsecuritygroups).
```bash
network nsg rule create -g MyResourceGroup --nsg-name MyNsg -n MyNsgRuleWithAsg --priority 500 --source-address-prefixes Internet --destination-port-ranges 80 8080 --destination-asgs Web --access Allow --protocol Tcp --description "Allow Internet to Web ASG on ports 80,8080."
```
Expand Down
6 changes: 3 additions & 3 deletions Commands/network/nsg/rule/_update.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Update a network security group rule.
network nsg rule update -g MyResourceGroup --nsg-name MyNsg -n MyNsgRule --destination-address-prefix '*'
```

- Update a network security group rule. (autogenerated)
- Update a network security group rule.
```bash
network nsg rule update --name MyNsgRule --nsg-name MyNsg --resource-group MyResourceGroup --source-address-prefixes 208.130.28/24
```
Expand All @@ -31,7 +31,7 @@ Update a network security group rule.
network nsg rule update -g MyResourceGroup --nsg-name MyNsg -n MyNsgRule --destination-address-prefix '*'
```

- Update a network security group rule. (autogenerated)
- Update a network security group rule.
```bash
network nsg rule update --name MyNsgRule --nsg-name MyNsg --resource-group MyResourceGroup --source-address-prefixes 208.130.28/24
```
Expand All @@ -47,7 +47,7 @@ Update a network security group rule.
network nsg rule update -g MyResourceGroup --nsg-name MyNsg -n MyNsgRule --destination-address-prefix '*'
```

- Update a network security group rule. (autogenerated)
- Update a network security group rule.
```bash
network nsg rule update --name MyNsgRule --nsg-name MyNsg --resource-group MyResourceGroup --source-address-prefixes 208.130.28/24
```
Expand Down
Loading

0 comments on commit 581e610

Please sign in to comment.