DevOps Buzz
Search…
Bash / Shell
Bitbucket
Distros
Elasticsearch
General
Guidelines / Standards
microk8s
Prometheus
RabbitMQ
VirtualBox
Application Gateway

Automate Appgw creation

Set your subscription.
1
az account set --subscription "MY SUBSCRIPTION"
Copied!
Create a public-ip.
1
az network public-ip create \
2
--name Company-AppGtw-DEV-TMP \
3
--resource-group MY-RG \
4
--allocation-method Static \
5
--location eastus \
6
--sku Standard \
7
--subscription "MY SUBSCRIPTION" \
8
--tags 'Tag1=value1' 'Tag2=value2'
9
--version IPv4
Copied!
Create the Application Gateway.
1
az network application-gateway create \
2
--name Company-AppGtw-DEV-TMP \
3
--resource-group MY-RG \
4
--capacity 1 \
5
--location eastus \
6
--public-ip-address Company-AppGtw-DEV-TMP \
7
--sku Standard_v2 \
8
--subscription "MY SUBSCRIPTION" \
9
--tags 'Tag1=value1' 'Tag2=value2'
Copied!
--sku Standard on IP create has to match --sku Standard_v2 on Application Gateway.

Order to create an entry

  1. 1.
    listener
  2. 2.
    backend pool
  3. 3.
    probe
  4. 4.
    http settings
  5. 5.
    rule