Skip to content

Instantly share code, notes, and snippets.

@paulyuk
Created April 3, 2024 15:16
Show Gist options
  • Save paulyuk/c0a6ad7fd125a931c66788f57d205800 to your computer and use it in GitHub Desktop.
Save paulyuk/c0a6ad7fd125a931c66788f57d205800 to your computer and use it in GitHub Desktop.
Flex beta function - from Portal (eastasia)
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"sites_py_flex_beta_function2_name": {
"defaultValue": "py-flex-beta-function2",
"type": "String"
},
"serverfarms_py_flex_beta_function2FlexPlan_externalid": {
"defaultValue": "/subscriptions/ca5ce512-88e1-44b1-97c6-22caf84fb2b0/resourceGroups/py-flex-beta-2/providers/Microsoft.Web/serverfarms/py-flex-beta-function2FlexPlan",
"type": "String"
}
},
"variables": {},
"resources": [
{
"type": "Microsoft.Web/sites",
"apiVersion": "2023-01-01",
"name": "[parameters('sites_py_flex_beta_function2_name')]",
"location": "East Asia",
"kind": "functionapp,linux",
"properties": {
"enabled": true,
"hostNameSslStates": [
{
"name": "[concat(parameters('sites_py_flex_beta_function2_name'), '.azurewebsites.net')]",
"sslState": "Disabled",
"hostType": "Standard"
},
{
"name": "[concat(parameters('sites_py_flex_beta_function2_name'), '.scm.azurewebsites.net')]",
"sslState": "Disabled",
"hostType": "Repository"
}
],
"serverFarmId": "[parameters('serverfarms_py_flex_beta_function2FlexPlan_externalid')]",
"reserved": true,
"isXenon": false,
"hyperV": false,
"vnetRouteAllEnabled": false,
"vnetImagePullEnabled": false,
"vnetContentShareEnabled": false,
"siteConfig": {
"numberOfWorkers": 1,
"acrUseManagedIdentityCreds": false,
"alwaysOn": false,
"http20Enabled": true,
"functionAppScaleLimit": 100,
"minimumElasticInstanceCount": 0
},
"scmSiteAlsoStopped": false,
"clientAffinityEnabled": false,
"clientCertEnabled": false,
"clientCertMode": "Required",
"hostNamesDisabled": false,
"customDomainVerificationId": "E664F70DA87D5B2C862C0D73027BB6FED9986023DC3BDF377BEEC85AE6995BD2",
"containerSize": 1536,
"dailyMemoryTimeQuota": 0,
"httpsOnly": false,
"redundancyMode": "None",
"storageAccountRequired": false,
"keyVaultReferenceIdentity": "SystemAssigned"
}
},
{
"type": "Microsoft.Web/sites/basicPublishingCredentialsPolicies",
"apiVersion": "2023-01-01",
"name": "[concat(parameters('sites_py_flex_beta_function2_name'), '/ftp')]",
"location": "East Asia",
"dependsOn": [
"[resourceId('Microsoft.Web/sites', parameters('sites_py_flex_beta_function2_name'))]"
],
"properties": {
"allow": false
}
},
{
"type": "Microsoft.Web/sites/basicPublishingCredentialsPolicies",
"apiVersion": "2023-01-01",
"name": "[concat(parameters('sites_py_flex_beta_function2_name'), '/scm')]",
"location": "East Asia",
"dependsOn": [
"[resourceId('Microsoft.Web/sites', parameters('sites_py_flex_beta_function2_name'))]"
],
"properties": {
"allow": false
}
},
{
"type": "Microsoft.Web/sites/config",
"apiVersion": "2023-01-01",
"name": "[concat(parameters('sites_py_flex_beta_function2_name'), '/web')]",
"location": "East Asia",
"dependsOn": [
"[resourceId('Microsoft.Web/sites', parameters('sites_py_flex_beta_function2_name'))]"
],
"properties": {
"numberOfWorkers": 1,
"defaultDocuments": [
"Default.htm",
"Default.html",
"Default.asp",
"index.htm",
"index.html",
"iisstart.htm",
"default.aspx",
"index.php"
],
"netFrameworkVersion": "v4.0",
"requestTracingEnabled": false,
"remoteDebuggingEnabled": false,
"httpLoggingEnabled": false,
"acrUseManagedIdentityCreds": false,
"logsDirectorySizeLimit": 35,
"detailedErrorLoggingEnabled": false,
"publishingUsername": "$py-flex-beta-function2",
"scmType": "None",
"use32BitWorkerProcess": false,
"webSocketsEnabled": false,
"alwaysOn": false,
"managedPipelineMode": "Integrated",
"virtualApplications": [
{
"virtualPath": "/",
"physicalPath": "site\\wwwroot",
"preloadEnabled": false
}
],
"loadBalancing": "LeastRequests",
"experiments": {
"rampUpRules": []
},
"autoHealEnabled": false,
"vnetRouteAllEnabled": false,
"vnetPrivatePortsCount": 0,
"localMySqlEnabled": false,
"ipSecurityRestrictions": [
{
"ipAddress": "Any",
"action": "Allow",
"priority": 2147483647,
"name": "Allow all",
"description": "Allow all access"
}
],
"scmIpSecurityRestrictions": [
{
"ipAddress": "Any",
"action": "Allow",
"priority": 2147483647,
"name": "Allow all",
"description": "Allow all access"
}
],
"scmIpSecurityRestrictionsUseMain": false,
"http20Enabled": true,
"minTlsVersion": "1.2",
"scmMinTlsVersion": "1.2",
"ftpsState": "FtpsOnly",
"preWarmedInstanceCount": 0,
"functionAppScaleLimit": 100,
"functionsRuntimeScaleMonitoringEnabled": false,
"minimumElasticInstanceCount": 0,
"azureStorageAccounts": {}
}
},
{
"type": "Microsoft.Web/sites/hostNameBindings",
"apiVersion": "2023-01-01",
"name": "[concat(parameters('sites_py_flex_beta_function2_name'), '/', parameters('sites_py_flex_beta_function2_name'), '.azurewebsites.net')]",
"location": "East Asia",
"dependsOn": [
"[resourceId('Microsoft.Web/sites', parameters('sites_py_flex_beta_function2_name'))]"
],
"properties": {
"siteName": "py-flex-beta-function2",
"hostNameType": "Verified"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment