Created
August 30, 2022 18:29
-
-
Save lAnubisl/8d5ded50534b5f249c0b78eb9d55d34b to your computer and use it in GitHub Desktop.
Azure dotnet-isolated broken
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"subscriptionId": { | |
"type": "string" | |
}, | |
"name": { | |
"type": "string" | |
}, | |
"location": { | |
"type": "string" | |
} | |
}, | |
"variables": {}, | |
"resources": [ | |
{ | |
"apiVersion": "2018-11-01", | |
"name": "[concat('func-', parameters('name'))]", | |
"type": "Microsoft.Web/sites", | |
"kind": "functionapp,linux", | |
"location": "[parameters('location')]", | |
"tags": { | |
"Environment": "Production", | |
"Service": "IndAppLocator" | |
}, | |
"dependsOn": [ | |
"[concat('Microsoft.Web/serverfarms/plan-', parameters('name'))]", | |
"[concat('Microsoft.Storage/storageAccounts/st', parameters('name'))]" | |
], | |
"properties": { | |
"name": "[concat('func-', parameters('name'))]", | |
"siteConfig": { | |
"appSettings": [ | |
{ | |
"name": "FUNCTIONS_EXTENSION_VERSION", | |
"value": "~4" | |
}, | |
{ | |
"name": "FUNCTIONS_WORKER_RUNTIME", | |
"value": "dotnet-isolated" | |
}, | |
{ | |
"name": "AzureWebJobsStorage", | |
"value": "[concat('DefaultEndpointsProtocol=https;AccountName=st',parameters('name'),';AccountKey=',listKeys(resourceId('Microsoft.Storage/storageAccounts',concat('st', parameters('name'))), '2019-06-01').keys[0].value,';EndpointSuffix=','core.windows.net')]" | |
} | |
], | |
"cors": { | |
"allowedOrigins": [ | |
"https://portal.azure.com" | |
] | |
}, | |
"use32BitWorkerProcess": false, | |
"ftpsState": "FtpsOnly", | |
"linuxFxVersion": "DOTNET-ISOLATED|6.0" | |
}, | |
"serverFarmId": "[concat('/subscriptions/', parameters('subscriptionId'),'/resourcegroups/', concat('rg-', parameters('name')), '/providers/Microsoft.Web/serverfarms/plan-', parameters('name'))]", | |
"clientAffinityEnabled": false, | |
"virtualNetworkSubnetId": null, | |
"httpsOnly": true | |
} | |
}, | |
{ | |
"apiVersion": "2018-11-01", | |
"name": "[concat('plan-', parameters('name'))]", | |
"type": "Microsoft.Web/serverfarms", | |
"location": "[parameters('location')]", | |
"kind": "linux", | |
"tags": { | |
"Environment": "Production", | |
"Service": "IndAppLocator" | |
}, | |
"dependsOn": [], | |
"properties": { | |
"name": "[concat('plan-', parameters('name'))]", | |
"workerSize": "0", | |
"workerSizeId": "0", | |
"numberOfWorkers": "1", | |
"reserved": true | |
}, | |
"sku": { | |
"Tier": "Dynamic", | |
"Name": "Y1" | |
} | |
}, | |
{ | |
"apiVersion": "2019-06-01", | |
"type": "Microsoft.Storage/storageAccounts", | |
"name": "[concat('st', parameters('name'))]", | |
"location": "[parameters('location')]", | |
"tags": { | |
"Environment": "Production", | |
"Service": "IndAppLocator" | |
}, | |
"sku": { | |
"name": "Standard_LRS" | |
}, | |
"properties": { | |
"supportsHttpsTrafficOnly": true, | |
"minimumTlsVersion": "TLS1_2" | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment