2015/06/30

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



azure storage account create -g g-TokyoIaaS -l JapanEast --type
 LRS storageaccountname
info:    Executing command storage account create
+ Creating storage account

info:    storage account create command OK


$ azure network vnet create -g g-TokyoIaaS -l JapanEast -n vNet-Tokyo -a 172.16.0.0/16
info:    Executing command network vnet create
+ Looking up virtual network "vNet-Tokyo"        
+ Creating virtual network "vNet-Tokyo"     
+ Loading virtual network state
data:    Id                              : /subscriptions/XXX/resourceGroups/g-TokyoIaaS/providers/Microsoft.Network/virtualNetworks/vNet-Tokyo
data:    Name                            : vNet-Tokyo
data:    Type                            : Microsoft.Network/virtualNetworks
data:    Location                        : japaneast
data:    ProvisioningState               : Succeeded
data:    Address prefixes:
data:      172.16.0.0/16
info:    network vnet create command OK

$ azure network vnet subnet create -g g-TokyoIaaS -e vNet-Tokyo -n subnet-172.16.1 -a 172.16.1.0/24
info:    Executing command network vnet subnet create
+ Looking up the subnet "subnet-172.16.1"
+ Creating subnet "subnet-172.16.1"
+ Looking up the subnet "subnet-172.16.1"
data:    Id                              : /subscriptions/XXX/resourceGroups/g-TokyoIaaS/providers/Microsoft.Network/virtualNetworks/vNet-Tokyo/subnets/subnet-172.16.1
data:    Type                            : Microsoft.Network/virtualNetworks/subnets
data:    ProvisioningState               : Succeeded
data:    Name                            : subnet-172.16.1
data:    Address prefix                  : 172.16.1.0/24
data:    
info:    network vnet subnet create command OK