PSRule.Rules.Azure/docs/examples-ase.json

67 строки
1.9 KiB
JSON

{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.11.1.770",
"templateHash": "13381170219553357893"
}
},
"parameters": {
"aseName": {
"type": "string",
"defaultValue": "001-ase",
"metadata": {
"description": "Name of the App Service Environment"
}
},
"virtualNetworkName": {
"type": "string",
"defaultValue": "ase-001-vnet",
"metadata": {
"description": "The name of the vnet"
}
},
"vnetResourceGroupName": {
"type": "string",
"defaultValue": "ase-001-rg",
"metadata": {
"description": "The resource group name that contains the vnet"
}
},
"subnetName": {
"type": "string",
"defaultValue": "ase-001-sn",
"metadata": {
"description": "Subnet name that will contain the App Service Environment"
}
},
"location": {
"type": "string",
"defaultValue": "[resourceGroup().location]",
"metadata": {
"description": "Location for the resources"
}
}
},
"resources": [
{
"type": "Microsoft.Web/hostingEnvironments",
"apiVersion": "2022-03-01",
"name": "[parameters('aseName')]",
"location": "[parameters('location')]",
"kind": "ASEV3",
"tags": {
"displayName": "App Service Environment",
"usage": "Hosting awesome applications",
"owner": "Platform"
},
"properties": {
"virtualNetwork": {
"id": "[extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, parameters('vnetResourceGroupName')), 'Microsoft.Network/virtualNetworks/subnets', parameters('virtualNetworkName'), parameters('subnetName'))]"
}
}
}
]
}