forked from Azure/azure-cli-extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Azure#103 from kairu-ms/migrate-network-lb-address…
…-pool Migrate commands for `network cross-region-lb address-pool`
- Loading branch information
Showing
19 changed files
with
12,395 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
16
Commands/network/cross-region-lb/address-pool/address/_add.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
16
Commands/network/cross-region-lb/address-pool/address/_list.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
16
Commands/network/cross-region-lb/address-pool/address/_remove.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
16
Commands/network/cross-region-lb/address-pool/address/_show.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
16
Commands/network/cross-region-lb/address-pool/address/_update.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
20
Commands/network/cross-region-lb/address-pool/address/readme.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.