Add Route Table to Subnet

 

Updated: September 15, 2015

The Add Route Table to Subnet operation associates the route table with the specified subnet in a virtual network.

The Add Route Table to Subnet request is specified as follows. Replace <subscription-id> with your subscription ID, <virtual-network-name> with name of the virtual network and <subnet-name> with the name of subnet on which association will be added.

Method

Request URI

POST

https://management.core.windows.net/<subscription-id>/services/virtualnetwork/<virtual-network-name>/subnets/<subnet-name>/routetables

The following table describes the request headers.

Request Header

Description

x-ms-version

Required. Specifies the version of the operation to use for this request. The value of this header must be set to 2015-04-01 or higher.

<RouteTableAssociation xmlns="http://schemas.microsoft.com/windowsazure"> 
   <RouteTableName>route-table-name</RouteTableName> 
</RouteTableAssociation> 

Element name

Description

RouteTableName

Required. Specifies the name of the route table that will be associated with the subnet.

The response includes an HTTP status code, a set of response headers, and a response body.

A successful operation returns status code 202 (Accepted).

The response for this operation includes the following headers. The response may also include additional standard HTTP headers. All standard headers conform to the HTTP/1.1 protocol specification.

Response Header

Description

x-ms-request-id

A value that uniquely identifies a request made against the management service.

Show: