# Application Gateway

## Automate Appgw creation

Set your subscription.

```
az account set --subscription "MY SUBSCRIPTION"
```

Create a public-ip.

```
az network public-ip create \
  --name Company-AppGtw-DEV-TMP \
  --resource-group MY-RG \
  --allocation-method Static \
  --location eastus \
  --sku Standard \
  --subscription "MY SUBSCRIPTION" \
  --tags 'Tag1=value1' 'Tag2=value2'
  --version IPv4
```

Create the Application Gateway.

```
az network application-gateway create \
  --name Company-AppGtw-DEV-TMP \
  --resource-group MY-RG \
  --capacity 1 \
  --location eastus \
  --public-ip-address Company-AppGtw-DEV-TMP \
  --sku Standard_v2 \
  --subscription "MY SUBSCRIPTION" \
  --tags 'Tag1=value1' 'Tag2=value2'
```

`--sku Standard` on IP create has to match `--sku Standard_v2` on Application Gateway.

## Order to create an entry

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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.devops.buzz/public/azure/application-gateway.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
