2015/08/25

Azure CLI で Azure ARM:これだけ!シリーズ その5


$ azure network nic address-pool add -g g-TokyoIaaS -l lb-web -a lbwebAddressPool -n nic-web14
info:    Executing command network nic address-pool add
+ Looking up the network interface "nic-web14"           
+ Looking up the load balancer "lb-web"
+ Updating network interface "nic-web14"
info:    network nic address-pool add command OK


$ azure network lb inbound-nat-rule create -g g-TokyoIaaS -l lb-web -f 50014 -b 3389 -i frontend-Web -n natruleFor-nic-web14
info:    Executing command network lb inbound-nat-rule create
+ Looking up the load balancer "lb-web"
+ Updating load balancer "lb-web"
+ Looking up the load balancer "lb-web"
data:    Id                              : /subscriptions/XXX/resourceGroups/g-TokyoIaaS/providers/Microsoft.Network/loadBalancers/lb-web/inboundNatRules/natruleFor-nic-web14
data:    Type                            : Microsoft.Network/loadBalancers/inboundNatRules
data:    Name                            : natruleFor-nic-web14
data:    Provisioning state              : Succeeded
data:    Protocol                        : Tcp
data:    Frontend port                   : 50014
data:    Backend port                    : 3389
data:    Enable floating IP              : false
data:    Idle timeout in minutes         : 4
data:    Frontend IP configuration       : /subscriptions/XXX/resourceGroups/g-TokyoIaaS/providers/Microsoft.Network/loadBalancers/lb-web/frontendIPConfigurations/frontend-Web
data:    
info:    network lb inbound-nat-rule create command OK

$ azure network nic inbound-nat-rule add -g g-TokyoIaaS -l lb-web -r natruleFor-nic-web14 -n nic-web14
info:    Executing command network nic inbound-nat-rule add
+ Looking up the network interface "nic-web14"          
+ Looking up the load balancer "lb-web"
+ Updating network interface "nic-web14"
info:    network nic inbound-nat-rule add command OK