Create Application Gateway 

 

Creates an Application Gateway.

HTTP REQUEST

Method

Request URI

POST

https://management.core.windows.net/<subscription-id>/services/networking/applicationGateways

URI PARAMETERS

URI Parameter

api-version=<api-version>

Version of the API, set to 2015-04-01

REQUEST HEADERS

The following table describes the request headers.

URI Parameter

Description

x-ms-version

Version of the API, set to 2015-04-01

REQUEST BODY

<?xml version="1.0" encoding="utf-8"?>
<CreateApplicationGatewayParameters xmlns="https://schemas.microsoft.com/windowsazure">
               <Description>Description of the Application Gateway</Description>
               <GatewaySize>Medium</GatewaySize>
               <InstanceCount>2</InstanceCount>
               <Name>MyApplicationGateway</Name>
               <Subnets>
                   <Subnet>Subnet1</Subnet>
               </Subnets>
               <VnetName>gatewayVnet</VnetName>

</CreateApplicationGatewayParameters>

Element name

Description

Name

Name of the application gateway

Description

Description of the application gateway

VnetName

Name of the VNet in which application gateway is to be created

Subnets

List of subnets. Currently only one subnet is supported.

Subnets.Subnet

Name of the subnet within the VNet

InstanceCount

Number of instances to create for this gateway

GatewaySize

Size of each gateway instance (Small|Medium|Large)

STATUS CODE

A successful operation returns status code 201 (Created).

RESPONSE BODY

<?xml version="1.0" encoding="utf-8"?>
<GatewayOperationAsyncResponse xmlns="https://schemas.microsoft.com/windowsazure">
  <ID>operation-id</ID>
</GatewayOperationAsyncResponse>

Element name

Description

operation-id

Uniquely identifies the operation. To get more information about the status of an operation, such as whether it is still executing or complete, you can call Get Virtual Network Gateway Operation Status with the operation ID.