Created
April 5, 2017 20:17
-
-
Save haydonryan/bc981a3d4ce3adb7f2a1ffbdc8ffbdb6 to your computer and use it in GitHub Desktop.
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
# TODO: | |
# Add HTTP listener | |
# Add ssh listener | |
# Add Websockets Listener | |
export LOCATION="westus" | |
export RESOURCE_GROUP="pcfmarketplace" | |
export VNET="pcf-net" | |
export SUBNET="AppGatewaySubnet" # Note this can't have anything in the back of it. | |
export PIP="pcf-appgw-ip" | |
azure network vnet subnet create \ | |
--name AppGatewaySubnet \ | |
--resource-group $RESOURCE_GROUP \ | |
--vnet-name $VNET \ | |
--address-prefix 10.0.1.0/24 \ | |
azure network public-ip create \ | |
--name pcf-appgw-ip \ | |
--resource-group $RESOURCE_GROUP \ | |
--location $LOCATION \ | |
$PIP | |
azure network application-gateway create \ | |
--name AppGateway \ | |
--frontend-port-name AppGatewayFrontEndPort \ | |
--public-ip-name $PIP \ | |
--location $LOCATION \ | |
--resource-group $RESOURCE_GROUP \ | |
--vnet-name $VNET \ | |
--subnet-name $SUBNET \ | |
--servers 10.0.0.25 \ | |
--capacity 2 \ | |
--sku-tier Standard \ | |
--sku-name Standard_Small \ | |
--http-settings-cookie-based-affinity Enabled \ | |
--http-settings-protocol Http \ | |
--cert-file system.23.99.2.212.cf.pcfazure.com.pfx \ | |
--cert-password hello \ | |
--frontend-port 443 \ | |
--routing-rule-type Basic \ | |
--http-settings-port 80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment