Skip to content

Commit

Permalink
Merge pull request Azure#103 from kairu-ms/migrate-network-lb-address…
Browse files Browse the repository at this point in the history
…-pool

Migrate commands for `network cross-region-lb address-pool`
  • Loading branch information
necusjz authored Feb 2, 2023
2 parents 09d21e3 + 9ebb962 commit 12e2eeb
Show file tree
Hide file tree
Showing 19 changed files with 12,395 additions and 0 deletions.
26 changes: 26 additions & 0 deletions Commands/network/cross-region-lb/address-pool/_create.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# [Command] _network cross-region-lb address-pool create_

Create load balancer backend address pool.

## Versions

### [2022-05-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL2xvYWRiYWxhbmNlcnMve30vYmFja2VuZGFkZHJlc3Nwb29scy97fQ==/2022-05-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/loadbalancers/{}/backendaddresspools/{} 2022-05-01 -->

#### examples

- Create an address pool.
```bash
network cross-region-lb address-pool create -g MyResourceGroup --lb-name MyLb -n MyAddressPool
```

- Create an address pool with several backend addresses using shorthand syntax arguments.
```bash
network cross-region-lb address-pool create -g MyResourceGroup --lb-name MyLb -n MyAddressPool --backend-addresses "[{name:addr1,frontend-ip-address:'/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_lb_address_pool_addresses000001/providers/Microsoft.Network/loadBalancers/regional-lb/frontendIPConfigurations/fe-rlb1'},{name:addr2,frontend-ip-address:'/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_lb_address_pool_addresses000001/providers/Microsoft.Network/loadBalancers/regional-lb/frontendIPConfigurations/fe-rlb2'}]"
```

- Create an address pool with several backend addresses using config file
```bash
network cross-region-lb address-pool create -g MyResourceGroup --lb-name MyLb -n MyAddressPool --backend-addresses config_file.json
```
16 changes: 16 additions & 0 deletions Commands/network/cross-region-lb/address-pool/_delete.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _network cross-region-lb address-pool delete_

Delete the specified load balancer backend address pool.

## Versions

### [2022-05-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL2xvYWRiYWxhbmNlcnMve30vYmFja2VuZGFkZHJlc3Nwb29scy97fQ==/2022-05-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/loadbalancers/{}/backendaddresspools/{} 2022-05-01 -->

#### examples

- Delete an address pool.
```bash
network cross-region-lb address-pool delete -g MyResourceGroup --lb-name MyLb -n MyAddressPool
```
16 changes: 16 additions & 0 deletions Commands/network/cross-region-lb/address-pool/_list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _network cross-region-lb address-pool list_

List all the load balancer backed address pools.

## Versions

### [2022-05-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL2xvYWRiYWxhbmNlcnMve30vYmFja2VuZGFkZHJlc3Nwb29scw==/2022-05-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/loadbalancers/{}/backendaddresspools 2022-05-01 -->

#### examples

- List address pools.
```bash
network cross-region-lb address-pool list -g MyResourceGroup --lb-name MyLb -o table
```
16 changes: 16 additions & 0 deletions Commands/network/cross-region-lb/address-pool/_show.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _network cross-region-lb address-pool show_

Get load balancer backend address pool.

## Versions

### [2022-05-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL2xvYWRiYWxhbmNlcnMve30vYmFja2VuZGFkZHJlc3Nwb29scy97fQ==/2022-05-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/loadbalancers/{}/backendaddresspools/{} 2022-05-01 -->

#### examples

- Get the details of an address pool.
```bash
network cross-region-lb address-pool show -g MyResourceGroup --lb-name MyLb -n MyAddressPool
```
26 changes: 26 additions & 0 deletions Commands/network/cross-region-lb/address-pool/_update.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# [Command] _network cross-region-lb address-pool update_

Update a load balancer backend address pool.

## Versions

### [2022-05-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL2xvYWRiYWxhbmNlcnMve30vYmFja2VuZGFkZHJlc3Nwb29scy97fQ==/2022-05-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/loadbalancers/{}/backendaddresspools/{} 2022-05-01 -->

