Skip to content

Commit

Permalink
Add NSG ingress to compliment ports added to load balancer
Browse files Browse the repository at this point in the history
  • Loading branch information
danhigham committed Jun 7, 2017
1 parent aeb2a75 commit 301c8f8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions deploy-bosh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,9 @@ if [ -d "recipes/$recipe" ]; then
protocol=$(cat recipes/$recipe/index.json | jq -r ".infra.loadBalancer.rules[$i].protocol")
ruleName=$(cat recipes/$recipe/index.json | jq -r ".infra.loadBalancer.rules[$i].name")

# create load balancer rule along with matching NSG ingress rule
az network lb rule create -g $vmResGroup --lb-name $lbName -n $ruleName --protocol $protocol --frontend-port $externalPort --backend-port $internalPort
az network nsg rule create -g $vmResGroup --nsg-name nsg-bosh --protocol $protocol --destination-port-range $externalPort --priority $(($i + 2000)) -n $ruleName

i=$(($i + 1))
done
Expand Down

0 comments on commit 301c8f8

Please sign in to comment.