tests/functional/Microsoft.Network/localNetworkGateways/deploy/deploy.json

{
    "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
    "contentVersion": "1.0.0.0",
    "parameters": {
        "localNetworkGatewayName": {
            "type": "string",
            "minLength": 1,
            "metadata": {
                "description": "Required. Name of the Local Network Gateway"
            }
        },
        "location": {
            "type": "string",
            "defaultValue": "[resourceGroup().location]",
            "metadata": {
                "description": "Optional. Location for all resources."
            }
        },
        "localAddressPrefixes": {
            "type": "array",
            "metadata": {
                "description": "Required. List of the local (on-premises) IP address ranges"
            }
        },
        "localGatewayPublicIpAddress": {
            "type": "string",
            "metadata": {
                "description": "Required. Public IP of the local gateway"
            }
        }
    },
    "resources": [
        {
            "type": "Microsoft.Network/localNetworkGateways",
            "apiVersion": "2020-08-01",
            "name": "[parameters('localNetworkGatewayName')]",
            "location": "[parameters('location')]",
            "properties": {
                "localNetworkAddressSpace": {
                    "addressPrefixes": "[parameters('localAddressPrefixes')]"
                },
                "gatewayIpAddress": "[parameters('localGatewayPublicIpAddress')]"
            }
        }
    ]
}