#### examples

- Update all backend addresses in the address pool using shorthand syntax
```bash
network cross-region-lb address-pool create -g MyResourceGroup --lb-name MyLb -n MyAddressPool --backend-addresses "[{name:addr1,frontend-ip-address:'/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_lb_address_pool_addresses000001/providers/Microsoft.Network/loadBalancers/regional-lb/frontendIPConfigurations/fe-rlb1'},{name:addr2,frontend-ip-address:'/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_lb_address_pool_addresses000001/providers/Microsoft.Network/loadBalancers/regional-lb/frontendIPConfigurations/fe-rlb2'}]"
```

- Update the frontend-ip-address of the first backend address in the address pool using shorthand syntax
```bash
network cross-region-lb address-pool create -g MyResourceGroup --lb-name MyLb -n MyAddressPool --backend-addresses [0].frontend-ip-address='/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_lb_address_pool_addresses000001/providers/Microsoft.Network/loadBalancers/regional-lb/frontendIPConfigurations/fe-rlb1'
```

- Remove the first backend address in the address pool using shorthand syntax
```bash
network cross-region-lb address-pool create -g MyResourceGroup --lb-name MyLb -n MyAddressPool --backend-addresses [0]=null
```
16 changes: 16 additions & 0 deletions Commands/network/cross-region-lb/address-pool/address/_add.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _network cross-region-lb address-pool address add_

Add one backend address into the load balance backend address pool.

## Versions

### [2022-05-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL2xvYWRiYWxhbmNlcnMve30vYmFja2VuZGFkZHJlc3Nwb29scy97fQ==/2022-05-01.xml) **Preview**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/loadbalancers/{}/backendaddresspools/{} 2022-05-01 properties.loadBalancerBackendAddresses[] -->

#### examples

- Add one backend address into the load balance backend address pool.
```bash
network cross-region-lb address-pool address add -g MyResourceGroup --lb-name MyLb --pool-name MyAddressPool -n MyAddress --frontend-ip-address /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_lb_address_pool_addresses000001/providers/Microsoft.Network/loadBalancers/regional-lb/frontendIPConfigurations/fe-rlb2
```
16 changes: 16 additions & 0 deletions Commands/network/cross-region-lb/address-pool/address/_list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _network cross-region-lb address-pool address list_

List all backend addresses of the load balance backend address pool.

## Versions

### [2022-05-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL2xvYWRiYWxhbmNlcnMve30vYmFja2VuZGFkZHJlc3Nwb29scy97fQ==/2022-05-01.xml) **Preview**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/loadbalancers/{}/backendaddresspools/{} 2022-05-01 properties.loadBalancerBackendAddresses -->

#### examples

- List all backend addresses of the load balance backend address pool.
```bash
network cross-region-lb address-pool address list -g MyResourceGroup --lb-name MyLb --pool-name MyAddressPool
```
16 changes: 16 additions & 0 deletions Commands/network/cross-region-lb/address-pool/address/_remove.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _network cross-region-lb address-pool address remove_

Remove one backend address from the load balance backend address pool.

## Versions

### [2022-05-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL2xvYWRiYWxhbmNlcnMve30vYmFja2VuZGFkZHJlc3Nwb29scy97fQ==/2022-05-01.xml) **Preview**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/loadbalancers/{}/backendaddresspools/{} 2022-05-01 properties.loadBalancerBackendAddresses[] -->

#### examples

- Remove one backend address from the load balance backend address pool.
```bash
network cross-region-lb address-pool address remove -g MyResourceGroup --lb-name MyLb --pool-name MyAddressPool -n MyAddress
```
16 changes: 16 additions & 0 deletions Commands/network/cross-region-lb/address-pool/address/_show.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _network cross-region-lb address-pool address show_

Show the backend address from the load balance backend address pool.

## Versions

### [2022-05-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL2xvYWRiYWxhbmNlcnMve30vYmFja2VuZGFkZHJlc3Nwb29scy97fQ==/2022-05-01.xml) **Preview**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/loadbalancers/{}/backendaddresspools/{} 2022-05-01 properties.loadBalancerBackendAddresses[] -->

#### examples

- Show the backend address from the load balance backend address pool.
```bash
network cross-region-lb address-pool address show -g MyResourceGroup --lb-name MyLb --pool-name MyAddressPool -n MyAddress
```
16 changes: 16 additions & 0 deletions Commands/network/cross-region-lb/address-pool/address/_update.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _network cross-region-lb address-pool address update_

Update the backend address into the load balance backend address pool.

## Versions

### [2022-05-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL2xvYWRiYWxhbmNlcnMve30vYmFja2VuZGFkZHJlc3Nwb29scy97fQ==/2022-05-01.xml) **Preview**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/loadbalancers/{}/backendaddresspools/{} 2022-05-01 properties.loadBalancerBackendAddresses[] -->

#### examples

- Update the frontend ip of the backend address into the load balance backend address pool.
```bash
network cross-region-lb address-pool address update -g MyResourceGroup --lb-name MyLb --pool-name MyAddressPool -n MyAddress --frontend-ip-address /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_lb_address_pool_addresses000001/providers/Microsoft.Network/loadBalancers/regional-lb/frontendIPConfigurations/fe-rlb2
```
20 changes: 20 additions & 0 deletions Commands/network/cross-region-lb/address-pool/address/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# [Group] _network cross-region-lb address-pool address_

Manage backend addresses of the cross-region load balance backend address pool.

## Commands

- [add](/Commands/network/cross-region-lb/address-pool/address/_add.md)
: Add one backend address into the load balance backend address pool.

- [list](/Commands/network/cross-region-lb/address-pool/address/_list.md)
: List all backend addresses of the load balance backend address pool.

- [remove](/Commands/network/cross-region-lb/address-pool/address/_remove.md)
: Remove one backend address from the load balance backend address pool.

- [show](/Commands/network/cross-region-lb/address-pool/address/_show.md)
: Show the backend address from the load balance backend address pool.

- [update](/Commands/network/cross-region-lb/address-pool/address/_update.md)
: Update the backend address into the load balance backend address pool.
25 changes: 25 additions & 0 deletions Commands/network/cross-region-lb/address-pool/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# [Group] _network cross-region-lb address-pool_

Manage address pools of a load balancer.

## Subgroups

- [address](/Commands/network/cross-region-lb/address-pool/address/readme.md)
: Manage backend addresses of the cross-region load balance backend address pool.

## Commands

- [create](/Commands/network/cross-region-lb/address-pool/_create.md)
: Create load balancer backend address pool.

- [delete](/Commands/network/cross-region-lb/address-pool/_delete.md)
: Delete the specified load balancer backend address pool.

- [list](/Commands/network/cross-region-lb/address-pool/_list.md)
: List all the load balancer backed address pools.

- [show](/Commands/network/cross-region-lb/address-pool/_show.md)
: Get load balancer backend address pool.

- [update](/Commands/network/cross-region-lb/address-pool/_update.md)
: Update a load balancer backend address pool.
10 changes: 10 additions & 0 deletions Commands/network/cross-region-lb/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# [Group] _network cross-region-lb_

Manage and configure cross-region load balancers.

To learn more about Azure Load Balancer visit https://learn.microsoft.com/en-us/azure/load-balancer/tutorial-cross-region-cli.

## Subgroups

- [address-pool](/Commands/network/cross-region-lb/address-pool/readme.md)
: Manage address pools of a load balancer.
3 changes: 3 additions & 0 deletions Commands/network/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ Manage Azure Network resources.
- [bastion](/Commands/network/bastion/readme.md)
: Manage Azure Bastion host machines.

- [cross-region-lb](/Commands/network/cross-region-lb/readme.md)
: Manage and configure cross-region load balancers.

- [custom-ip](/Commands/network/custom-ip/readme.md)
: Manage custom IP.

Expand Down
Loading

0 comments on commit 12e2eeb

Please sign in to comment.