Skip to main content

application_gateways

Creates, updates, deletes, gets or lists an application_gateways resource.

Overview

Nameapplication_gateways
TypeResource
Idazure.network.application_gateways

Fields

The following fields are returned by SELECT queries:

Request successful. The operation returns an ApplicationGateway resource.

NameDatatypeDescription
idstring (arm-id)Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
namestringThe name of the resource
etagstringA unique read-only string that changes whenever the resource is updated.
identityobjectThe identity of the application gateway, if configured.
propertiesobjectProperties of the application gateway.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
zonesarrayA list of availability zones denoting where the resource needs to come from.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, applicationGatewayName, subscriptionIdGets the specified application gateway.
listselectresourceGroupName, subscriptionIdLists all application gateways in a resource group.
list_allselectsubscriptionIdGets all the application gateways in a subscription.
create_or_updateinsertresourceGroupName, applicationGatewayName, subscriptionIdCreates or updates the specified application gateway.
deletedeleteresourceGroupName, applicationGatewayName, subscriptionIdDeletes the specified application gateway.
update_tagsexecresourceGroupName, applicationGatewayName, subscriptionIdUpdates the specified application gateway tags.
startexecresourceGroupName, applicationGatewayName, subscriptionIdStarts the specified application gateway.
stopexecresourceGroupName, applicationGatewayName, subscriptionIdStops the specified application gateway in a resource group.
backend_healthexecresourceGroupName, applicationGatewayName, subscriptionId$expandGets the backend health of the specified application gateway in a resource group.
backend_health_on_demandexecresourceGroupName, applicationGatewayName, subscriptionId$expandGets the backend health for given combination of backend pool and http setting of the specified application gateway in a resource group.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
applicationGatewayNamestringThe name of the application gateway.
resourceGroupNamestringThe name of the resource group.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.
$expandstringExpands BackendAddressPool and BackendHttpSettings referenced in backend health.

SELECT examples

Gets the specified application gateway.

SELECT
id,
name,
etag,
identity,
properties,
systemData,
type,
zones
FROM azure.network.application_gateways
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND applicationGatewayName = '{{ applicationGatewayName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;

INSERT examples

Creates or updates the specified application gateway.

INSERT INTO azure.network.application_gateways (
data__properties,
data__zones,
data__identity,
resourceGroupName,
applicationGatewayName,
subscriptionId
)
SELECT
'{{ properties }}',
'{{ zones }}',
'{{ identity }}',
'{{ resourceGroupName }}',
'{{ applicationGatewayName }}',
'{{ subscriptionId }}'
RETURNING
id,
name,
etag,
identity,
properties,
systemData,
type,
zones
;

DELETE examples

Deletes the specified application gateway.

DELETE FROM azure.network.application_gateways
WHERE resourceGroupName = '{{ resourceGroupName }}' --required
AND applicationGatewayName = '{{ applicationGatewayName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
;

Lifecycle Methods

Updates the specified application gateway tags.

EXEC azure.network.application_gateways.update_tags 
@resourceGroupName='{{ resourceGroupName }}' --required,
@applicationGatewayName='{{ applicationGatewayName }}' --required,
@subscriptionId='{{ subscriptionId }}' --required
@@json=
'{
"tags": "{{ tags }}"
}'
;